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
6bae514b
Commit
6bae514b
authored
Aug 14, 2021
by
hanghang.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
满减购物车提示语
parent
7d9d1705
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/service/impl/FullPromotionService.java
+2
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/FullSubtractionActivityServiceImpl.java
+2
-2
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/FullPromotionService.java
View file @
6bae514b
...
@@ -288,7 +288,7 @@ public class FullPromotionService implements IPromotionService {
...
@@ -288,7 +288,7 @@ public class FullPromotionService implements IPromotionService {
satisfyList
.
setSatisfy
(
activityPrompt
.
getThresholdQuantity
().
toString
());
satisfyList
.
setSatisfy
(
activityPrompt
.
getThresholdQuantity
().
toString
());
satisfyList
.
setDeduct
(
WebUtil
.
formatAmount
(
activityPrompt
.
getDiscountAmout
()
*
1.00
/
100
).
toString
());
satisfyList
.
setDeduct
(
WebUtil
.
formatAmount
(
activityPrompt
.
getDiscountAmout
()
*
1.00
/
100
).
toString
());
satisfyList
.
setMissing
(
String
.
valueOf
(
activityPrompt
.
getThresholdQuantity
()
-
activityPrompt
.
getTotalQuantity
()));
satisfyList
.
setMissing
(
String
.
valueOf
(
activityPrompt
.
getThresholdQuantity
()
-
activityPrompt
.
getTotalQuantity
()));
satisfyList
.
setInvokeAmount
(
WebUtil
.
formatAmount
(
activity
Prompt
.
getInvokeAmount
()
*
1.00
/
100
).
toString
());
satisfyList
.
setInvokeAmount
(
WebUtil
.
formatAmount
(
activity
ResponseDto
.
getDelayTimes
()
*
1.00
/
100
).
toString
());
}
else
{
}
else
{
// 满足 X 元 减 Y 元 还差 Z元
// 满足 X 元 减 Y 元 还差 Z元
satisfyList
.
setTipType
(
ActivityPromptEnum
.
TipTypeEnum
.
THREE
.
getCode
());
satisfyList
.
setTipType
(
ActivityPromptEnum
.
TipTypeEnum
.
THREE
.
getCode
());
...
@@ -311,7 +311,7 @@ public class FullPromotionService implements IPromotionService {
...
@@ -311,7 +311,7 @@ public class FullPromotionService implements IPromotionService {
satisfyList
.
setDeduct
(
WebUtil
.
formatAmount
(
activityPrompt
.
getAlreadyDiscountAmount
()
*
1.00
/
100
).
toString
());
satisfyList
.
setDeduct
(
WebUtil
.
formatAmount
(
activityPrompt
.
getAlreadyDiscountAmount
()
*
1.00
/
100
).
toString
());
satisfyList
.
setAgainBuy
(
String
.
valueOf
(
activityPrompt
.
getThresholdQuantity
()
-
activityPrompt
.
getTotalQuantity
()));
satisfyList
.
setAgainBuy
(
String
.
valueOf
(
activityPrompt
.
getThresholdQuantity
()
-
activityPrompt
.
getTotalQuantity
()));
satisfyList
.
setAgianDeduct
(
WebUtil
.
formatAmount
(
toDiscountAmout
*
1.00
/
100
).
toString
());
satisfyList
.
setAgianDeduct
(
WebUtil
.
formatAmount
(
toDiscountAmout
*
1.00
/
100
).
toString
());
satisfyList
.
setInvokeAmount
(
WebUtil
.
formatAmount
(
activity
Prompt
.
getInvokeAmount
()
*
1.00
/
100
).
toString
());
satisfyList
.
setInvokeAmount
(
WebUtil
.
formatAmount
(
activity
ResponseDto
.
getDelayTimes
()
*
1.00
/
100
).
toString
());
}
else
{
}
else
{
//已减 X 元 再买 Y 元 减 Z 元
//已减 X 元 再买 Y 元 减 Z 元
satisfyList
.
setTipType
(
ActivityPromptEnum
.
TipTypeEnum
.
FOUR
.
getCode
());
satisfyList
.
setTipType
(
ActivityPromptEnum
.
TipTypeEnum
.
FOUR
.
getCode
());
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/FullSubtractionActivityServiceImpl.java
View file @
6bae514b
...
@@ -119,7 +119,7 @@ public class FullSubtractionActivityServiceImpl {
...
@@ -119,7 +119,7 @@ public class FullSubtractionActivityServiceImpl {
benefitBeanDto
=
benefitBeanDtos
.
get
(
i
);
benefitBeanDto
=
benefitBeanDtos
.
get
(
i
);
if
(
ActivityPromptEnum
.
PreferentialTypeEnum
.
TO_ORDER_ITEM_QUANTITY
.
getCode
().
equals
(
activityResponseDto
.
getCouponType
()))
{
if
(
ActivityPromptEnum
.
PreferentialTypeEnum
.
TO_ORDER_ITEM_QUANTITY
.
getCode
().
equals
(
activityResponseDto
.
getCouponType
()))
{
messageBuilder
.
append
(
"满 <span style=\"color:#fa5555\">"
)
messageBuilder
.
append
(
"满 <span style=\"color:#fa5555\">"
)
.
append
(
WebUtil
.
formatAmount
(
benefitBeanDto
.
getBenefitNumber
()
*
1.00
/
100
))
.
append
(
benefitBeanDto
.
getBenefitNumber
(
))
.
append
(
"</span>件 减 <span style=\"color:#fa5555\">"
)
.
append
(
"</span>件 减 <span style=\"color:#fa5555\">"
)
.
append
(
WebUtil
.
formatAmount
(
benefitBeanDto
.
getDiscountAmount
()
*
1.00
/
100
))
.
append
(
WebUtil
.
formatAmount
(
benefitBeanDto
.
getDiscountAmount
()
*
1.00
/
100
))
.
append
(
"</span> 元"
);
.
append
(
"</span> 元"
);
...
@@ -139,7 +139,7 @@ public class FullSubtractionActivityServiceImpl {
...
@@ -139,7 +139,7 @@ public class FullSubtractionActivityServiceImpl {
cn
.
freemud
.
entities
.
vo
.
ActivityList
notInShopping
=
new
ActivityList
();
cn
.
freemud
.
entities
.
vo
.
ActivityList
notInShopping
=
new
ActivityList
();
if
(
ActivityPromptEnum
.
PreferentialTypeEnum
.
TO_ORDER_ITEM_QUANTITY
.
getCode
().
equals
(
activityResponseDto
.
getCouponType
()))
{
if
(
ActivityPromptEnum
.
PreferentialTypeEnum
.
TO_ORDER_ITEM_QUANTITY
.
getCode
().
equals
(
activityResponseDto
.
getCouponType
()))
{
notInShopping
.
setTipType
(
ActivityPromptEnum
.
TipTypeEnum
.
SIXTEEN
.
getCode
());
notInShopping
.
setTipType
(
ActivityPromptEnum
.
TipTypeEnum
.
SIXTEEN
.
getCode
());
notInShopping
.
setSatisfy
(
WebUtil
.
formatAmount
(
benefitBeanDto
.
getBenefitNumber
()
*
1.00
/
100
).
toString
());
notInShopping
.
setSatisfy
(
benefitBeanDto
.
getBenefitNumber
(
).
toString
());
notInShopping
.
setDeduct
(
WebUtil
.
formatAmount
(
benefitBeanDto
.
getDiscountAmount
()
*
1.00
/
100
).
toString
());
notInShopping
.
setDeduct
(
WebUtil
.
formatAmount
(
benefitBeanDto
.
getDiscountAmount
()
*
1.00
/
100
).
toString
());
notInShopping
.
setInvokeAmount
(
WebUtil
.
formatAmount
(
activityResponseDto
.
getDelayTimes
()
*
1.00
/
100
).
toString
());
notInShopping
.
setInvokeAmount
(
WebUtil
.
formatAmount
(
activityResponseDto
.
getDelayTimes
()
*
1.00
/
100
).
toString
());
...
...
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