소스 검색

分班调整

dzx 8 달 전
부모
커밋
aa90448c80
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/xjrsoft/module/student/controller/StudentReportPlanController.java

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

@@ -112,10 +112,10 @@ public class StudentReportPlanController {
     @XjrLog(value = "修改学生报到计划")
     public RT<Boolean> update(@Valid @RequestBody UpdateStudentReportPlanDto dto) {
         StudentReportPlan reportPlan = studentReportPlanService.getById(dto.getId());
+        BeanUtil.copyProperties(dto, reportPlan);
         if((reportPlan.getCategory() == 2 || reportPlan.getCategory() == 3) && LocalDateTimeUtil.isDateTimeInRange(LocalDateTime.now(), reportPlan.getStartTime(), reportPlan.getEndTime())){
             reportPlan.setStatus(1);
         }
-        BeanUtil.copyProperties(dto, reportPlan);
         return RT.ok(studentReportPlanService.update(reportPlan));
     }