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
5dc6be4b
Commit
5dc6be4b
authored
Feb 23, 2021
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品券显示问题
parent
4d9cc525
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
0 deletions
+11
-0
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/domain/CartGoods.java
+5
-0
shopping-cart-application-service/src/main/java/cn/freemud/demo/entities/bo/coupon/CheckSpqBO.java
+2
-0
shopping-cart-application-service/src/main/java/cn/freemud/demo/manager/coupon/KgdCouponServiceImpl.java
+1
-0
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/PlatformApportionService.java
+1
-0
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/PlatformListCartGoodsService.java
+1
-0
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/PlatformUpdateGoodsQtyService.java
+1
-0
No files found.
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/domain/CartGoods.java
View file @
5dc6be4b
...
@@ -83,6 +83,11 @@ public class CartGoods {
...
@@ -83,6 +83,11 @@ public class CartGoods {
*/
*/
private
String
couponName
;
private
String
couponName
;
/**
* 购物车商品券商品价格
*/
private
Long
couponProductPrice
;
private
String
spuId
;
private
String
spuId
;
private
String
skuId
;
private
String
skuId
;
/**
/**
...
...
shopping-cart-application-service/src/main/java/cn/freemud/demo/entities/bo/coupon/CheckSpqBO.java
View file @
5dc6be4b
...
@@ -12,6 +12,8 @@ public class CheckSpqBO {
...
@@ -12,6 +12,8 @@ public class CheckSpqBO {
private
Integer
type
;
private
Integer
type
;
private
Long
productPrice
;
private
CouponDetailBO
.
Details
details
;
private
CouponDetailBO
.
Details
details
;
}
}
shopping-cart-application-service/src/main/java/cn/freemud/demo/manager/coupon/KgdCouponServiceImpl.java
View file @
5dc6be4b
...
@@ -167,6 +167,7 @@ public class KgdCouponServiceImpl implements CouponService {
...
@@ -167,6 +167,7 @@ public class KgdCouponServiceImpl implements CouponService {
result
.
setDetails
(
couponActivityDetail
);
result
.
setDetails
(
couponActivityDetail
);
result
.
setSkuId
(
productsVo
.
getSkuId
());
result
.
setSkuId
(
productsVo
.
getSkuId
());
result
.
setSpuId
(
productsVo
.
getSpuId
());
result
.
setSpuId
(
productsVo
.
getSpuId
());
result
.
setProductPrice
(
productsVo
.
getFinalPrice
());
return
result
;
return
result
;
...
...
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/PlatformApportionService.java
View file @
5dc6be4b
...
@@ -220,6 +220,7 @@ public class PlatformApportionService extends AbstractApportionService {
...
@@ -220,6 +220,7 @@ public class PlatformApportionService extends AbstractApportionService {
if
(
null
==
checkSpqInfo
)
{
if
(
null
==
checkSpqInfo
)
{
cartGoodsList
.
remove
(
i
);
cartGoodsList
.
remove
(
i
);
}
else
{
}
else
{
cartGoods
.
setCouponProductPrice
(
checkSpqInfo
.
getPrice
());
validCouponMap
.
put
(
spqId
,
checkSpqInfo
);
validCouponMap
.
put
(
spqId
,
checkSpqInfo
);
}
}
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/PlatformListCartGoodsService.java
View file @
5dc6be4b
...
@@ -269,6 +269,7 @@ public class PlatformListCartGoodsService extends AbstractListCartGoodsService {
...
@@ -269,6 +269,7 @@ public class PlatformListCartGoodsService extends AbstractListCartGoodsService {
if
(
null
==
checkSpqInfo
)
{
if
(
null
==
checkSpqInfo
)
{
cartGoodsList
.
remove
(
i
);
cartGoodsList
.
remove
(
i
);
}
else
{
}
else
{
cartGoods
.
setCouponProductPrice
(
checkSpqInfo
.
getPrice
());
validCouponMap
.
put
(
spqId
,
checkSpqInfo
);
validCouponMap
.
put
(
spqId
,
checkSpqInfo
);
addGoodsToShoppingCartBO
.
setValidCouponMap
(
validCouponMap
);
addGoodsToShoppingCartBO
.
setValidCouponMap
(
validCouponMap
);
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/PlatformUpdateGoodsQtyService.java
View file @
5dc6be4b
...
@@ -178,6 +178,7 @@ public class PlatformUpdateGoodsQtyService extends AbstractUpdateGoodsQtyService
...
@@ -178,6 +178,7 @@ public class PlatformUpdateGoodsQtyService extends AbstractUpdateGoodsQtyService
if
(
checkSpqBO
==
null
){
if
(
checkSpqBO
==
null
){
cartGoodsList
.
remove
(
i
);
cartGoodsList
.
remove
(
i
);
}
else
{
}
else
{
cartGoods
.
setCouponProductPrice
(
checkSpqBO
.
getProductPrice
());
cartGoods
.
setActivityCode
(
checkSpqBO
.
getDetails
().
getActiveCode
());
cartGoods
.
setActivityCode
(
checkSpqBO
.
getDetails
().
getActiveCode
());
}
}
}
}
...
...
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