Commit dc836ca2 authored by 周健威's avatar 周健威

Merge branch 'master-modify-cutAmount' into dev

parents 61e40f69 73f5075e
...@@ -195,10 +195,7 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> { ...@@ -195,10 +195,7 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> {
public BigDecimal calculateDeduction(BigDecimal goodsAmount, Long timeLag, String dicParentKey, StringBuilder refundDescBuilder) { public BigDecimal calculateDeduction(BigDecimal goodsAmount, Long timeLag, String dicParentKey, StringBuilder refundDescBuilder) {
BigDecimal refundGoodsAmount = goodsAmount; BigDecimal refundGoodsAmount = goodsAmount;
BigDecimal deductGoodsAmount = goodsAmount; BigDecimal deductGoodsAmount = BigDecimal.ZERO;
// if(null == orderAccountDetail) {
// orderAccountDetail = new OrderAccountDetail();
// }
//根据时间处理goodsAmount //根据时间处理goodsAmount
//获取出发时间 到现在 距离时间 //获取出发时间 到现在 距离时间
...@@ -222,7 +219,8 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> { ...@@ -222,7 +219,8 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> {
//ga : goodsAmount //ga : goodsAmount
set("ga", goodsAmount); set("ga", goodsAmount);
}})+ "").toString()); }})+ "").toString());
refundDescBuilder = refundDescBuilder.insert(0, names[1]+ ","); refundGoodsAmount = refundGoodsAmount.setScale(2, RoundingMode.HALF_UP);
refundDescBuilder = refundDescBuilder.insert(0, names[1]);
if(goodsAmount.subtract(refundGoodsAmount).compareTo(BigDecimal.ZERO) > 0) { if(goodsAmount.subtract(refundGoodsAmount).compareTo(BigDecimal.ZERO) > 0) {
deductGoodsAmount = goodsAmount.subtract(refundGoodsAmount); deductGoodsAmount = goodsAmount.subtract(refundGoodsAmount);
//orderAccountDetail.getDeductions().add(initDeduction(goodsAmount.subtract(refundGoodsAmount), names[1], DeductionTypeEnum.VIOLATE_CANCEL, OrderAccountDeduction.ORIGIN_DEPOSIT)); //orderAccountDetail.getDeductions().add(initDeduction(goodsAmount.subtract(refundGoodsAmount), names[1], DeductionTypeEnum.VIOLATE_CANCEL, OrderAccountDeduction.ORIGIN_DEPOSIT));
......
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