提交实物代码

dev-discount
袁野 2 years ago
parent 53dc3c810f
commit 0d230f5520
  1. 2
      hai-service/src/main/java/com/hai/service/OutRechargeOrderService.java
  2. 21
      hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java

@ -212,4 +212,6 @@ public interface OutRechargeOrderService {
OutRechargeChildOrder mobileChildOrderHandle(HighOrder highOrder , OutRechargeOrder outRechargeOrder); OutRechargeChildOrder mobileChildOrderHandle(HighOrder highOrder , OutRechargeOrder outRechargeOrder);
JSONObject prepaidRechargeOrderHandle(JSONObject object); JSONObject prepaidRechargeOrderHandle(JSONObject object);
boolean rechargeOrderAbnormal(OutRechargeOrder order);
} }

@ -92,6 +92,9 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
@Autowired @Autowired
private OutRechargeChildOrderService childOrderService; private OutRechargeChildOrderService childOrderService;
@Resource
private SecConfigService secConfigService;
@Override @Override
public List<OutRechargeOrder> getListRechargeOrder(Map<String, Object> map) { public List<OutRechargeOrder> getListRechargeOrder(Map<String, Object> map) {
OutRechargeOrderExample example = new OutRechargeOrderExample(); OutRechargeOrderExample example = new OutRechargeOrderExample();
@ -989,4 +992,22 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
return childOrder; return childOrder;
} }
@Override
public boolean rechargeOrderAbnormal(OutRechargeOrder order) {
HighOrder highOrder = highOrderService.getOrderByOrderNo(order.getOrderNo());
if (secConfigService.isConfig("RECHARGE_ORDER" , order.getRechargeContent())) {
highOrder.setExceptionStatus(true);
highOrder.setExceptionContent("当前订单存在以前多充值!");
order.setRechargeStatus(204);
orderService.updateOrderData(highOrder);
outRechargeOrderMapper.updateByPrimaryKey(order);
return true;
}
return false;
}
} }

Loading…
Cancel
Save