Showing
1 changed file
with
5 additions
and
0 deletions
@@ -51,10 +51,15 @@ public class ShoppingRiskWatchDog { | @@ -51,10 +51,15 @@ public class ShoppingRiskWatchDog { | ||
51 | 51 | ||
52 | public void checkWaitingPayCnt(int uid, BusinessClientEnum businessClientEnum){ | 52 | public void checkWaitingPayCnt(int uid, BusinessClientEnum businessClientEnum){ |
53 | logger.info("in ShoppingRiskWatchDog.checkWaitingPayCnt uid {}", uid); | 53 | logger.info("in ShoppingRiskWatchDog.checkWaitingPayCnt uid {}", uid); |
54 | + | ||
54 | List<Integer> statusList = new ArrayList<>(1); | 55 | List<Integer> statusList = new ArrayList<>(1); |
55 | statusList.add(OrderStatus.WAITING_PAY.getCode()); | 56 | statusList.add(OrderStatus.WAITING_PAY.getCode()); |
56 | List<Integer> orderTypes = OrderAssist.matchOrderTypesByBusinessClient(businessClientEnum); | 57 | List<Integer> orderTypes = OrderAssist.matchOrderTypesByBusinessClient(businessClientEnum); |
57 | int cnt = buyerOrderMapper.selectCntByUidStatus(uid, statusList, orderTypes); | 58 | int cnt = buyerOrderMapper.selectCntByUidStatus(uid, statusList, orderTypes); |
59 | + // 压测订单不校验待支付订单数量 | ||
60 | + if(businessClientEnum == BusinessClientEnum.TEST){ | ||
61 | + return; | ||
62 | + } | ||
58 | if (cnt >= waitingPayCnt){ | 63 | if (cnt >= waitingPayCnt){ |
59 | logger.warn("in ShoppingRiskWatchDog.checkWaitingPayCnt try monopolizing skup another time,uid {} waiting pay cnt {}", | 64 | logger.warn("in ShoppingRiskWatchDog.checkWaitingPayCnt try monopolizing skup another time,uid {} waiting pay cnt {}", |
60 | uid, cnt); | 65 | uid, cnt); |
-
Please register or login to post a comment