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
df0bc8d0
Commit
df0bc8d0
authored
Dec 20, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 在pda中 入仓纪录明细信息需要返回品牌名和产品名
parent
1ce554dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletion
+36
-1
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+22
-0
OrderWarehouseInDetailsVO.java
...udao/module/order/vo/order/OrderWarehouseInDetailsVO.java
+13
-0
OrderWarehouseInController.http
...er/admin/orderWarehouseIn/OrderWarehouseInController.http
+1
-1
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
df0bc8d0
package
cn
.
iocoder
.
yudao
.
module
.
order
.
service
.
orderWarehouseIn
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.date.DateTime
;
import
cn.hutool.core.date.DateUtil
;
...
...
@@ -4717,6 +4718,27 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
}).
collect
(
Collectors
.
joining
(
","
));
orderWarehouseInBackItemDo
.
setOrderLocationStr4Merge
(
orderLocationStr4Merge
);
// 设置明细产品名称
List
<
OrderWarehouseInDetailsVO
>
orderWarehouseInDetailsVOList
=
orderWarehouseInBackItemDo
.
getOrderWarehouseInDetailsVOList
();
if
(
CollUtil
.
isNotEmpty
(
orderWarehouseInDetailsVOList
))
{
for
(
OrderWarehouseInDetailsVO
orderWarehouseInDetailsVO
:
orderWarehouseInDetailsVOList
)
{
if
(
orderWarehouseInDetailsVO
.
getProdId
()
!=
null
)
{
ProductDO
productDO
=
productService
.
getProduct
(
orderWarehouseInDetailsVO
.
getProdId
());
if
(
productDO
!=
null
)
{
orderWarehouseInDetailsVO
.
setProdTitleZh
(
productDO
.
getTitleZh
());
orderWarehouseInDetailsVO
.
setProdTitleEn
(
productDO
.
getTitleEn
());
}
}
// 品牌名称
if
(
orderWarehouseInDetailsVO
.
getBrand
()
!=
null
)
{
ProductBrankDO
productBrank
=
productBrankService
.
getProductBrank
(
orderWarehouseInDetailsVO
.
getBrand
());
if
(
productBrank
!=
null
)
{
orderWarehouseInDetailsVO
.
setBrandName
(
I18nMessage
.
getLang
()
==
0
?
productBrank
.
getTitleZh
()
:
productBrank
.
getTitleEn
());
}
}
}
}
return
orderWarehouseInBackItemDo
;
}).
collect
(
Collectors
.
toList
());
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderWarehouseInDetailsVO.java
View file @
df0bc8d0
...
...
@@ -77,4 +77,17 @@ public class OrderWarehouseInDetailsVO {
@ApiModelProperty
(
value
=
"材质"
)
private
String
material
;
@ApiModelProperty
(
value
=
"产品中文标题"
)
private
String
prodTitleZh
;
@ApiModelProperty
(
value
=
"产品英文标题"
)
private
String
prodTitleEn
;
@ApiModelProperty
(
value
=
"品牌名称"
)
private
String
brandName
;
}
yudao-module-order/yudao-module-order-rest/src/main/java/cn/iocoder/yudao/module/order/controller/admin/orderWarehouseIn/OrderWarehouseInController.http
View file @
df0bc8d0
...
...
@@ -149,7 +149,7 @@ Content-Type: application/json
#### 获取订单的入仓纪录信息
GET {{baseUrl}}/order/order-warehouse-in/get-order-warehouse-in?orderId=
19419
GET {{baseUrl}}/order/order-warehouse-in/get-order-warehouse-in?orderId=
83641
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