Merge branch '2.0-master' into 2.0-dev

# Conflicts:
#	hai-bweb/src/main/java/com/bweb/controller/HighTestController.java
#	hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java
new-dev
袁野 1 year ago
commit 5f83a7d2e5
  1. 2
      hai-bweb/src/main/java/com/bweb/controller/HighTestController.java
  2. 3
      hai-service/src/main/java/com/hai/order/utils/OrderUtil.java
  3. 5
      hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java

File diff suppressed because one or more lines are too long

@ -51,7 +51,7 @@ public class OrderUtil {
* @return
* @throws Exception
*/
public static String generateOrderNo() {
public static String generateOrderNo(){
try {
// 5位随机数 + 1位线程生成数
String randomNum = (new Random().nextInt(8999) + 1000) + IDGenerator.nextId(1);
@ -60,7 +60,6 @@ public class OrderUtil {
} catch (Exception e) {
return null;
}
}
/**

@ -1001,11 +1001,13 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
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("当前订单存在以前多充值!");
@ -1014,6 +1016,8 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
outRechargeOrderMapper.updateByPrimaryKey(order);
return true;
}
if (highOrder.getPayType() == 4) {
if (secConfigService.isConfig("RECHARGE_ORDER" , order.getLaborUnionCard())) {
highOrder.setExceptionStatus(true);
highOrder.setExceptionContent("当前订单存在以前多充值!");
@ -1022,6 +1026,7 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
outRechargeOrderMapper.updateByPrimaryKey(order);
return true;
}
}
return false;
}

Loading…
Cancel
Save