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
e124b8fa
Commit
e124b8fa
authored
Oct 10, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接促销算价Alpha->fix
parent
5e1d81e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
shopping-cart-application-service/src/main/java/cn/freemud/enums/ProductType.java
+2
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationCommonService.java
+2
-2
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/enums/ProductType.java
View file @
e124b8fa
...
...
@@ -19,8 +19,8 @@ public enum ProductType {
HAVESPEC
(
10
,
"有规格"
),
WEIGHT_PRODUCT
(
11
,
"称重商品"
),
TABLEWARE_PRODUCT
(
12
,
"餐具商品"
),
SETMEAL
(
6
,
"套餐"
);
SETMEAL
(
6
,
"套餐"
),
MATERIAL
(
88
,
"有加料的商品"
);
private
int
code
;
private
String
desc
;
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationCommonService.java
View file @
e124b8fa
...
...
@@ -381,7 +381,7 @@ public class CalculationCommonService {
}
materialList
.
add
(
goods
);
}
cartGoodsDetailDto
.
setProductType
(
GoodsTypeEnum
.
MATERIAL
.
getGoodsTyp
e
());
cartGoodsDetailDto
.
setProductType
(
ProductType
.
MATERIAL
.
getCod
e
());
cartGoodsDetailDto
.
setMaterialList
(
materialList
);
}
/**
...
...
@@ -393,7 +393,7 @@ public class CalculationCommonService {
HashMap
<
String
,
BlockRow
>
gxDiscount
=
this
.
drawnSmallAndGroupRow
(
calculationGoods
,
2
,
true
);
List
<
ShoppingCartGoodsDto
.
CartGoodsDetailDto
>
comboLists
=
this
.
com2DetailGoods
(
gxDiscount
,
cartGoods
.
getProductComboList
(),
cartGoods
,
true
);
combs
.
addAll
(
comboLists
);
cartGoodsDetailDto
.
setProductType
(
GoodsTypeEnum
.
SET_MEAL_GOODS
.
getGoodsTyp
e
());
cartGoodsDetailDto
.
setProductType
(
ProductType
.
SETMEAL
.
getCod
e
());
}
/**
* 可选商品
...
...
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