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

Commit af0baecd authored by jiangxiulong's avatar jiangxiulong

退款回调金额超增加判断

parent 90607a68
...@@ -100,7 +100,7 @@ public class KylinRefundsStatusServiceImpl { ...@@ -100,7 +100,7 @@ public class KylinRefundsStatusServiceImpl {
); );
KylinOrderTicketStatus orderStatusTable = new KylinOrderTicketStatus(); KylinOrderTicketStatus orderStatusTable = new KylinOrderTicketStatus();
int newStatus = 0; int newStatus = 0;
if (refundCallbackParam.getRefundPrice().add(refundInfo.getPriceCharges()).add(orderInfo.getPriceRefund()).add(orderInfo.getRefundPriceCharges()).compareTo(orderInfo.getPriceActual()) == 0) { if (refundCallbackParam.getRefundPrice().add(refundInfo.getPriceCharges()).add(orderInfo.getPriceRefund()).add(orderInfo.getRefundPriceCharges()).compareTo(orderInfo.getPriceActual()) >= 0) {
newStatus = KylinTableStatusConst.ORDER_STATUS4; newStatus = KylinTableStatusConst.ORDER_STATUS4;
} else { } else {
newStatus = KylinTableStatusConst.ORDER_STATUS6; newStatus = KylinTableStatusConst.ORDER_STATUS6;
...@@ -168,6 +168,9 @@ public class KylinRefundsStatusServiceImpl { ...@@ -168,6 +168,9 @@ public class KylinRefundsStatusServiceImpl {
// 订单表 // 订单表
BigDecimal price = orderInfo.getPriceRefund().add(refundCallbackParam.getRefundPrice()); BigDecimal price = orderInfo.getPriceRefund().add(refundCallbackParam.getRefundPrice());
if (price.compareTo(orderInfo.getPriceActual()) == 1) {
price = orderInfo.getPriceActual();
}
Integer num = orderInfo.getRefundNumber() + refundNumber; Integer num = orderInfo.getRefundNumber() + refundNumber;
KylinOrderTickets update = new KylinOrderTickets(); KylinOrderTickets update = new KylinOrderTickets();
update.setRefundNumber(num); update.setRefundNumber(num);
......
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