|
|
|
@@ -367,6 +367,14 @@ public class WxOrderServiceImpl implements WxOrderService { |
|
|
|
logger.error("下订单拼团人数已满>>>" + orderGroupId); |
|
|
|
throw new MallinkException(ErrorCode.ORDER_GROUP_COOPERATING_FINISHED); |
|
|
|
} |
|
|
|
WxOrder order = new WxOrder(); |
|
|
|
order.setOrderGroupId(group.getId()); |
|
|
|
order.setCUserId(user.getId()); |
|
|
|
int count = wxOrderMapper.selectCount(order); |
|
|
|
if (count > 0) { |
|
|
|
logger.error("重复的拼团>>>" + orderGroupId); |
|
|
|
throw new MallinkException(ErrorCode.ORDER_IS_FAIL); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 减库存操作 |
|
|
|
|