fix
This commit is contained in:
@@ -60,6 +60,15 @@ public class PlayOrderInfoController {
|
|||||||
if (orderInfo.getFinalAmount().compareTo(vo.getRefundAmount()) < 0) {
|
if (orderInfo.getFinalAmount().compareTo(vo.getRefundAmount()) < 0) {
|
||||||
throw new CustomException("退款金额不能大于支付金额");
|
throw new CustomException("退款金额不能大于支付金额");
|
||||||
}
|
}
|
||||||
|
if (orderInfo.getOrderStatus().equals("3")) {
|
||||||
|
throw new CustomException("【已完成】的订单无法操作退款");
|
||||||
|
}
|
||||||
|
if (orderInfo.getOrderStatus().equals("4")) {
|
||||||
|
throw new CustomException("【已取消】的订单无法操作退款");
|
||||||
|
}
|
||||||
|
if (orderInfo.getRefundType().equals("1")) {
|
||||||
|
throw new CustomException("每个订单只能退款一次~");
|
||||||
|
}
|
||||||
PlayOrderInfoEntity updateOrderInfo = new PlayOrderInfoEntity();
|
PlayOrderInfoEntity updateOrderInfo = new PlayOrderInfoEntity();
|
||||||
updateOrderInfo.setId(orderInfo.getId());
|
updateOrderInfo.setId(orderInfo.getId());
|
||||||
updateOrderInfo.setRefundType("1");
|
updateOrderInfo.setRefundType("1");
|
||||||
|
|||||||
Reference in New Issue
Block a user