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
7bc11d44
Commit
7bc11d44
authored
Jan 11, 2025
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 云效 JDAA-245: 6.装柜页面,NG2500009L 没有显示储位
(cherry picked from commit
320288ca
)
parent
7f5e7224
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
BoxServiceImpl.java
...der/yudao/module/shipment/service/box/BoxServiceImpl.java
+33
-0
MyBoxController.http
...dao/module/shipment/controller/admin/MyBoxController.http
+8
-0
No files found.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/box/BoxServiceImpl.java
View file @
7bc11d44
...
...
@@ -2761,6 +2761,39 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
public
BoxCabinetLoadVO
getBoxCabinetDetail
(
Long
shipmentId
)
{
List
<
BoxLoadSectionBackVO
>
boxLoadDetailBackVO
=
boxPreloadGoodsService
.
loadSecGoodsList
(
shipmentId
);
//查询所有库区库域信息
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
);
...
...
yudao-module-shipment/yudao-module-shipment-rest/src/main/java/cn/iocoder/yudao/module/shipment/controller/admin/MyBoxController.http
0 → 100644
View file @
7bc11d44
### 获得装柜详情 cabinetDetail
GET {{baseUrl}}/my/shipment/cabinetDetail?shipmentId=2497
Authorization: Bearer {{token}}
tenant-id: {{adminTenentId}}
Content-Type: application/json
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