|
|
@@ -121,9 +121,9 @@ public class StudentReportPlanController {
|
|
|
@SaCheckPermission("studentreportplan:edit")
|
|
|
@XjrLog(value="修改学生报到计划")
|
|
|
public RT<Boolean> update(@Valid @RequestBody UpdateStudentReportPlanDto dto){
|
|
|
-
|
|
|
- StudentReportPlan studentReportPlan = BeanUtil.toBean(dto, StudentReportPlan.class);
|
|
|
- return RT.ok(studentReportPlanService.update(studentReportPlan));
|
|
|
+ StudentReportPlan reportPlan = studentReportPlanService.getById(dto.getId());
|
|
|
+ BeanUtil.copyProperties(dto, reportPlan);
|
|
|
+ return RT.ok(studentReportPlanService.update(reportPlan));
|
|
|
|
|
|
}
|
|
|
|