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
c5afff1c
Commit
c5afff1c
authored
Mar 03, 2021
by
xiaoer.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update::fixbug
parent
39460249
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/FullPromotionService.java
+10
-4
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/FullSubtractionActivityServiceImpl.java
+1
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/FullPromotionService.java
View file @
c5afff1c
...
@@ -184,6 +184,7 @@ public class FullPromotionService implements IPromotionService {
...
@@ -184,6 +184,7 @@ public class FullPromotionService implements IPromotionService {
// 规则:满5赠奶茶2件,炸鸡1件,满10赠布丁3件,牛奶1份,鸡翅2份,
// 规则:满5赠奶茶2件,炸鸡1件,满10赠布丁3件,牛奶1份,鸡翅2份,
// 提示语:满5元可获赠奶茶*2,炸鸡*1
// 提示语:满5元可获赠奶茶*2,炸鸡*1
//阶梯满赠
//阶梯满赠
notInShopping
.
setSatisfy
(
WebUtil
.
formatAmount
(
benefitBeanDto
.
getThresholdAmount
()
*
1.00
/
100
).
toString
());
if
(
GiftTypeEnum
.
TYPE_1
.
equals
(
activityResponseDto
.
getActivitySubType
()))
{
if
(
GiftTypeEnum
.
TYPE_1
.
equals
(
activityResponseDto
.
getActivitySubType
()))
{
notInShopping
.
setTipType
(
6
);
notInShopping
.
setTipType
(
6
);
}
}
...
@@ -260,18 +261,23 @@ public class FullPromotionService implements IPromotionService {
...
@@ -260,18 +261,23 @@ public class FullPromotionService implements IPromotionService {
if
(
Objects
.
equals
(
ActivityTypeEnum
.
TYPE_230
.
getCode
(),
activityResponseDto
.
getActivityType
())
&&
CollectionUtils
.
isNotEmpty
(
activityPrompt
.
getSendGoods
()))
{
if
(
Objects
.
equals
(
ActivityTypeEnum
.
TYPE_230
.
getCode
(),
activityResponseDto
.
getActivityType
())
&&
CollectionUtils
.
isNotEmpty
(
activityPrompt
.
getSendGoods
()))
{
satisfyList
.
setTipType
(
10
);
satisfyList
.
setTipType
(
10
);
ActivityList
.
SendGoods
send
=
new
ActivityList
.
SendGoods
();
send
.
setQty
(
activityPrompt
.
getSendGoods
().
get
(
0
).
getSendNumber
());
send
.
setGoodsName
(
activityPrompt
.
getSendGoods
().
get
(
0
).
getGoodsName
());
List
<
ActivityList
.
SendGoods
>
sends
=
new
ArrayList
();
List
<
ActivityList
.
SendGoods
>
sends
=
new
ArrayList
();
sends
.
add
(
send
);
for
(
ActivityCalculationDiscountResponseDto
.
CalculationDiscountResult
.
SendGoods
sendGood
:
activityPrompt
.
getSendGoods
())
{
ActivityList
.
SendGoods
send
=
new
ActivityList
.
SendGoods
();
send
.
setGoodsName
(
sendGood
.
getGoodsName
());
send
.
setQty
(
sendGood
.
getSendNumber
());
sends
.
add
(
send
);
}
satisfyList
.
setSends
(
sends
);
satisfyList
.
setSends
(
sends
);
satisfyList
.
setSatisfy
(
WebUtil
.
formatAmount
(
activityPrompt
.
getThresholdAmount
()
*
1.00
/
100
).
toString
());
satisfyList
.
setMissing
(
WebUtil
.
formatAmount
((
activityPrompt
.
getThresholdAmount
()
-
activityPrompt
.
getTotalAmount
())
*
1.00
/
100
).
toString
());
if
(
GiftTypeEnum
.
TYPE_1
.
equals
(
activityResponseDto
.
getActivitySubType
()))
{
if
(
GiftTypeEnum
.
TYPE_1
.
equals
(
activityResponseDto
.
getActivitySubType
()))
{
satisfyList
.
setTipType
(
8
);
satisfyList
.
setTipType
(
8
);
}
}
else
{
else
{
satisfyList
.
setTipType
(
9
);
satisfyList
.
setTipType
(
9
);
}
}
}
}
activityList
.
add
(
satisfyList
);
activityList
.
add
(
satisfyList
);
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/FullSubtractionActivityServiceImpl.java
View file @
c5afff1c
...
@@ -265,6 +265,7 @@ public class FullSubtractionActivityServiceImpl {
...
@@ -265,6 +265,7 @@ public class FullSubtractionActivityServiceImpl {
// 规则:满5赠奶茶2件,炸鸡1件,满10赠布丁3件,牛奶1份,鸡翅2份,
// 规则:满5赠奶茶2件,炸鸡1件,满10赠布丁3件,牛奶1份,鸡翅2份,
// 提示语:满5元可获赠奶茶*2,炸鸡*1
// 提示语:满5元可获赠奶茶*2,炸鸡*1
//阶梯满赠
//阶梯满赠
notInShopping
.
setSatisfy
(
WebUtil
.
formatAmount
(
benefitBeanDto
.
getThresholdAmount
()
*
1.00
/
100
).
toString
());
if
(
GiftTypeEnum
.
TYPE_1
.
equals
(
activityResponseDto
.
getActivitySubType
()))
{
if
(
GiftTypeEnum
.
TYPE_1
.
equals
(
activityResponseDto
.
getActivitySubType
()))
{
notInShopping
.
setTipType
(
6
);
notInShopping
.
setTipType
(
6
);
}
}
...
...
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