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
919d2268
Commit
919d2268
authored
Dec 19, 2024
by
Smile
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jd_dev' of
http://110.41.143.128:8081/lanbaoming/jiedao-api-boot-master
into jd_dev
parents
e9b7e996
5ccd2dc9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
35 deletions
+33
-35
CustomerController.java
...ustomer/controller/admin/customer/CustomerController.java
+24
-35
OrderBusinessServiceImpl.java
...le/order/service/order/impl/OrderBusinessServiceImpl.java
+4
-0
MakeBillOfLadingServiceImpl.java
...service/makeBillOfLading/MakeBillOfLadingServiceImpl.java
+4
-0
BoxPreloadGoodsController.java
.../shipment/controller/admin/BoxPreloadGoodsController.java
+1
-0
No files found.
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customer/CustomerController.java
View file @
919d2268
...
...
@@ -438,29 +438,23 @@ public class CustomerController {
respVO
.
setPromoterName
(
customer1
.
getName
());
}
}
if
(
CollectionUtil
.
isNotEmpty
(
respVO
.
getProductList
()))
{
// 对商品数据进行分组返回
Map
<
Long
,
List
<
ProductRespVO
>>
productRespVOMap
=
respVO
.
getProductList
().
stream
().
collect
(
Collectors
.
groupingBy
(
ProductRespVO:
:
getTypeId
));
List
<
CustomerProductTypeGroupVO
>
products
=
productRespVOMap
.
entrySet
().
stream
().
map
(
entry
->
{
CustomerProductTypeGroupVO
productTypeGroupVO
=
new
CustomerProductTypeGroupVO
();
productTypeGroupVO
.
setTypeId
(
entry
.
getKey
());
productTypeGroupVO
.
setProductIds
(
entry
.
getValue
().
stream
().
map
(
ProductRespVO:
:
getId
).
collect
(
Collectors
.
toList
()));
return
productTypeGroupVO
;
}).
collect
(
Collectors
.
toList
());
// 主营类别是必须的
if
(
CollectionUtil
.
isNotEmpty
(
respVO
.
getProductTypeList
())){
// 允许选择了主营类别,但是该主营类别下面没有对应的商品
List
<
CustomerProductTypeGroupVO
>
products
=
new
ArrayList
<>();
for
(
ProductTypeRespVO
typeRespVO
:
respVO
.
getProductTypeList
())
{
if
(!
productRespVOMap
.
containsKey
(
typeRespVO
.
getId
()))
{
CustomerProductTypeGroupVO
productTypeGroupVO
=
new
CustomerProductTypeGroupVO
();
productTypeGroupVO
.
setTypeId
(
typeRespVO
.
getId
());
if
(
CollectionUtil
.
isNotEmpty
(
respVO
.
getProductList
()))
{
List
<
Long
>
prodIds
=
respVO
.
getProductList
().
stream
().
filter
(
p
->
p
.
getTypeId
()
==
typeRespVO
.
getId
()).
map
(
ProductRespVO:
:
getId
).
collect
(
Collectors
.
toList
());
productTypeGroupVO
.
setProductIds
(
CollectionUtil
.
isEmpty
(
prodIds
)
?
new
ArrayList
<>()
:
prodIds
);
}
else
{
productTypeGroupVO
.
setProductIds
(
new
ArrayList
<>());
products
.
add
(
productTypeGroupVO
);
}
}
products
.
add
(
productTypeGroupVO
);
}
respVO
.
setProducts
(
products
);
}
//设置银行账号
CustomerBankQueryVO
customerBankQueryVO
=
new
CustomerBankQueryVO
();
customerBankQueryVO
.
setCustomerId
(
id
);
...
...
@@ -501,25 +495,20 @@ public class CustomerController {
if
(
Objects
.
isNull
(
respVO
))
{
throw
exception
(
CUSTOMER_NOT_EXISTS
);
}
if
(
CollectionUtil
.
isNotEmpty
(
respVO
.
getProductList
()))
{
// 对商品数据进行分组返回
Map
<
Long
,
List
<
ProductRespVO
>>
productRespVOMap
=
respVO
.
getProductList
().
stream
().
collect
(
Collectors
.
groupingBy
(
ProductRespVO:
:
getTypeId
));
List
<
CustomerProductTypeGroupVO
>
products
=
productRespVOMap
.
entrySet
().
stream
().
map
(
entry
->
{
CustomerProductTypeGroupVO
productTypeGroupVO
=
new
CustomerProductTypeGroupVO
();
productTypeGroupVO
.
setTypeId
(
entry
.
getKey
());
productTypeGroupVO
.
setProductIds
(
entry
.
getValue
().
stream
().
map
(
ProductRespVO:
:
getId
).
collect
(
Collectors
.
toList
()));
return
productTypeGroupVO
;
}).
collect
(
Collectors
.
toList
());
// 主营类别是必须的
if
(
CollectionUtil
.
isNotEmpty
(
respVO
.
getProductTypeList
())){
// 允许选择了主营类别,但是该主营类别下面没有对应的商品
List
<
CustomerProductTypeGroupVO
>
products
=
new
ArrayList
<>();
for
(
ProductTypeRespVO
typeRespVO
:
respVO
.
getProductTypeList
())
{
if
(!
productRespVOMap
.
containsKey
(
typeRespVO
.
getId
()))
{
CustomerProductTypeGroupVO
productTypeGroupVO
=
new
CustomerProductTypeGroupVO
();
productTypeGroupVO
.
setTypeId
(
typeRespVO
.
getId
());
if
(
CollectionUtil
.
isNotEmpty
(
respVO
.
getProductList
()))
{
List
<
Long
>
prodIds
=
respVO
.
getProductList
().
stream
().
filter
(
p
->
p
.
getTypeId
()
==
typeRespVO
.
getId
()).
map
(
ProductRespVO:
:
getId
).
collect
(
Collectors
.
toList
());
productTypeGroupVO
.
setProductIds
(
CollectionUtil
.
isEmpty
(
prodIds
)
?
new
ArrayList
<>()
:
prodIds
);
}
else
{
productTypeGroupVO
.
setProductIds
(
new
ArrayList
<>());
products
.
add
(
productTypeGroupVO
);
}
}
products
.
add
(
productTypeGroupVO
);
}
respVO
.
setProducts
(
products
);
}
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderBusinessServiceImpl.java
View file @
919d2268
...
...
@@ -2766,6 +2766,10 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
// 处理未报价时,如果是已入仓产品去生成应收
isPayAdvanceException
=
this
.
addOrderReceivable
(
orderDO
,
1
);
}
else
if
(
orderDO
.
getShipmentState
()
>
0
)
{
// 已出货订单修改计价都需要更新应收单
isPayAdvanceException
=
this
.
addOrderReceivable
(
orderDO
,
1
);
}
else
{
isPayAdvanceException
=
this
.
addOrderReceivable
(
orderDO
,
2
);
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/makeBillOfLading/MakeBillOfLadingServiceImpl.java
View file @
919d2268
...
...
@@ -905,6 +905,10 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin
// .map(BoxPreloadGoodsBackVO::getWeight)
// .reduce(BigDecimal.ZERO, BigDecimal::add);
}
if
(
CollectionUtil
.
isNotEmpty
(
list
)
&&
list
.
size
()
>
0
){
// 重新排序
list
=
list
.
stream
().
sorted
(
Comparator
.
comparing
(
MakeBillOfLadingListBackVO:
:
getTidanNo
)).
collect
(
Collectors
.
toList
());
}
map
.
put
(
"totalNum"
,
totalNum
);
map
.
put
(
"totalVolume"
,
totalVolume
);
map
.
put
(
"totalWeight"
,
totalWeight
);
...
...
yudao-module-shipment/yudao-module-shipment-rest/src/main/java/cn/iocoder/yudao/module/shipment/controller/admin/BoxPreloadGoodsController.java
View file @
919d2268
...
...
@@ -163,6 +163,7 @@ public class BoxPreloadGoodsController {
@PostMapping
(
"/createAir"
)
@ApiOperation
(
"创建预装货物-空运, use this"
)
@Idempotent
(
timeout
=
5
)
public
CommonResult
<
PreloadResultVO
>
createBoxPreloadGoodsAir
(
@Valid
@RequestBody
BoxPreloadGoodsCreateReqVO
createReqVO
)
{
return
success
(
boxPreloadGoodsService
.
createBoxPreloadGoodsAir
(
createReqVO
));
}
...
...
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