zouxuan 5 år sedan
förälder
incheckning
566c87f275

+ 2 - 0
edu-user/edu-user-server/src/main/java/com/keao/edu/user/controller/ExamSongController.java

@@ -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();
     }