Authored by LUOXC

压测订单不校验待支付订单数量

... ... @@ -51,10 +51,15 @@ public class ShoppingRiskWatchDog {
public void checkWaitingPayCnt(int uid, BusinessClientEnum businessClientEnum){
logger.info("in ShoppingRiskWatchDog.checkWaitingPayCnt uid {}", uid);
List<Integer> statusList = new ArrayList<>(1);
statusList.add(OrderStatus.WAITING_PAY.getCode());
List<Integer> orderTypes = OrderAssist.matchOrderTypesByBusinessClient(businessClientEnum);
int cnt = buyerOrderMapper.selectCntByUidStatus(uid, statusList, orderTypes);
// 压测订单不校验待支付订单数量
if(businessClientEnum == BusinessClientEnum.TEST){
return;
}
if (cnt >= waitingPayCnt){
logger.warn("in ShoppingRiskWatchDog.checkWaitingPayCnt try monopolizing skup another time,uid {} waiting pay cnt {}",
uid, cnt);
... ...