|
@@ -430,4 +430,19 @@ public class BilletHotsendChangeShiftController extends JeecgController<BilletHo
|
|
|
JSONObject jsonObject = billetHotsendChangeShiftService.autoChangeShiftHandle(billetHotsendChangeShiftVo);
|
|
|
log.info("自动化{}交班成功!{} 结果值:{}", shiftName, new Date(), jsonObject);
|
|
|
}
|
|
|
+
|
|
|
+ @Scheduled(cron = "0 38 17 * * ?")
|
|
|
+ public void executeNeightShiftTask1() {
|
|
|
+ log.info("设置索引iD");
|
|
|
+ String nextshiftIdKey = String.format("class:nextshift:Id:%s", "5-6");
|
|
|
+ redisTemplate.opsForValue().set(nextshiftIdKey, 22);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Scheduled(cron = "0 * * * * ?")
|
|
|
+ public void executeNeightShiftTask2() {
|
|
|
+ log.info("获取索引ID");
|
|
|
+ String nextshiftIdKey = String.format("class:nextshift:Id:%s", "5-6");
|
|
|
+ String nextCacheId = oConvertUtils.getString(redisTemplate.opsForValue().get(nextshiftIdKey));
|
|
|
+ log.info("获取索引ID结果:", nextCacheId);
|
|
|
+ }
|
|
|
}
|