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
e231f8d7
Commit
e231f8d7
authored
Dec 08, 2020
by
刘鹏飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/feature/coco-payGift-刘鹏飞' into qa
parents
c2fc9fef
13d8b1f6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
+26
-3
order-application-service/src/main/java/cn/freemud/entities/vo/CreateOrderVo.java
+18
-1
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
+3
-2
No files found.
order-application-service/src/main/java/cn/freemud/entities/vo/CreateOrderVo.java
View file @
e231f8d7
...
...
@@ -165,7 +165,7 @@ public class CreateOrderVo {
/**
* 券码列表
*/
private
List
<
String
>
couponCodes
;
private
List
<
couponCode
>
couponCodes
;
/**
* 运费券code
...
...
@@ -409,4 +409,21 @@ public class CreateOrderVo {
*/
private
Boolean
sendCoupon
;
}
@Data
public
final
static
class
couponCode
{
/**
* 优惠券
*/
private
String
couponCode
;
/**
* 活动号
*/
private
String
activityCode
;
/**
* 顺序
*/
private
Integer
index
;
}
}
order-application-service/src/main/java/cn/freemud/entities/vo/ShoppingCartInfoRequestVo.java
View file @
e231f8d7
...
...
@@ -195,6 +195,11 @@ public class ShoppingCartInfoRequestVo {
* 活动号
*/
private
String
activityCode
;
/**
* 顺序
*/
private
Integer
index
;
}
}
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
e231f8d7
...
...
@@ -529,7 +529,7 @@ public class CheckOrder {
// 校验couponCode
GetCouponDetailResponseDto
getCouponDetailResponseDto
=
couponService
.
getMemberCoupon
(
GetMemberCouponRequestVo
.
builder
()
.
partnerId
(
createOrderVo
.
getPartnerId
())
.
couponCode
(
couponCode
).
build
());
.
couponCode
(
couponCode
.
getCouponCode
()
).
build
());
if
(
Objects
.
equals
(
getCouponDetailResponseDto
,
null
)
||
CollectionUtils
.
isEmpty
(
getCouponDetailResponseDto
.
getDetails
())
||
getCouponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
()
==
null
||
getCouponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getActiveCode
()
==
null
)
{
...
...
@@ -544,8 +544,9 @@ public class CheckOrder {
}
String
activeCode
=
getCouponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getActiveCode
();
ShoppingCartInfoRequestVo
.
couponCode
coupon
=
new
ShoppingCartInfoRequestVo
.
couponCode
();
coupon
.
setCouponCode
(
couponCode
);
coupon
.
setCouponCode
(
couponCode
.
getCouponCode
()
);
coupon
.
setActivityCode
(
activeCode
);
coupon
.
setIndex
(
couponCode
.
getIndex
());
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