|
@@ -4,6 +4,7 @@ import com.keao.edu.common.controller.BaseController;
|
|
|
import com.keao.edu.common.entity.HttpResponseResult;
|
|
|
import com.keao.edu.common.page.PageInfo;
|
|
|
import com.keao.edu.common.page.QueryInfo;
|
|
|
+import com.keao.edu.common.tenant.TenantContextHolder;
|
|
|
import com.keao.edu.user.entity.ExamSong;
|
|
|
import com.keao.edu.user.entity.TenantInfo;
|
|
|
import com.keao.edu.user.service.ExamSongService;
|
|
@@ -44,6 +45,7 @@ public class ExamSongController extends BaseController {
|
|
|
@ApiOperation("新增曲库")
|
|
|
@PostMapping(value = "/add")
|
|
|
public HttpResponseResult add(ExamSong examSong) {
|
|
|
+ examSong.setTenantId(TenantContextHolder.getTenantId().toString());
|
|
|
examSongService.insert(examSong);
|
|
|
return succeed();
|
|
|
}
|