|
@@ -61,7 +61,8 @@ public class StudentSelectSupervisorRecordController {
|
|
|
@Resource
|
|
|
private studentSelectionProjectService studentSelectionProjectService;
|
|
|
|
|
|
- @Scheduled(cron = "0 00 00 * * ?") // 每天0:00检测
|
|
|
+// @Scheduled(cron = "0 00 00 * * ?") // 每天0:00检测
|
|
|
+ @Scheduled(cron = "0 0 * * * ?") // 每1小时执行
|
|
|
@Idempotent(timeout = 10)
|
|
|
public void checkIsSelection() {
|
|
|
LocalDateTime nowTime =LocalDateTime.now();
|
|
@@ -71,7 +72,7 @@ public class StudentSelectSupervisorRecordController {
|
|
|
checkSelection();
|
|
|
}
|
|
|
}
|
|
|
- //在项目结束的时候
|
|
|
+ //在项目结束的时候生成编辑记录,学院直接设置
|
|
|
@GetMapping("/ceshi")
|
|
|
@Operation(summary = "测试生成编辑记录")
|
|
|
public void checkSelection() {
|
|
@@ -137,7 +138,7 @@ public class StudentSelectSupervisorRecordController {
|
|
|
|
|
|
createReqVO.setStudentId(loginId);
|
|
|
createReqVO.setSelectType(1);//待处理
|
|
|
- if (!createReqVO.getStudentSignature().isEmpty()) {
|
|
|
+ if (createReqVO.getStudentSignature()!=null&&!createReqVO.getStudentSignature().isEmpty()) {
|
|
|
createReqVO.setStudentSignDate(dateTime.toLocalDate());//学生签名日期
|
|
|
}
|
|
|
studentSelectSupervisorRecordService.createStudentSelectSupervisorRecord(createReqVO);
|
|
@@ -195,8 +196,13 @@ public class StudentSelectSupervisorRecordController {
|
|
|
}else if (record.getSelectType()==2){//同意了的
|
|
|
//初始化记录里面的签名
|
|
|
updateReqVO.setStudentSignature("");//学生签名
|
|
|
- updateReqVO.setSupervisorApproveTime(LocalDateTime.now());//TODO 这个审批时间
|
|
|
+ updateReqVO.setStudentSignDate(null);//TODO 这个审批时间
|
|
|
updateReqVO.setSupervisorSignature("");
|
|
|
+ updateReqVO.setStudentSignDate(null);
|
|
|
+ updateReqVO.setSupervisorSignDate(null);
|
|
|
+ }else if (record.getSelectType()==1){
|
|
|
+ updateReqVO.setStudentSignature("");//学生签名
|
|
|
+ updateReqVO.setStudentSignDate(null);
|
|
|
}
|
|
|
adminUserService.updateUser(saveReqVO);
|
|
|
studentSelectSupervisorRecordService.updateStudentSelectSupervisorRecord(updateReqVO);
|
|
@@ -287,7 +293,9 @@ public class StudentSelectSupervisorRecordController {
|
|
|
//提交导师签名
|
|
|
updateReqVO.setSelectType(2);
|
|
|
updateReqVO.setSupervisorApproveTime(dateTime);
|
|
|
- updateReqVO.setSupervisorSignDate(dateTime.toLocalDate());//导师日期
|
|
|
+ if (updateReqVO.getStudentSignature()!=null&&!updateReqVO.getStudentSignature().isEmpty()) {
|
|
|
+ updateReqVO.setSupervisorSignDate(dateTime.toLocalDate());//导师日期
|
|
|
+ }
|
|
|
studentSelectSupervisorRecordService.updateStudentSelectSupervisorRecord(updateReqVO);
|
|
|
|
|
|
UserSaveReqVO saveReqVO = new UserSaveReqVO();
|