From 691bee4229856f8bf81c2720092ecee1c9f21509 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 09 四月 2026 19:18:12 +0800
Subject: [PATCH] #getter$摘出entity
---
rsf-server/src/main/java/com/vincent/rsf/server/manager/utils/WarehouseLocationRetrievalUtil.java | 28 +++++++++++++++++-----------
1 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/utils/WarehouseLocationRetrievalUtil.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/utils/WarehouseLocationRetrievalUtil.java
index 1e52730..687c9c0 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/utils/WarehouseLocationRetrievalUtil.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/utils/WarehouseLocationRetrievalUtil.java
@@ -139,9 +139,9 @@
.eq(BasStation::getStationName, site).last("limit 1"));
if (!Cools.isEmpty(basStation)){
BasStationTypeService basStationTypeService = SpringUtils.getBean(BasStationTypeService.class);
- BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getContainerType()).last("limit 1"));
+ BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getStationTypeCode()).last("limit 1"));
if (!Cools.isEmpty(one)) {
- if (one.getTaskType().contains(type)){
+ if (one.getTaskType().contains("all") || one.getTaskType().contains(type)){
outboundSite.add(site);
}
}
@@ -407,16 +407,19 @@
}
}
BasStationTypeService basStationTypeService = SpringUtils.getBean(BasStationTypeService.class);
- BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getContainerType()).last("limit 1"));
- if (!Cools.isEmpty(one)) {
- if (one.getTaskType().contains(type)){
+ BasStationType stationType = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getStationTypeCode()).last("limit 1"));
+ if (!Cools.isEmpty(stationType)) {
+ if (stationType.getTaskType().contains("all")){
+ return true;
+ }
+ if (!Cools.isEmpty(stationType.getTaskType()) && stationType.getTaskType().contains(type)) {
return true;
}
log.error("鐩爣绔欑偣:" + targetCode+" 涓嶆敮鎸佷綔涓氭浠诲姟绫诲瀷锛�"+type);
}
- log.error("鐩爣绔欑偣:" + targetCode+" 涓嶆敮鎸佷綔涓氭浠诲姟绫诲瀷锛�"+type);
+ log.error("鐩爣绔欑偣:" + targetCode+" 鏈尮閰嶅埌绔欑偣绫诲瀷");
}
- log.error("queryPathIsItAvailableInArea: error");
+ log.error("queryPathIsItAvailableOutArea: error");
}
return false;
}
@@ -446,14 +449,17 @@
}
}
BasStationTypeService basStationTypeService = SpringUtils.getBean(BasStationTypeService.class);
- BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getContainerType()).last("limit 1"));
- if (!Cools.isEmpty(one)) {
- if (one.getTaskType().contains(type)){
+ BasStationType stationType = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getStationTypeCode()).last("limit 1"));
+ if (!Cools.isEmpty(stationType)) {
+ if (stationType.getTaskType().contains("all")){
+ return true;
+ }
+ if (!Cools.isEmpty(stationType.getTaskType()) && stationType.getTaskType().contains(type)) {
return true;
}
log.error("褰撳墠绔欑偣:" + sourceCode+" 涓嶆敮鎸佷綔涓氭浠诲姟绫诲瀷锛�"+type);
}
- log.error("褰撳墠绔欑偣:" + sourceCode+" 涓嶆敮鎸佷綔涓氭浠诲姟绫诲瀷锛�"+type);
+ log.error("褰撳墠绔欑偣:" + sourceCode+" 鏈尮閰嶅埌绔欑偣绫诲瀷");
}
log.error("queryPathIsItAvailableInArea: error");
}
--
Gitblit v1.9.1