|
@@ -25,9 +25,10 @@ public class SafeSendNotifyController {
|
|
|
private SafeCheckSendNotifyServiceImpl sendNotifyService;
|
|
|
|
|
|
@PostMapping("/dangerousDailyNotify")
|
|
|
- public void dangerousNotify(){
|
|
|
+ public R dangerousNotify(){
|
|
|
log.info("开始发送每日危险作业处罚提醒");
|
|
|
sendNotifyService.dangerousDailyNotify();
|
|
|
+ return R.ok();
|
|
|
}
|
|
|
|
|
|
|
|
@@ -47,9 +48,10 @@ public class SafeSendNotifyController {
|
|
|
* 开始生成检查任务提醒
|
|
|
*/
|
|
|
@PostMapping("/inspection")
|
|
|
- public void inspectionTasks(){
|
|
|
+ public R inspectionTasks(){
|
|
|
log.info("开始生成检查任务提醒");
|
|
|
sendNotifyService.inspectionTasks();
|
|
|
+ return R.ok();
|
|
|
}
|
|
|
|
|
|
|
|
@@ -65,9 +67,10 @@ public class SafeSendNotifyController {
|
|
|
|
|
|
@Scheduled(cron = "0 0 8 ? * *")
|
|
|
@PostMapping("/rectification/system")
|
|
|
- public void rectificationSystem(){
|
|
|
+ public R rectificationSystem(){
|
|
|
log.info("隐患跟踪任务整改提现定时任务!");
|
|
|
sendNotifyService.rectificationSystem();
|
|
|
+ return R.ok();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -82,9 +85,10 @@ public class SafeSendNotifyController {
|
|
|
|
|
|
@Scheduled(cron = "0 0 8 ? * *")
|
|
|
@PostMapping("/verify/system")
|
|
|
- public void verifySystem(){
|
|
|
+ public R verifySystem(){
|
|
|
log.info("隐患跟踪任务整改提醒定时任务!");
|
|
|
sendNotifyService.verifySystem();
|
|
|
+ return R.ok();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -99,9 +103,10 @@ public class SafeSendNotifyController {
|
|
|
|
|
|
@Scheduled(cron = "0 0 8 ? * *")
|
|
|
@PostMapping("/affirm/system")
|
|
|
- public void affirmSystem(){
|
|
|
+ public R affirmSystem(){
|
|
|
log.info("隐患跟踪任务整改提醒定时任务!");
|
|
|
sendNotifyService.affirmSystem();
|
|
|
+ return R.ok();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -114,9 +119,10 @@ public class SafeSendNotifyController {
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/send-back/system")
|
|
|
- public void sendBackSystem(@RequestBody Map<String, String> map){
|
|
|
+ public R sendBackSystem(@RequestBody Map<String, String> map){
|
|
|
log.info("隐患跟踪任务退回时提醒!参数为:{}",map);
|
|
|
sendNotifyService.sendBackSystem(map);
|
|
|
+ return R.ok();
|
|
|
}
|
|
|
|
|
|
|
|
@@ -130,9 +136,10 @@ public class SafeSendNotifyController {
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/submit/system")
|
|
|
- public void submitSystem(@RequestBody Map<String, String> map){
|
|
|
+ public R submitSystem(@RequestBody Map<String, String> map){
|
|
|
log.info("隐患跟踪任务提交时提醒!参数为:{}",map);
|
|
|
sendNotifyService.submitSystem(map);
|
|
|
+ return R.ok();
|
|
|
}
|
|
|
|
|
|
}
|