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
jenkins
order-group
Commits
c86215f2
Commit
c86215f2
authored
Mar 26, 2020
by
姜海波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整配送费 小数点
parent
2ca0bb30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+6
-6
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
c86215f2
...
...
@@ -1021,11 +1021,11 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
if
(
discount
!=
null
){
if
(
calculationDiscountResult
.
getDistributionFee
()>
0
){
String
desc
=
DELIVERY_DISCOUNT_DESC1
;
shoppingCartGoodsResponseVo
.
setDeliveryDiscountDesc
(
String
.
format
(
desc
,
Double
.
parseDouble
(
discount
.
getThresholdAmount
().
toString
()
)
/
100
,
Double
.
parseDouble
(
String
.
valueOf
(
calculationDiscountResult
.
getDeliveryAmount
()
-
calculationDiscountResult
.
getDistributionFee
()
))
/
100
));
shoppingCartGoodsResponseVo
.
setDeliveryDiscountDesc
(
String
.
format
(
desc
,
discount
.
getThresholdAmount
().
doubleValue
(
)
/
100
,
(
calculationDiscountResult
.
getDeliveryAmount
().
doubleValue
()
-
calculationDiscountResult
.
getDistributionFee
().
doubleValue
(
))
/
100
));
}
else
{
String
desc
=
DELIVERY_DISCOUNT_DESC2
;
shoppingCartGoodsResponseVo
.
setDeliveryDiscountDesc
(
String
.
format
(
desc
,
Double
.
parseDouble
(
discount
.
getThresholdAmount
().
toString
()
)
/
100
));
shoppingCartGoodsResponseVo
.
setDeliveryDiscountDesc
(
String
.
format
(
desc
,
discount
.
getThresholdAmount
().
doubleValue
(
)
/
100
));
}
shoppingCartGoodsResponseVo
.
setDeliveryAmount
(
calculationDiscountResult
.
getDeliveryAmount
());
shoppingCartGoodsResponseVo
.
setDiscountDeliveryAmount
(
calculationDiscountResult
.
getDistributionFee
());
...
...
@@ -1043,10 +1043,10 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
if
(
beanDto
.
getBenefitType
()
==
1
||
beanDto
.
getDiscountAmount
()>=
deliveryAmount
){
String
desc
=
DELIVERY_DISCOUNT_DESC2
;
shoppingCartGoodsResponseVo
.
setDeliveryDiscountDesc
(
String
.
format
(
desc
,
Double
.
parseDouble
(
beanDto
.
getThresholdAmount
().
toString
()
)
/
100
));
shoppingCartGoodsResponseVo
.
setDeliveryDiscountDesc
(
String
.
format
(
desc
,
beanDto
.
getThresholdAmount
().
doubleValue
(
)
/
100
));
}
else
{
String
desc
=
DELIVERY_DISCOUNT_DESC1
;
shoppingCartGoodsResponseVo
.
setDeliveryDiscountDesc
(
String
.
format
(
desc
,
Double
.
parseDouble
(
beanDto
.
getThresholdAmount
().
toString
()
)
/
100
,
beanDto
.
getDiscountAmount
()
/
100
));
shoppingCartGoodsResponseVo
.
setDeliveryDiscountDesc
(
String
.
format
(
desc
,
beanDto
.
getThresholdAmount
().
doubleValue
(
)
/
100
,
beanDto
.
getDiscountAmount
()
/
100
));
}
shoppingCartGoodsResponseVo
.
setDeliveryAmount
(
deliveryAmount
);
...
...
@@ -1055,7 +1055,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
}
else
{
String
desc
=
DELIVERY_DISCOUNT_DESC3
;
shoppingCartGoodsResponseVo
.
setDeliveryDiscountDesc
(
String
.
format
(
desc
,
Double
.
parseDouble
(
deliveryAmount
.
toString
()
)
/
100
));
shoppingCartGoodsResponseVo
.
setDeliveryDiscountDesc
(
String
.
format
(
desc
,
deliveryAmount
.
doubleValue
(
)
/
100
));
shoppingCartGoodsResponseVo
.
setDeliveryAmount
(
deliveryAmount
);
shoppingCartGoodsResponseVo
.
setDiscountDeliveryAmount
(
deliveryAmount
);
shoppingCartGoodsResponseVo
.
setIsDiscountDelivery
(
false
);
...
...
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