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
3f29a37b
Commit
3f29a37b
authored
Oct 20, 2020
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
万能券核销
parent
586e82f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
order-application-service/src/main/java/cn/freemud/adapter/CouponAdapter.java
+10
-8
order-management/src/main/java/cn/freemud/management/adapter/McCafeCouponAdapter.java
+1
-1
No files found.
order-application-service/src/main/java/cn/freemud/adapter/CouponAdapter.java
View file @
3f29a37b
...
@@ -675,7 +675,7 @@ public class CouponAdapter {
...
@@ -675,7 +675,7 @@ public class CouponAdapter {
mcCafeProductRedeemVo
.
setCustomer_code
(
productBean
.
getCustomerCode
());
mcCafeProductRedeemVo
.
setCustomer_code
(
productBean
.
getCustomerCode
());
mcCafeProductRedeemVo
.
setConsume_num
(
productDiscount
.
getDiscountQty
());
mcCafeProductRedeemVo
.
setConsume_num
(
productDiscount
.
getDiscountQty
());
mcCafeProductRedeemVo
.
setSeq
(
i
+
1
);
mcCafeProductRedeemVo
.
setSeq
(
i
+
1
);
if
(
CollectionUtils
.
isNotEmpty
(
coupon
.
getCodeInfo
().
getGroups
()))
{
if
(
null
!=
coupon
&&
CollectionUtils
.
isNotEmpty
(
coupon
.
getCodeInfo
().
getGroups
()))
{
mcCafeProductRedeemVo
.
setGid
(
coupon
.
getCodeInfo
().
getGroups
().
get
(
0
).
getGid
());
mcCafeProductRedeemVo
.
setGid
(
coupon
.
getCodeInfo
().
getGroups
().
get
(
0
).
getGid
());
}
}
products
.
add
(
mcCafeProductRedeemVo
);
products
.
add
(
mcCafeProductRedeemVo
);
...
@@ -695,13 +695,15 @@ public class CouponAdapter {
...
@@ -695,13 +695,15 @@ public class CouponAdapter {
products
.
add
(
mcCafeProductRedeemVo
);
products
.
add
(
mcCafeProductRedeemVo
);
}
}
}
else
if
(
QueryOrderAccountType
.
FREIGHT_COUPON
.
equals
(
orderAdapter
.
getQueryOrderAccountType
(
OldOrderAccountType
.
getByCode
(
accountBean
.
getType
()))))
{
}
else
if
(
QueryOrderAccountType
.
FREIGHT_COUPON
.
equals
(
orderAdapter
.
getQueryOrderAccountType
(
OldOrderAccountType
.
getByCode
(
accountBean
.
getType
()))))
{
McdNetCouponProductRespDto
mcdNetCouponProductRespDto
=
coupon
.
getCodeInfo
().
getProducts
().
get
(
0
);
if
(
null
!=
coupon
)
{
MCCafeProductRedeemVo
mcCafeProductRedeemVo
=
new
MCCafeProductRedeemVo
();
McdNetCouponProductRespDto
mcdNetCouponProductRespDto
=
coupon
.
getCodeInfo
().
getProducts
().
get
(
0
);
mcCafeProductRedeemVo
.
setKeyProductCode
(
mcdNetCouponProductRespDto
.
getPid
());
MCCafeProductRedeemVo
mcCafeProductRedeemVo
=
new
MCCafeProductRedeemVo
();
mcCafeProductRedeemVo
.
setCustomer_code
(
mcdNetCouponProductRespDto
.
getPid
());
mcCafeProductRedeemVo
.
setKeyProductCode
(
mcdNetCouponProductRespDto
.
getPid
());
mcCafeProductRedeemVo
.
setConsume_num
(
mcdNetCouponProductRespDto
.
getNumber
());
mcCafeProductRedeemVo
.
setCustomer_code
(
mcdNetCouponProductRespDto
.
getPid
());
mcCafeProductRedeemVo
.
setSeq
(
1
);
mcCafeProductRedeemVo
.
setConsume_num
(
mcdNetCouponProductRespDto
.
getNumber
());
products
.
add
(
mcCafeProductRedeemVo
);
mcCafeProductRedeemVo
.
setSeq
(
1
);
products
.
add
(
mcCafeProductRedeemVo
);
}
}
}
MCCafeCouponRequest
mcCafeCouponRequest
=
new
MCCafeCouponRequest
();
MCCafeCouponRequest
mcCafeCouponRequest
=
new
MCCafeCouponRequest
();
mcCafeCouponRequest
.
setVer
(
Integer
.
valueOf
(
Version
.
VERSION_1
));
mcCafeCouponRequest
.
setVer
(
Integer
.
valueOf
(
Version
.
VERSION_1
));
...
...
order-management/src/main/java/cn/freemud/management/adapter/McCafeCouponAdapter.java
View file @
3f29a37b
...
@@ -94,7 +94,7 @@ public class McCafeCouponAdapter {
...
@@ -94,7 +94,7 @@ public class McCafeCouponAdapter {
mcCafeProductRedeemVo
.
setCustomer_code
(
productBean
.
getCustomerCode
());
mcCafeProductRedeemVo
.
setCustomer_code
(
productBean
.
getCustomerCode
());
mcCafeProductRedeemVo
.
setConsume_num
(
productDiscount
.
getDiscountQty
());
mcCafeProductRedeemVo
.
setConsume_num
(
productDiscount
.
getDiscountQty
());
mcCafeProductRedeemVo
.
setSeq
(
i
+
1
);
mcCafeProductRedeemVo
.
setSeq
(
i
+
1
);
if
(
CollectionUtils
.
isNotEmpty
(
coupon
.
getCodeInfo
().
getGroups
()))
{
if
(
null
!=
coupon
&&
CollectionUtils
.
isNotEmpty
(
coupon
.
getCodeInfo
().
getGroups
()))
{
mcCafeProductRedeemVo
.
setGid
(
coupon
.
getCodeInfo
().
getGroups
().
get
(
0
).
getGid
());
mcCafeProductRedeemVo
.
setGid
(
coupon
.
getCodeInfo
().
getGroups
().
get
(
0
).
getGid
());
}
}
products
.
add
(
mcCafeProductRedeemVo
);
products
.
add
(
mcCafeProductRedeemVo
);
...
...
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