Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
94469658
Commit
94469658
authored
Jan 16, 2025
by
wux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码恢复到与其他分支一致
parent
26260123
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
BoxServiceImpl.java
...der/yudao/module/shipment/service/box/BoxServiceImpl.java
+37
-2
No files found.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/box/BoxServiceImpl.java
View file @
94469658
...
...
@@ -2298,11 +2298,12 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
List
<
Long
>
orderIdList2
=
guanlianList
.
stream
().
map
(
OrderGuanlianDO:
:
getRelateOrderId
).
collect
(
Collectors
.
toList
());
// 合并
orderIdList1
.
addAll
(
orderIdList2
);
// 去除orderId
orderIdList1
.
remove
(
orderId
);
// 去重
orderIdList1
=
orderIdList1
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
// 去除orderId
orderIdList1
.
remove
(
orderId
);
// 根据orderIdLists查询关联订单
List
<
BoxPreloadGoodsBackVO
>
goodsItemList
=
boxPreloadGoodsService
.
getGuanLianGoodItemList
(
orderIdList1
);
...
...
@@ -2760,6 +2761,40 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
public
BoxCabinetLoadVO
getBoxCabinetDetail
(
Long
shipmentId
)
{
List
<
BoxLoadSectionBackVO
>
boxLoadDetailBackVO
=
boxPreloadGoodsService
.
loadSecGoodsList
(
shipmentId
);
/*查询所有库区库域信息 20250116 影响性能屏蔽
List<WarehouseAreaDO> areaList = warehouseAreaService.list(new LambdaQueryWrapper<>());
List<WarehouseAreaPositionDO> positionList = warehouseAreaPositionService.list(new LambdaQueryWrapper<>());
for (BoxLoadSectionBackVO sectionBackVO : boxLoadDetailBackVO) {
List<BoxLoadOrderVO> orderList = sectionBackVO.getSectionOrderList();
if (CollectionUtil.isEmpty(orderList)) continue;
for (BoxLoadOrderVO orderVO : orderList) {
Long orderId = orderVO.getOrderId();
List<OrderLocationDO> orderLocationLists = orderLocationService.getOrderLocationListByOrderId(orderId);
//按照订单纬度返回信息,分组
Map<String, List<OrderLocationDO>> positionMap = orderLocationLists.stream()
.collect(Collectors.groupingBy(
t -> t.getOrderId() + "_" +
// t.getOrderItemId() + "_" +
t.getWareId() + "_" + t.getAreaId() + "_" + t.getLocationId()));
List<OrderLocationDO> locationList = new ArrayList<>();
for (Map.Entry<String, List<OrderLocationDO>> entry : positionMap.entrySet()) {
List<OrderLocationDO> orderLocationDOList = entry.getValue();
locationList.add(orderLocationDOList.get(0));
}
String positionNo = matchLocation(areaList, positionList, locationList);
orderVO.setPositionNo(positionNo);
orderVO.setOrderLocationList(OrderLocationConvert.INSTANCE.convertList(locationList));
List<BoxPreloadGoodsBackVO> orderGoodsItemList = orderVO.getGoodsList();
for (BoxPreloadGoodsBackVO itemVO : orderGoodsItemList) {
matchItemLocation(areaList, positionList, locationList, itemVO);
}
}
}
*/
BoxCabinetLoadVO
boxCabinetLoadVO
=
new
BoxCabinetLoadVO
();
boxCabinetLoadVO
.
setLoadDetail
(
boxLoadDetailBackVO
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment