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
f0336d0f
Commit
f0336d0f
authored
May 25, 2021
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
频次券问题
parent
6441813d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
shopping-cart-application-service/src/main/java/cn/freemud/demo/adapter/service/CheckAdapter.java
+4
-2
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/demo/adapter/service/CheckAdapter.java
View file @
f0336d0f
...
@@ -3,6 +3,7 @@ package cn.freemud.demo.adapter.service;
...
@@ -3,6 +3,7 @@ package cn.freemud.demo.adapter.service;
import
cn.freemud.demo.entities.bo.CheckAdapterBO
;
import
cn.freemud.demo.entities.bo.CheckAdapterBO
;
import
cn.freemud.demo.entities.bo.goods.AddGoodsToShoppingCartBO
;
import
cn.freemud.demo.entities.bo.goods.AddGoodsToShoppingCartBO
;
import
cn.freemud.demo.entities.bo.goods.CheckBussinessRulesBO
;
import
cn.freemud.demo.entities.bo.goods.CheckBussinessRulesBO
;
import
cn.freemud.demo.enums.RequestType
;
import
cn.freemud.demo.utils.CommonUtils
;
import
cn.freemud.demo.utils.CommonUtils
;
import
cn.freemud.entities.dto.CheckSpqInfoRequestDto
;
import
cn.freemud.entities.dto.CheckSpqInfoRequestDto
;
import
cn.freemud.entities.dto.CheckSpqInfoResponseDto
;
import
cn.freemud.entities.dto.CheckSpqInfoResponseDto
;
...
@@ -32,9 +33,10 @@ public class CheckAdapter {
...
@@ -32,9 +33,10 @@ public class CheckAdapter {
HashMap
<
String
,
List
<
String
>>
spqIdToCartUuid
=
new
HashMap
<>(
16
);
HashMap
<
String
,
List
<
String
>>
spqIdToCartUuid
=
new
HashMap
<>(
16
);
for
(
int
i
=
0
;
i
<
cartGoodsList
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
cartGoodsList
.
size
();
i
++){
CartGoods
cartGoods
=
cartGoodsList
.
get
(
i
);
CartGoods
cartGoods
=
cartGoodsList
.
get
(
i
);
if
(
CommonUtils
.
isProductCoupon
(
bo
.
getCouponCode
(),
cartGoods
.
getCartGoodsUid
())){
String
couponCode
=
CommonUtils
.
getCouponCode
(
bo
.
getCouponCode
(),
cartGoods
.
getCartGoodsUid
());
if
(
CommonUtils
.
isProductCoupon
(
cartGoods
.
getCouponCode
(),
cartGoods
.
getCartGoodsUid
())){
String
couponCode
=
CommonUtils
.
getCouponCode
(
cartGoods
.
getCouponCode
(),
cartGoods
.
getCartGoodsUid
());
boolean
useCoupon
=
true
;
// 优惠券放在coupon字段而不是uuid中
boolean
useCoupon
=
true
;
// 优惠券放在coupon字段而不是uuid中
if
(
cartGoods
.
getCartGoodsUid
().
startsWith
(
CommonsConstant
.
COUPON_PREFIX
)){
if
(
cartGoods
.
getCartGoodsUid
().
startsWith
(
CommonsConstant
.
COUPON_PREFIX
)){
useCoupon
=
false
;
useCoupon
=
false
;
...
...
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