修改结算订单总金额四舍五入
This commit is contained in:
parent
4508700acd
commit
5c581cfafb
@ -330,7 +330,7 @@ public class XhpcPileOrderController extends BaseController {
|
||||
}
|
||||
BigDecimal bigDecimal = new BigDecimal(10000);
|
||||
BigDecimal totalPowerQuantity = new BigDecimal(cacheOrderData.getTotalPowerQuantity()).divide(bigDecimal,2,BigDecimal.ROUND_HALF_UP);
|
||||
BigDecimal money = new BigDecimal(cacheOrderData.getCost()).divide(bigDecimal);
|
||||
BigDecimal money = new BigDecimal(cacheOrderData.getCost()).divide(bigDecimal,2,BigDecimal.ROUND_HALF_UP);
|
||||
if(cacheOrderData.getTotalPowerQuantity()==0 || totalPowerQuantity.compareTo(new BigDecimal(0.1))<1 || money.compareTo(new BigDecimal(0.1))<1){
|
||||
xhpcChargeOrder.setStatus(3);
|
||||
xhpcChargeOrder.setUpdateTime(new Date());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user