From 51c123325992a76198d62cbb90b4216c7adaf6f1 Mon Sep 17 00:00:00 2001 From: kilo Date: Mon, 28 Aug 2023 12:11:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E6=8A=A5=E9=94=99=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/BasicdataGoodsAreaServiceImpl.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataGoodsAreaServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataGoodsAreaServiceImpl.java index 30d008e18..34aff4ef4 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataGoodsAreaServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataGoodsAreaServiceImpl.java @@ -167,11 +167,13 @@ public class BasicdataGoodsAreaServiceImpl extends BaseServiceImpl myWarehouseList = basicdataWarehouseService.getMyWarehouseList(); - myWarehouseList.forEach(w->{ - LambdaQueryWrapper qw = Wrappers.query().lambda().eq(BasicdataGoodsAreaEntity::getWarehouseId, w.getId()); - List basicdataGoodsAreaEntities = basicdataGoodsAreaMapper.selectList(qw); - w.setChildren(basicdataGoodsAreaEntities); - }); + if (Func.isNotEmpty(myWarehouseList)){ + myWarehouseList.forEach(w->{ + LambdaQueryWrapper qw = Wrappers.query().lambda().eq(BasicdataGoodsAreaEntity::getWarehouseId, w.getId()); + List basicdataGoodsAreaEntities = basicdataGoodsAreaMapper.selectList(qw); + w.setChildren(basicdataGoodsAreaEntities); + }); + } // //查询一级仓库节点信息 // List basicdataWarehouseVOList = baseMapper.selectFirstNode(); // //获取二节点的货区