diff --git a/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java b/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java index addf1bb3b..eae1c787f 100644 --- a/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java +++ b/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java @@ -103,8 +103,10 @@ public class ThrDeptController { //查询该部门下的仓库 filterThrSubInvWarehouseRequest.setParentId(thrDeptEntity1.getCode()); List thrDept = thrInvWarehouseService.filterThrInvWarehouse(filterThrSubInvWarehouseRequest); + for (ThrInvWarehouseEntity thrInvWarehouseEntity : thrDept) { thrInvWarehouseEntity.setParentId(thrDeptEntity.getCode()); + thrInvWarehouseEntity.setThirdSysFk(thrDeptEntity.getThirdSysFk()); //修改仓库 thrInvWarehouseService.updateThrInvWarehouse(thrInvWarehouseEntity); }