Commit 54c2d7c7 authored by liucx's avatar liucx

运行时间

parent 169aa510
...@@ -30,21 +30,21 @@ public class TimedTaskController { ...@@ -30,21 +30,21 @@ public class TimedTaskController {
@ApiOperation(value = "日统计沟通记录次数", notes = "日统计沟通记录次数 ", httpMethod = "GET") @ApiOperation(value = "日统计沟通记录次数", notes = "日统计沟通记录次数 ", httpMethod = "GET")
@GetMapping("/dayCommunication") @GetMapping("/dayCommunication")
@Scheduled(cron = "0 0/1 * * * ?") @Scheduled(cron = "0 25 8,12 * * ?")
public CommonResult dayCommunicationCount() { public CommonResult dayCommunicationCount() {
communicationRecordStatisticalLogService.saveOrUpdateDay(); communicationRecordStatisticalLogService.saveOrUpdateDay();
return CommonResult.success("日统计沟通记录次数成功"); return CommonResult.success("日统计沟通记录次数成功");
} }
@ApiOperation(value = "周统计沟通记录次数", notes = "周统计沟通记录次数 ", httpMethod = "GET") @ApiOperation(value = "周统计沟通记录次数", notes = "周统计沟通记录次数 ", httpMethod = "GET")
@GetMapping("/weekCommunication") @GetMapping("/weekCommunication")
@Scheduled(cron = "0 0/1 * * * ?") @Scheduled(cron = "0 15 8,12 * * ?")
public CommonResult weekCommunicationCount() { public CommonResult weekCommunicationCount() {
communicationRecordStatisticalLogService.saveOrUpdateWeek(); communicationRecordStatisticalLogService.saveOrUpdateWeek();
return CommonResult.success("日统计沟通记录次数成功"); return CommonResult.success("日统计沟通记录次数成功");
} }
@ApiOperation(value = "月统计沟通记录次数", notes = "月统计沟通记录次数 ", httpMethod = "GET") @ApiOperation(value = "月统计沟通记录次数", notes = "月统计沟通记录次数 ", httpMethod = "GET")
@GetMapping("/mothCommunication") @GetMapping("/mothCommunication")
@Scheduled(cron = "0 0/1 * * * ?") @Scheduled(cron = "0 20 8,12 * * ?")
public CommonResult monthCommunicationCount() { public CommonResult monthCommunicationCount() {
communicationRecordStatisticalLogService.saveOrUpdateMonth(); communicationRecordStatisticalLogService.saveOrUpdateMonth();
return CommonResult.success("日统计沟通记录次数成功"); return CommonResult.success("日统计沟通记录次数成功");
...@@ -53,7 +53,7 @@ public class TimedTaskController { ...@@ -53,7 +53,7 @@ public class TimedTaskController {
@ApiOperation(value = "总数据统计", notes = "总数据统计 ", httpMethod = "GET") @ApiOperation(value = "总数据统计", notes = "总数据统计 ", httpMethod = "GET")
@Scheduled(cron = "0 0/1 * * * ?") @Scheduled(cron = "0 10 8,12 * * ?")
public CommonResult totalommunication() { public CommonResult totalommunication() {
communicationRecordStatisticalLogService.totalommunication(); communicationRecordStatisticalLogService.totalommunication();
return CommonResult.success("日统计沟通记录次数成功"); return CommonResult.success("日统计沟通记录次数成功");
......
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