dzx пре 8 месеци
родитељ
комит
55529c1f5f

+ 3 - 3
src/main/java/com/xjrsoft/module/student/controller/StudentReportPlanController.java

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