Browse Source

bug修复

dzx 7 months ago
parent
commit
8ba3d296cc

+ 1 - 1
src/main/java/com/xjrsoft/module/schedule/util/ScheduleUtil.java

@@ -160,7 +160,7 @@ public class ScheduleUtil {
         Map<Integer, Integer> map = new HashMap<>();
         map.put(2, 1);
         map.put(3, 2);
-        map.put(5, 3);
+        map.put(4, 3);
         return map;
     }
 

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

@@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
 import javax.validation.Valid;
+import java.util.Date;
 import java.util.List;
 
 /**
@@ -77,6 +78,7 @@ public class BaseStudentDevelopmentController {
     @SaCheckPermission("basestudentdevelopment:add")
     public RT<Boolean> add(@Valid @RequestBody AddBaseStudentDevelopmentDto dto){
         BaseStudentDevelopment baseStudentDevelopment = BeanUtil.toBean(dto, BaseStudentDevelopment.class);
+        baseStudentDevelopment.setCreateDate(new Date());
         boolean isSuccess = developmentService.save(baseStudentDevelopment);
         return RT.ok(isSuccess);
     }
@@ -87,6 +89,7 @@ public class BaseStudentDevelopmentController {
     public RT<Boolean> update(@Valid @RequestBody UpdateBaseStudentDevelopmentDto dto){
 
         BaseStudentDevelopment baseStudentDevelopment = BeanUtil.toBean(dto, BaseStudentDevelopment.class);
+        baseStudentDevelopment.setModifyDate(new Date());
         return RT.ok(developmentService.updateById(baseStudentDevelopment));
 
     }