|
@@ -12,6 +12,7 @@ import java.util.List;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
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.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -239,6 +240,9 @@ public class ClassGroupController extends BaseController {
|
|
@PreAuthorize("@pcs.hasPermissions('classGroup/revisionAddClassGroup')")
|
|
@PreAuthorize("@pcs.hasPermissions('classGroup/revisionAddClassGroup')")
|
|
@ApiImplicitParams({@ApiImplicitParam(name = "ClassGroup4MixDto", value = "添加班级结构", required = true, dataType = "String")})
|
|
@ApiImplicitParams({@ApiImplicitParam(name = "ClassGroup4MixDto", value = "添加班级结构", required = true, dataType = "String")})
|
|
public HttpResponseResult revisionAddClassGroup(@RequestBody List<ClassGroup4MixDto> classGroup4MixDtos) throws Exception {
|
|
public HttpResponseResult revisionAddClassGroup(@RequestBody List<ClassGroup4MixDto> classGroup4MixDtos) throws Exception {
|
|
|
|
+ if(CollectionUtils.isEmpty(classGroup4MixDtos)){
|
|
|
|
+ return failed("请填写班级信息");
|
|
|
|
+ }
|
|
return succeed(classGroupService.classGroupAdjust(classGroup4MixDtos));
|
|
return succeed(classGroupService.classGroupAdjust(classGroup4MixDtos));
|
|
}
|
|
}
|
|
|
|
|