|
@@ -9,13 +9,12 @@ import com.ym.mec.biz.service.*;
|
|
import com.ym.mec.common.controller.BaseController;
|
|
import com.ym.mec.common.controller.BaseController;
|
|
import com.ym.mec.common.entity.UploadReturnBean;
|
|
import com.ym.mec.common.entity.UploadReturnBean;
|
|
import com.ym.mec.util.upload.UploadUtil;
|
|
import com.ym.mec.util.upload.UploadUtil;
|
|
-import io.swagger.annotations.Api;
|
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
|
-import io.swagger.annotations.ApiParam;
|
|
|
|
|
|
+import io.swagger.annotations.*;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -38,6 +37,8 @@ public class TeacherManageController extends BaseController {
|
|
private ClassGroupService classGroupService;
|
|
private ClassGroupService classGroupService;
|
|
@Autowired
|
|
@Autowired
|
|
private SysUserBankCardService sysUserBankCardService;
|
|
private SysUserBankCardService sysUserBankCardService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private StudentRegistrationService studentRegistrationService;
|
|
|
|
|
|
private final static Logger LOGGER = LoggerFactory.getLogger(TeacherManageController.class);
|
|
private final static Logger LOGGER = LoggerFactory.getLogger(TeacherManageController.class);
|
|
|
|
|
|
@@ -143,4 +144,13 @@ public class TeacherManageController extends BaseController {
|
|
}
|
|
}
|
|
return succeed(sysUserBankCardService.findByUser(sysUser.getId()));
|
|
return succeed(sysUserBankCardService.findByUser(sysUser.getId()));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "调剂学生报名专业")
|
|
|
|
+ @PostMapping("studentRegistration/updateSubject")
|
|
|
|
+ public Object batchUpdateSubject(Integer userId,Integer subId,String musicGroupId) throws Exception {
|
|
|
|
+ if (null == userId || subId == null || StringUtils.isEmpty(musicGroupId)) {
|
|
|
|
+ return failed("参数校验异常");
|
|
|
|
+ }
|
|
|
|
+ return succeed(studentRegistrationService.batchUpdateSubject(userId, subId,musicGroupId));
|
|
|
|
+ }
|
|
}
|
|
}
|