自动化立体仓库 - WCS系统
whycq
2023-11-09 0c4b48edb964d47a6db0e2f6a6073fade51c3c4d
src/main/java/com/zy/asrs/task/RealtimeBasMapScheduler.java
@@ -4,6 +4,7 @@
import com.zy.asrs.entity.BasMap;
import com.zy.asrs.service.BasMapService;
import com.zy.common.utils.RedisUtil;
import com.zy.core.enums.RedisKeyType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
@@ -26,7 +27,7 @@
    @Scheduled(cron = "1 * * * * ? ")
    private void execute(){
        for (int i = 1; i <= 4; i++) {//总共四层楼
            Object data = redisUtil.get("realtimeBasMap_" + i);
            Object data = redisUtil.get(RedisKeyType.MAP.key + i);
            if (data == null) {
                continue;
            }