Commit aac5a1e4 authored by chenzhao's avatar chenzhao

修改人员资质问题生成

parent 4dd21d34
...@@ -252,7 +252,18 @@ public class SafetyProblemTracingController extends BaseController { ...@@ -252,7 +252,18 @@ public class SafetyProblemTracingController extends BaseController {
return ResponseHelper.buildResponse("success"); return ResponseHelper.buildResponse("success");
} }
/**
* test3
*
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(httpMethod = "GET", value = "生成维保超期数据", notes = "生成维保超期数据")
@GetMapping(value = "/gen/test4")
public ResponseModel<String> test4() {
safetyProblemTracingGenService.executePersonnalCertificationCheck();
return ResponseHelper.buildResponse("success");
}
/** /**
* update3 -- 修复 * update3 -- 修复
* *
......
...@@ -65,11 +65,17 @@ public class SafetyProblemTracingGenServiceImpl{ ...@@ -65,11 +65,17 @@ public class SafetyProblemTracingGenServiceImpl{
public void executeSafetyProblemCheck() { public void executeSafetyProblemCheck() {
executeMaintenanceCheck(); executeMaintenanceCheck();
executeInspectionCheck(); executeInspectionCheck();
executePersonnalCertificationCheck();
executeEnterpriseQualificationCheck(); executeEnterpriseQualificationCheck();
} }
private void executePersonnalCertificationCheck() { @Scheduled(cron = "0 0 1 * * ?")
@SchedulerLock(name = "executePersonnalCertification", lockAtMostFor = "PT5H", lockAtLeastFor = "PT10M")
public void executePersonnalCertification() {
executePersonnalCertificationCheck();
}
public void executePersonnalCertificationCheck() {
logger.info("开始人员资质超期检查"); logger.info("开始人员资质超期检查");
List<Map<String, Object>> certificationRecords = commonMapper.queryOutOfCertificationRecord(); List<Map<String, Object>> certificationRecords = commonMapper.queryOutOfCertificationRecord();
updateUserInfoAndSendMessage(certificationRecords); updateUserInfoAndSendMessage(certificationRecords);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment