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
10111b44
Commit
10111b44
authored
Aug 19, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
核销商品券传商品原价
parent
01a23dcb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
+1
-0
order-application-service/src/main/java/cn/freemud/adapter/CreateOrderAdapter.java
+2
-1
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+2
-1
order-application-service/src/main/java/cn/freemud/service/coupon/impl/PlatformCouponRelationServiceImpl.java
+2
-0
No files found.
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
View file @
10111b44
...
...
@@ -3813,6 +3813,7 @@ public class OrderSdkAdapter {
couponCodeVerificationProductDto
.
setPid
(
pid
);
couponCodeVerificationProductDto
.
setConsume_num
(
productDiscount
.
getDiscountQty
());
couponCodeVerificationProductDto
.
setSeq
(
i
+
1
);
couponCodeVerificationProductDto
.
setRedeem_price
(
new
BigDecimal
(
productBean
.
getPrice
()));
products
.
add
(
couponCodeVerificationProductDto
);
}
}
...
...
order-application-service/src/main/java/cn/freemud/adapter/CreateOrderAdapter.java
View file @
10111b44
...
...
@@ -920,7 +920,8 @@ public class CreateOrderAdapter {
.
accountType
(
getQueryOrderAccountType
(
getOrderAccountType
(
activityDiscountsDto
.
getActivityType
())))
.
sequence
(
createOrderProductDto
.
getSequence
())
.
productId
(
material
.
getSpuId
())
.
discountQty
(
createOrderProductDto
.
getNumber
())
.
discountQty
((
activityDiscountsDto
.
getActualActivityGoodsNumber
()
==
null
||
activityDiscountsDto
.
getActualActivityGoodsNumber
()
==
0
)
?
createOrderProductDto
.
getNumber
()
:
activityDiscountsDto
.
getActualActivityGoodsNumber
())
.
build
();
orderAccountDtos
.
add
(
createOrderAccountDto
);
}
...
...
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
10111b44
...
...
@@ -462,7 +462,8 @@ public class OrderAdapter {
.
accountType
(
getQueryOrderAccountType
(
getOrderAccountType
(
activityDiscountsDto
.
getActivityType
())))
.
sequence
(
createOrderProductDto
.
getSequence
())
.
productId
(
createOrderProductDto
.
getSpecification
())
.
discountQty
(
createOrderProductDto
.
getNumber
())
.
discountQty
((
activityDiscountsDto
.
getActualActivityGoodsNumber
()
==
null
||
activityDiscountsDto
.
getActualActivityGoodsNumber
()
==
0
)
?
createOrderProductDto
.
getNumber
()
:
activityDiscountsDto
.
getActualActivityGoodsNumber
())
.
build
();
orderAccountDtos
.
add
(
createOrderAccountDto
);
}
...
...
order-application-service/src/main/java/cn/freemud/service/coupon/impl/PlatformCouponRelationServiceImpl.java
View file @
10111b44
...
...
@@ -50,6 +50,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -148,6 +149,7 @@ public class PlatformCouponRelationServiceImpl implements CouponRelationService
couponCodeVerificationProductDto
.
setPID
(
pid
);
couponCodeVerificationProductDto
.
setConsume_num
(
productDiscount
.
getDiscountQty
());
couponCodeVerificationProductDto
.
setSeq
(
i
+
1
);
couponCodeVerificationProductDto
.
setRedeem_price
(
new
BigDecimal
(
productBean
.
getPrice
()));
products
.
add
(
couponCodeVerificationProductDto
);
}
}
...
...
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