Browse Source

在线退款结算金额控制

fllmoyu 4 năm trước cách đây
mục cha
commit
f492bea9b3

+ 4 - 0
common/src/main/java/com/jpsoft/bus/modules/base/service/impl/OrderInfoServiceImpl.java

@@ -132,6 +132,10 @@ public class OrderInfoServiceImpl implements OrderInfoService {
 			throw new Exception("非在线支付,不可在线退款");
 		}
 
+		if (orderInfo.getSettlementFlag()){
+			throw new Exception("在线缴费金额已结算,退款请联系管理员");
+		}
+
 		if ("wechat".equals(orderInfo.getPayName())){
 			wechatService.wxRefund(orderInfo);
 		}