|
@@ -481,6 +481,9 @@ public class WcsTaskServiceImpl implements IWcsTaskService {
|
|
|
|
|
|
} else {
|
|
|
int num = redisCache.getCacheObject(RedisKey.AGV01_TASK_NUM);
|
|
|
+ if (num == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
redisCache.setCacheObject(RedisKey.AGV01_TASK_NUM, num - 1);
|
|
|
}
|
|
|
} else if (baseLocationInfo.getFoldedTag().equals("2")) {
|
|
@@ -488,6 +491,9 @@ public class WcsTaskServiceImpl implements IWcsTaskService {
|
|
|
|
|
|
} else {
|
|
|
int num = redisCache.getCacheObject(RedisKey.AGV02_TASK_NUM);
|
|
|
+ if (num == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
redisCache.setCacheObject(RedisKey.AGV02_TASK_NUM, num -1);
|
|
|
}
|
|
|
}
|