Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
4bc2d27b
Commit
4bc2d27b
authored
Jan 04, 2022
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
除配送券外,其他券都需要传商品数据
parent
01287880
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
order-application-service/src/main/java/cn/freemud/adapter/CouponAdapter.java
+9
-2
No files found.
order-application-service/src/main/java/cn/freemud/adapter/CouponAdapter.java
View file @
4bc2d27b
...
...
@@ -952,13 +952,20 @@ public class CouponAdapter {
List
<
OrderSettlementResp
>
couponProductList
=
orderBean
.
getOrderSettlementDetailList
().
stream
().
filter
(
productSettlement
->
!
Objects
.
equals
(
""
,
productSettlement
.
getProductId
())
&&
Objects
.
equals
(
orderSettlement
.
getExternalObjectId
(),
productSettlement
.
getExternalObjectId
())
&&
OrderSettlementType
.
PRODUCT_COUPON
.
getIndex
().
equals
(
productSettlement
.
getSettlementType
())
&&
orderSettlement
.
getSettlementType
().
equals
(
productSettlement
.
getSettlementType
())
).
collect
(
Collectors
.
toList
());
for
(
OrderSettlementResp
couponProduct
:
couponProductList
){
PreCheckAndLockReq
.
ProductInfo
productInfo
=
new
PreCheckAndLockReq
.
ProductInfo
();
productInfo
.
setProductId
(
couponProduct
.
getProductId
());
//商品名称 原价从订单商品获取
//商品名称/原价从订单商品获取
for
(
ProductBeanV1
productBeanV1
:
orderBean
.
getProductList
()){
if
(
couponProduct
.
getProductId
().
equals
(
productBeanV1
.
getSpecification
())
&&
couponProduct
.
getProductSeq
().
equals
(
productBeanV1
.
getSequence
())){
productInfo
.
setProductName
(
productBeanV1
.
getSpecificationName
());
productInfo
.
setTotalPrice
(
productBeanV1
.
getPrice
().
intValue
()*
productBeanV1
.
getNumber
());
break
;
}
}
productInfo
.
setQty
(
couponProduct
.
getNumber
());
productInfo
.
setCouponDiscountTotalAmount
(
Math
.
abs
(
couponProduct
.
getSettlementAmount
().
intValue
()));
...
...
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