Commit 6726fd40 authored by chenzhao's avatar chenzhao

修改人员资质问题生成

parent c2493ac2
...@@ -251,6 +251,18 @@ public class SafetyProblemTracingController extends BaseController { ...@@ -251,6 +251,18 @@ public class SafetyProblemTracingController extends BaseController {
safetyProblemTracingGenService.executeMaintenanceCheck(); safetyProblemTracingGenService.executeMaintenanceCheck();
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");
}
/** /**
......
...@@ -65,11 +65,15 @@ public class SafetyProblemTracingGenServiceImpl{ ...@@ -65,11 +65,15 @@ public class SafetyProblemTracingGenServiceImpl{
public void executeSafetyProblemCheck() { public void executeSafetyProblemCheck() {
executeMaintenanceCheck(); executeMaintenanceCheck();
executeInspectionCheck(); executeInspectionCheck();
executePersonnalCertificationCheck();
executeEnterpriseQualificationCheck(); executeEnterpriseQualificationCheck();
} }
@Scheduled(cron = "0 0 1 * * ?")
@SchedulerLock(name = "executeSafetyProblemCheck", lockAtMostFor = "PT5H", lockAtLeastFor = "PT10M")
public void executePersonnalCertification() {
executePersonnalCertificationCheck();
}
private void 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