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
fbb87d30
Commit
fbb87d30
authored
Apr 29, 2021
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加车查询不设置价格
parent
a042cad2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
27 deletions
+20
-27
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+20
-27
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
fbb87d30
...
@@ -153,13 +153,6 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -153,13 +153,6 @@ public class ShoppingCartMCoffeeServiceImpl {
String
spuId2
=
spuId
;
String
spuId2
=
spuId
;
MCoffeeProductIdsVo
vo
=
new
MCoffeeProductIdsVo
();
MCoffeeProductIdsVo
vo
=
new
MCoffeeProductIdsVo
();
List
<
Long
>
productIds
=
new
ArrayList
<>();
List
<
Long
>
productIds
=
new
ArrayList
<>();
//商品券校验
if
(
spuId
.
startsWith
(
CommonsConstant
.
COUPON_PREFIX
))
{
couponCode
=
spuId
.
substring
(
CommonsConstant
.
COUPON_PREFIX
.
length
());
vo
=
validCoupon
(
partnerId
,
storeId
,
spuId
,
productIds
,
BusinessTypeEnum
.
getByType
(
addShoppingCartGoodsRequestVo
.
getMenuType
()).
getCode
());
spuId2
=
vo
.
getSkuId
();
goodsId
=
vo
.
getSkuId
();
}
productIds
.
add
(
Long
.
parseLong
(
goodsId
));
productIds
.
add
(
Long
.
parseLong
(
goodsId
));
// 获取添加商品的详细信息
// 获取添加商品的详细信息
...
@@ -1549,9 +1542,9 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -1549,9 +1542,9 @@ public class ShoppingCartMCoffeeServiceImpl {
//超值加购商品赋值
//超值加购商品赋值
if
(
ObjectUtils
.
equals
(
GoodsTypeEnum
.
REDUCE_PRICE_GOODS
.
getGoodsType
(),
cartGoods
.
getGoodsType
())
if
(
ObjectUtils
.
equals
(
GoodsTypeEnum
.
REDUCE_PRICE_GOODS
.
getGoodsType
(),
cartGoods
.
getGoodsType
())
||
ObjectUtils
.
equals
(
GoodsTypeEnum
.
COUPON_GOODS
.
getGoodsType
(),
cartGoods
.
getGoodsType
()))
{
||
ObjectUtils
.
equals
(
GoodsTypeEnum
.
COUPON_GOODS
.
getGoodsType
(),
cartGoods
.
getGoodsType
()))
{
cartGoods
.
setOriginalPrice
(
productBeanListSpuClass
.
get
(
0
).
getOriginalPrice
());
//
cartGoods.setOriginalPrice(productBeanListSpuClass.get(0).getOriginalPrice());
cartGoods
.
setFinalPrice
(
productBeanListSpuClass
.
get
(
0
).
getFinalPrice
());
//
cartGoods.setFinalPrice(productBeanListSpuClass.get(0).getFinalPrice());
cartGoods
.
setPackPrice
(
productBeanListSpuClass
.
get
(
0
).
getPackPrice
());
//
cartGoods.setPackPrice(productBeanListSpuClass.get(0).getPackPrice());
cartGoods
.
setCustomerCode
(
productBeanListSpuClass
.
get
(
0
).
getCustomerCode
());
cartGoods
.
setCustomerCode
(
productBeanListSpuClass
.
get
(
0
).
getCustomerCode
());
cartGoods
.
setName
(
productBeanListSpuClass
.
get
(
0
).
getName
());
cartGoods
.
setName
(
productBeanListSpuClass
.
get
(
0
).
getName
());
cartGoods
.
setSpuName
(
productBeanListSpuClass
.
get
(
0
).
getName
());
cartGoods
.
setSpuName
(
productBeanListSpuClass
.
get
(
0
).
getName
());
...
@@ -1564,9 +1557,9 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -1564,9 +1557,9 @@ public class ShoppingCartMCoffeeServiceImpl {
//套餐商品赋值
//套餐商品赋值
if
(
ObjectUtils
.
equals
(
GoodsTypeEnum
.
SET_MEAL_GOODS
.
getGoodsType
(),
cartGoods
.
getGoodsType
())){
if
(
ObjectUtils
.
equals
(
GoodsTypeEnum
.
SET_MEAL_GOODS
.
getGoodsType
(),
cartGoods
.
getGoodsType
())){
cartGoods
.
setOriginalPrice
(
productBeanListSpuClass
.
get
(
0
).
getOriginalPrice
());
//
cartGoods.setOriginalPrice(productBeanListSpuClass.get(0).getOriginalPrice());
cartGoods
.
setFinalPrice
(
productBeanListSpuClass
.
get
(
0
).
getFinalPrice
());
//
cartGoods.setFinalPrice(productBeanListSpuClass.get(0).getFinalPrice());
cartGoods
.
setPackPrice
(
productBeanListSpuClass
.
get
(
0
).
getPackPrice
());
//
cartGoods.setPackPrice(productBeanListSpuClass.get(0).getPackPrice());
cartGoods
.
setCustomerCode
(
productBeanListSpuClass
.
get
(
0
).
getCustomerCode
());
cartGoods
.
setCustomerCode
(
productBeanListSpuClass
.
get
(
0
).
getCustomerCode
());
cartGoods
.
setName
(
productBeanListSpuClass
.
get
(
0
).
getName
());
cartGoods
.
setName
(
productBeanListSpuClass
.
get
(
0
).
getName
());
cartGoods
.
setSpuName
(
productBeanListSpuClass
.
get
(
0
).
getName
());
cartGoods
.
setSpuName
(
productBeanListSpuClass
.
get
(
0
).
getName
());
...
@@ -1593,20 +1586,20 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -1593,20 +1586,20 @@ public class ShoppingCartMCoffeeServiceImpl {
}
}
//套餐可选商品赋值
//套餐可选商品赋值
if
(
CollectionUtils
.
isNotEmpty
(
productBeanListSpuClass
.
get
(
0
).
getProductGroupList
())){
//
if (CollectionUtils.isNotEmpty(productBeanListSpuClass.get(0).getProductGroupList())){
for
(
ProductBeanDTO
.
ProductGroupType
groupType
:
productBeanListSpuClass
.
get
(
0
).
getProductGroupList
())
{
//
for (ProductBeanDTO.ProductGroupType groupType : productBeanListSpuClass.get(0).getProductGroupList()) {
if
(
CollectionUtils
.
isNotEmpty
(
groupType
.
getGroupDetail
())){
//
if (CollectionUtils.isNotEmpty(groupType.getGroupDetail())){
for
(
ProductBeanDTO
.
ProductGroupType
.
GroupDetailType
detailType
:
groupType
.
getGroupDetail
())
{
//
for (ProductBeanDTO.ProductGroupType.GroupDetailType detailType : groupType.getGroupDetail()) {
for
(
CartGoods
.
ComboxGoods
groupGoods
:
cartGoods
.
getProductGroupList
())
{
//
for (CartGoods.ComboxGoods groupGoods : cartGoods.getProductGroupList()) {
if
(
detailType
.
getProductId
().
equals
(
groupGoods
.
getGoodsId
()))
{
//
if (detailType.getProductId().equals(groupGoods.getGoodsId())) {
groupGoods
.
setFinalPrice
(
detailType
.
getMarkUpPrice
().
longValue
());
//
groupGoods.setFinalPrice(detailType.getMarkUpPrice().longValue());
groupGoods
.
setOriginalPrice
(
detailType
.
getProductPrice
().
longValue
());
//
groupGoods.setOriginalPrice(detailType.getProductPrice().longValue());
}
//
}
}
//
}
}
//
}
}
//
}
}
//
}
}
//
}
}
}
}
}
...
...
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