Commit 644cc312 authored by zhangsen's avatar zhangsen

人员赋码规则bug修改定时任务改为每天一次

parent b8145386
...@@ -42,8 +42,7 @@ public class PersonYardTimeTask { ...@@ -42,8 +42,7 @@ public class PersonYardTimeTask {
@Autowired @Autowired
private RedisUtils redisUtils; private RedisUtils redisUtils;
// @Scheduled(cron = "0 0 0 1/1 * ? ") @Scheduled(cron = "0 0 0 1/1 * ? ")
@Scheduled(cron = "0 0/2 * * * ? ")
public void timeYardTimeTask() { public void timeYardTimeTask() {
if (!redisUtils.hasKey(Constants.JXIOP_DICT_POST) || !redisUtils.hasKey(Constants.JXIOP_DICT_CERTIFICATES)) { if (!redisUtils.hasKey(Constants.JXIOP_DICT_POST) || !redisUtils.hasKey(Constants.JXIOP_DICT_CERTIFICATES)) {
personBasicService.addRedisPostAndCerInfo(); personBasicService.addRedisPostAndCerInfo();
......
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