记得上下班打卡 | git大法好,push需谨慎

Commit 2a16a36d authored by jiangxiulong's avatar jiangxiulong

优先四舍五入手续费

parent 155d757c
...@@ -101,9 +101,11 @@ public class KylinOrderTicketsRefundServiceImpl { ...@@ -101,9 +101,11 @@ public class KylinOrderTicketsRefundServiceImpl {
item.setPriceCanRefund(dataUtils.getCanRefundOrderEntitiesPrice(orderTicketVo, kylinOrderRefundsVoBaseList, item.getOrderTicketEntitiesId())); item.setPriceCanRefund(dataUtils.getCanRefundOrderEntitiesPrice(orderTicketVo, kylinOrderRefundsVoBaseList, item.getOrderTicketEntitiesId()));
// 手续费处理 // 手续费处理
BigDecimal chargesRatio = getChargesRatio(item.getUseStart(), performanceVo.getIsRefundPoundage()); BigDecimal chargesRatio = getChargesRatio(item.getUseStart(), performanceVo.getIsRefundPoundage());
BigDecimal chargesPrice = item.getPriceCanRefund().multiply(chargesRatio).setScale(2, BigDecimal.ROUND_HALF_UP); BigDecimal priceCharges = item.getPriceCanRefund().multiply(chargesRatio).setScale(2, BigDecimal.ROUND_HALF_UP);
BigDecimal chargesPrice = item.getPriceCanRefund().subtract(priceCharges);
item.setChargesRatio(chargesRatio); item.setChargesRatio(chargesRatio);
item.setChargesPrice(chargesPrice); item.setChargesPrice(chargesPrice);
// 手续费处理 // 手续费处理
BeanUtils.copyProperties(item, refundVo); BeanUtils.copyProperties(item, refundVo);
kylinOrderTicketEntitiesPreRefundVos.add(refundVo); kylinOrderTicketEntitiesPreRefundVos.add(refundVo);
......
...@@ -709,7 +709,7 @@ public class DataUtils { ...@@ -709,7 +709,7 @@ public class DataUtils {
OrderRefundPoundage vo3 = OrderRefundPoundage.getNew(); OrderRefundPoundage vo3 = OrderRefundPoundage.getNew();
vo3.setDay(0); vo3.setDay(0);
vo3.setContent("距离演出开始日期≤3天(含演出当天)"); vo3.setContent("距离演出开始日期≤3天(含演出当天)");
vo3.setPresent(BigDecimal.valueOf(0)); vo3.setPresent(BigDecimal.valueOf(1));
vo3.setIsCanRefund(1); vo3.setIsCanRefund(1);
orderRefundPoundageArrayList.add(vo1); orderRefundPoundageArrayList.add(vo1);
orderRefundPoundageArrayList.add(vo2); orderRefundPoundageArrayList.add(vo2);
......
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