|
@@ -15,7 +15,6 @@ import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
import com.xjrsoft.module.base.entity.BaseClass;
|
|
import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
import com.xjrsoft.module.base.entity.BaseGrade;
|
|
import com.xjrsoft.module.base.entity.BaseGrade;
|
|
|
import com.xjrsoft.module.base.entity.BaseMajorSet;
|
|
import com.xjrsoft.module.base.entity.BaseMajorSet;
|
|
|
-import com.xjrsoft.module.erpModel.caseErpPurchase.entity.CaseErpApply;
|
|
|
|
|
import com.xjrsoft.module.organization.entity.Department;
|
|
import com.xjrsoft.module.organization.entity.Department;
|
|
|
import com.xjrsoft.module.student.dto.AddBaseStudentCadreDto;
|
|
import com.xjrsoft.module.student.dto.AddBaseStudentCadreDto;
|
|
|
import com.xjrsoft.module.student.dto.BaseStudentCadrePageDto;
|
|
import com.xjrsoft.module.student.dto.BaseStudentCadrePageDto;
|
|
@@ -117,9 +116,9 @@ public class BaseStudentCadreController {
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
@ApiOperation(value = "新增学生干部管理")
|
|
@ApiOperation(value = "新增学生干部管理")
|
|
|
@SaCheckPermission("basestudentcadre:add")
|
|
@SaCheckPermission("basestudentcadre:add")
|
|
|
- public RT<Boolean> add(@Valid @RequestBody AddBaseStudentCadreDto dto){
|
|
|
|
|
- BaseStudentCadre baseStudentCadre = BeanUtil.toBean(dto, BaseStudentCadre.class);
|
|
|
|
|
- boolean isSuccess = baseStudentCadreService.save(baseStudentCadre);
|
|
|
|
|
|
|
+ public RT<Boolean> add(@Valid @RequestBody List<AddBaseStudentCadreDto> dto){
|
|
|
|
|
+ List<BaseStudentCadre> baseStudentCadreList = BeanUtil.copyToList(dto, BaseStudentCadre.class);
|
|
|
|
|
+ boolean isSuccess = baseStudentCadreService.add(baseStudentCadreList);
|
|
|
return RT.ok(isSuccess);
|
|
return RT.ok(isSuccess);
|
|
|
}
|
|
}
|
|
|
|
|
|