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
fb9618d7
Commit
fb9618d7
authored
Jun 11, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车兼并 配送券
Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent
91b6c184
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
0 deletions
+13
-0
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+1
-0
order-application-service/src/main/java/cn/freemud/entities/dto/GetCouponDetailResponseDto.java
+1
-0
order-application-service/src/main/java/cn/freemud/entities/vo/CreateOrderVo.java
+5
-0
order-application-service/src/main/java/cn/freemud/entities/vo/ShoppingCartInfoRequestVo.java
+5
-0
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+1
-0
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
fb9618d7
...
@@ -241,6 +241,7 @@ public class OrderAdapter {
...
@@ -241,6 +241,7 @@ public class OrderAdapter {
createOrderDto
.
setProducts
(
products
);
createOrderDto
.
setProducts
(
products
);
boolean
hasDeliveryMonthCard
=
false
;
boolean
hasDeliveryMonthCard
=
false
;
for
(
ActivityDiscountsDto
activityDiscountsDto
:
activityDiscountsDtos
)
{
for
(
ActivityDiscountsDto
activityDiscountsDto
:
activityDiscountsDtos
)
{
// fisherman 3.0.34 运费券 这里塞进去的
CreateOrderAccountRequest
createOrderAccountDto
=
CreateOrderAccountRequest
.
builder
()
CreateOrderAccountRequest
createOrderAccountDto
=
CreateOrderAccountRequest
.
builder
()
.
accountId
(
activityDiscountsDto
.
getActivityCode
())
.
accountId
(
activityDiscountsDto
.
getActivityCode
())
.
name
(
activityDiscountsDto
.
getActivityName
())
.
name
(
activityDiscountsDto
.
getActivityName
())
...
...
order-application-service/src/main/java/cn/freemud/entities/dto/GetCouponDetailResponseDto.java
View file @
fb9618d7
...
@@ -22,6 +22,7 @@ public class GetCouponDetailResponseDto {
...
@@ -22,6 +22,7 @@ public class GetCouponDetailResponseDto {
private
String
code
;
private
String
code
;
private
String
activeCode
;
private
String
activeCode
;
private
String
title
;
private
String
title
;
//券类型:0商品券,1代金券,3折扣券,4换购券 5.配送券
private
Integer
type
;
private
Integer
type
;
private
Integer
status
;
private
Integer
status
;
private
String
create_time
;
private
String
create_time
;
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/CreateOrderVo.java
View file @
fb9618d7
...
@@ -436,6 +436,11 @@ public class CreateOrderVo {
...
@@ -436,6 +436,11 @@ public class CreateOrderVo {
* 顺序
* 顺序
*/
*/
private
Integer
index
;
private
Integer
index
;
/**
* 优惠券类型
*/
private
Integer
couponType
;
}
}
/**
/**
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/ShoppingCartInfoRequestVo.java
View file @
fb9618d7
...
@@ -199,6 +199,11 @@ public class ShoppingCartInfoRequestVo {
...
@@ -199,6 +199,11 @@ public class ShoppingCartInfoRequestVo {
* 顺序
* 顺序
*/
*/
private
Integer
index
;
private
Integer
index
;
/**
* 优惠券类型
*/
private
Integer
couponType
;
}
}
/**
/**
...
...
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
fb9618d7
...
@@ -604,6 +604,7 @@ public class CheckOrder {
...
@@ -604,6 +604,7 @@ public class CheckOrder {
coupon
.
setCouponCode
(
couponCode
.
getCouponCode
());
coupon
.
setCouponCode
(
couponCode
.
getCouponCode
());
coupon
.
setActivityCode
(
activeCode
);
coupon
.
setActivityCode
(
activeCode
);
coupon
.
setIndex
(
couponCode
.
getIndex
());
coupon
.
setIndex
(
couponCode
.
getIndex
());
coupon
.
setCouponType
(
getCouponDetailResponseDto
.
getDetails
().
get
(
0
).
getType
());
couponCodes
.
add
(
coupon
);
couponCodes
.
add
(
coupon
);
});
});
...
...
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