update 定时任务时间

This commit is contained in:
mash 2023-11-01 13:52:54 +08:00
parent 31414e651f
commit 7e942a09ec
1 changed files with 2 additions and 2 deletions

View File

@ -127,8 +127,8 @@ public class PersonnelController extends BaseController {
@GetMapping("getPersonnelRetire") @GetMapping("getPersonnelRetire")
@ApiOperation(value = "查看近两月是否有人退休") @ApiOperation(value = "查看近两月是否有人退休")
//@Scheduled(cron = "0 0 7 * * ?") /*每天7点更新一次*/ @Scheduled(cron = "0 0 7 * * ?") /*每天7点更新一次*/
@Scheduled(cron = "0 */1 * * * ?") /*每天7点更新一次*/ //@Scheduled(cron = "0 */1 * * * ?") /*每分钟更新一次*/
public void getPersonnelRetire(){ public void getPersonnelRetire(){
personnelService.getPersonnelRetire(); personnelService.getPersonnelRetire();
} }