|
|
|
@ -167,11 +167,13 @@ public class BasicdataGoodsAreaServiceImpl extends BaseServiceImpl<BasicdataGood
|
|
|
|
|
//查询当前登陆用户能够操作的仓库列表
|
|
|
|
|
// BladeUser user = AuthUtil.getUser();
|
|
|
|
|
List<BasicdataWarehouseVO> myWarehouseList = basicdataWarehouseService.getMyWarehouseList(); |
|
|
|
|
myWarehouseList.forEach(w->{ |
|
|
|
|
LambdaQueryWrapper<BasicdataGoodsAreaEntity> qw = Wrappers.<BasicdataGoodsAreaEntity>query().lambda().eq(BasicdataGoodsAreaEntity::getWarehouseId, w.getId()); |
|
|
|
|
List<BasicdataGoodsAreaEntity> basicdataGoodsAreaEntities = basicdataGoodsAreaMapper.selectList(qw); |
|
|
|
|
w.setChildren(basicdataGoodsAreaEntities); |
|
|
|
|
}); |
|
|
|
|
if (Func.isNotEmpty(myWarehouseList)){ |
|
|
|
|
myWarehouseList.forEach(w->{ |
|
|
|
|
LambdaQueryWrapper<BasicdataGoodsAreaEntity> qw = Wrappers.<BasicdataGoodsAreaEntity>query().lambda().eq(BasicdataGoodsAreaEntity::getWarehouseId, w.getId()); |
|
|
|
|
List<BasicdataGoodsAreaEntity> basicdataGoodsAreaEntities = basicdataGoodsAreaMapper.selectList(qw); |
|
|
|
|
w.setChildren(basicdataGoodsAreaEntities); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
// //查询一级仓库节点信息
|
|
|
|
|
// List<BasicdataNodeVO> basicdataWarehouseVOList = baseMapper.selectFirstNode();
|
|
|
|
|
// //获取二节点的货区
|
|
|
|
|