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
841d969f
Commit
841d969f
authored
Oct 21, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
套餐商品券原价展示问题修改
parent
d91f50d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponServiceImpl.java
+15
-9
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponServiceImpl.java
View file @
841d969f
...
...
@@ -772,6 +772,10 @@ public class CouponServiceImpl implements CouponService {
dto
.
setTodayAvailableTimes
(
1
);
}
dto
.
setPrice
(
productsVo
.
getFinalPrice
());
//套餐商品券优惠金额处理
if
(
requestDto
.
getAddCartGoods
()
!=
null
&&
CollectionUtils
.
isNotEmpty
(
requestDto
.
getAddCartGoods
().
getProductComboList
())){
dto
.
setPrice
(
productsVo
.
getOriginalPrice
());
}
dto
.
setSpuId
(
productsVo
.
getSpuId
());
dto
.
setSpuName
(
productsVo
.
getSkuName
());
dto
.
setStockLimit
(
ObjectUtils
.
equals
(
1
,
productsVo
.
getStockLimit
()));
...
...
@@ -833,6 +837,16 @@ public class CouponServiceImpl implements CouponService {
ValidateShopProductType
productType
=
new
ValidateShopProductType
();
productType
.
setAttributeList
(
null
);
productType
.
setMemberDiscount
(
null
);
productType
.
setPrice
(
product
.
getFinalPrice
().
intValue
());
productType
.
setProductGroupTypeList
(
null
);
productType
.
setSkuId
(
product
.
getSkuId
());
productType
.
setSpuId
(
product
.
getSpuId
());
productType
.
setUuid
(
UUID
.
randomUUID
().
toString
());
productType
.
setValidateAttribute
(
0
);
productType
.
setValidatePrice
(
0
);
productType
.
setValidateStatuses
(
null
);
if
(
requestDto
.
getAddCartGoods
()
!=
null
&&
CollectionUtils
.
isNotEmpty
(
requestDto
.
getAddCartGoods
().
getProductComboList
())){
List
<
ValidateSkuProductType
>
comboProductTypeList
=
new
ArrayList
<>();
for
(
CartGoods
.
ComboxGoods
comboxGoods
:
requestDto
.
getAddCartGoods
().
getProductComboList
()){
...
...
@@ -853,16 +867,8 @@ public class CouponServiceImpl implements CouponService {
}
productType
.
setComboProductTypeList
(
comboProductTypeList
);
productType
.
setIsCouponMarkUpSetMeal
(
1
);
productType
.
setPrice
(
product
.
getOriginalPrice
().
intValue
());
}
productType
.
setMemberDiscount
(
null
);
productType
.
setPrice
(
product
.
getFinalPrice
().
intValue
());
productType
.
setProductGroupTypeList
(
null
);
productType
.
setSkuId
(
product
.
getSkuId
());
productType
.
setSpuId
(
product
.
getSpuId
());
productType
.
setUuid
(
UUID
.
randomUUID
().
toString
());
productType
.
setValidateAttribute
(
0
);
productType
.
setValidatePrice
(
0
);
productType
.
setValidateStatuses
(
null
);
productTypeList
.
add
(
productType
);
request
.
setProductTypeList
(
productTypeList
);
...
...
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