diff --git a/src/main/java/com/ydool/staff/controller/PersonnelController.java b/src/main/java/com/ydool/staff/controller/PersonnelController.java index ad9126e..c8e5d40 100644 --- a/src/main/java/com/ydool/staff/controller/PersonnelController.java +++ b/src/main/java/com/ydool/staff/controller/PersonnelController.java @@ -127,8 +127,8 @@ public class PersonnelController extends BaseController { @GetMapping("getPersonnelRetire") @ApiOperation(value = "查看近两月是否有人退休") - //@Scheduled(cron = "0 0 7 * * ?") /*每天7点更新一次*/ - @Scheduled(cron = "0 */1 * * * ?") /*每天7点更新一次*/ + @Scheduled(cron = "0 0 7 * * ?") /*每天7点更新一次*/ + //@Scheduled(cron = "0 */1 * * * ?") /*每分钟更新一次*/ public void getPersonnelRetire(){ personnelService.getPersonnelRetire(); }