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
f6a803eb
Commit
f6a803eb
authored
Nov 19, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
df2dcc00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+4
-4
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
f6a803eb
...
@@ -1623,7 +1623,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
...
@@ -1623,7 +1623,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
if
(
StringUtils
.
isBlank
(
cardCode
))
{
if
(
StringUtils
.
isBlank
(
cardCode
))
{
return
;
return
;
}
}
Integer
orderAmount
=
shoppingCartGoodsResponseVo
.
getTotalAmount
().
intValue
();
Integer
orderAmount
=
shoppingCartGoodsResponseVo
.
getTotalAmount
().
intValue
()
*
100
;
String
trackingNo
=
LogThreadLocal
.
getTrackingNo
();
String
trackingNo
=
LogThreadLocal
.
getTrackingNo
();
SVCCardAmountRequest
request
=
new
SVCCardAmountRequest
();
SVCCardAmountRequest
request
=
new
SVCCardAmountRequest
();
request
.
setPartnerId
(
partnerId
);
request
.
setPartnerId
(
partnerId
);
...
@@ -1656,7 +1656,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
...
@@ -1656,7 +1656,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
}
}
else
if
(
svcTotalAmount
>
0
&&
svcTotalAmount
<=
orderAmount
)
{
else
if
(
svcTotalAmount
>
0
&&
svcTotalAmount
<=
orderAmount
)
{
svcPayAmount
=
svcTotalAmount
;
svcPayAmount
=
svcTotalAmount
;
shoppingCartGoodsResponseVo
.
setTotalAmount
(
orderAmount
.
longValue
()-
svcPayAmount
.
longValue
()
);
shoppingCartGoodsResponseVo
.
setTotalAmount
(
(
orderAmount
.
longValue
()-
svcPayAmount
.
longValue
())/
100
);
}
}
/**
/**
BigDecimal svcPayAmount = BigDecimal.ZERO;
BigDecimal svcPayAmount = BigDecimal.ZERO;
...
@@ -1670,8 +1670,8 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
...
@@ -1670,8 +1670,8 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
shoppingCartGoodsResponseVo.setTotalAmount(deliveryAmount.longValue());
shoppingCartGoodsResponseVo.setTotalAmount(deliveryAmount.longValue());
}
}
*/
*/
shoppingCartGoodsResponseVo
.
setSvcPayAmount
(
svcPayAmount
);
shoppingCartGoodsResponseVo
.
setSvcPayAmount
(
svcPayAmount
/
100
);
shoppingCartGoodsResponseVo
.
setSvcDiscountDesc
(
"储值卡支付¥"
+
svcPayAmount
);
shoppingCartGoodsResponseVo
.
setSvcDiscountDesc
(
"储值卡支付¥"
+
svcPayAmount
/
100
);
//BigDecimal bigDecimal = new BigDecimal(orderAmount);
//BigDecimal bigDecimal = new BigDecimal(orderAmount);
//String amountStr = bigDecimal.divide(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_HALF_UP).toString();
//String amountStr = bigDecimal.divide(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_HALF_UP).toString();
//shoppingCartGoodsResponseVo.setTotalAmount(0L);
//shoppingCartGoodsResponseVo.setTotalAmount(0L);
...
...
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