Commit f6a803eb by xiaoer.li@freemud.com

fix

parent df2dcc00
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment