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