From 4736ea875aa163fb9e4af953a4af454b344d88bf Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Wed, 27 Dec 2023 19:56:46 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=A1=A5=E4=B8=81=E7=A8=8B=E5=BA=8F=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E5=90=8C=E6=AD=A5=E6=89=98=E7=9B=98=E4=BB=93=E5=BA=93?= =?UTF-8?q?id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/logpm/patch/jobhandle/SyncWarehouseData.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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)){