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

Commit d50dee00 authored by 胡佳晨's avatar 胡佳晨

Merge branch 'dev' into test

parents becc6613 20bfee85
......@@ -449,6 +449,7 @@ public class DataUtils {
* @return
*/
public BigDecimal getCanRefundOrderEntitiesPrice(KylinOrderTicketVo orderTicketVo, List<KylinOrderRefundsVo> kylinOrderRefundsVoBaseList, String orderTicketEntitiesId) {
log.info("orderTicketEntitiesId = "+orderTicketEntitiesId);
//单票实付价格
BigDecimal singlePrice = orderTicketVo.getPriceActual().subtract(orderTicketVo.getPriceExpress()).divide(BigDecimal.valueOf(orderTicketVo.getNumber()));
log.info("singlePrice = "+singlePrice);
......@@ -456,6 +457,7 @@ public class DataUtils {
BigDecimal canRefundSinglePrice = new BigDecimal("0.00");
for (KylinOrderTicketEntitiesVo item : orderTicketVo.getEntitiesVoList()) {
if (item.getOrderTicketEntitiesId().equals(orderTicketEntitiesId)) {
log.info("item = "+item);
canRefundSinglePrice = singlePrice.subtract(item.getRefundPrice() == null ? BigDecimal.valueOf(0.00) : item.getRefundPrice());
}
}
......
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