Commit fcb0e64a by 向延琳

修改key规则

1 parent eeceab63
......@@ -41,7 +41,7 @@ public class DeviceFreqService {
/**
* 记录持续时间的redis key
*/
private static final String TASK_KEY_FREQ_TIMING_CLOSE = "TASK_KEY_FREQ_TIMING_CLOSE";
private static final String TASK_KEY_FREQ_TIMING_CLOSE = "NESHIELD:TASK:KEY_FREQ_TIMING_CLOSE";
@Autowired
private DeviceFreqMapper deviceFreqMapper;
......@@ -164,7 +164,7 @@ public class DeviceFreqService {
public void closeDeviceFreqFromCache() {
Collection<String> snList = redisDelayQueue.getAndRemoveBusinessNo(TASK_KEY_FREQ_TIMING_CLOSE);
if (CollectionUtils.isEmpty(snList)) {
log.info(DateUtil.getNowDateTimeFormat() + "没有需要福关闭的调频");
log.info(DateUtil.getNowDateTimeFormat() + "没有需要关闭的调频");
return;
}
log.info(DateUtil.getNowDateTimeFormat() + "需要关闭的调频数量:" + snList.size());
......@@ -178,7 +178,7 @@ public class DeviceFreqService {
public void closeDeviceFreqFromDB() {
List<String> snList = deviceFreqMapper.listToCloseFreq();
if (CollectionUtils.isEmpty(snList)) {
log.info(DateUtil.getNowDateTimeFormat() + "没有需要福关闭的调频");
log.info(DateUtil.getNowDateTimeFormat() + "没有需要关闭的调频");
return;
}
log.info(DateUtil.getNowDateTimeFormat() + "需要关闭的调频数量:" + snList.size());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!