diff --git a/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncWarehouseData.java b/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncWarehouseData.java index ea409c164..b74d5476c 100644 --- a/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncWarehouseData.java +++ b/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncWarehouseData.java @@ -257,8 +257,14 @@ public class SyncWarehouseData { public ReturnT syncWarehouseTrayToNew(String param) { log.info("############syncWarehouseTrayToNew: 同步仓库及货位托盘信息开始 param={}", param); - //查询所有仓库 - List allWarehouseIds = warehouseClient.getAllWarehouseIds(); + List allWarehouseIds = new ArrayList<>(); + if(StringUtil.isBlank(param)){ + allWarehouseIds = warehouseClient.getAllWarehouseIds(); + }else{ + WarehouseEntity warehouseEntity = warehouseClient.selectEntityById(Integer.parseInt(param)); + allWarehouseIds.add(warehouseEntity.getId()); + } + for (Integer oldWarehouseId:allWarehouseIds){ WarehouseEntity oldWarehouse = warehouseClient.selectEntityById(oldWarehouseId); if(Objects.isNull(oldWarehouse)){