Commit ec8acbba by Huang Linyu

remove the limit of that inventory is less than 4

parent 9798ecbc
......@@ -496,8 +496,8 @@ public class EventActivityOrderService extends
int existCustomerNum = eventCustomerInfoDao.queryCustomerNumInSameGroup(groupNum,
resourceId, priceDate);
// 暂时每组只能4个人
if (existCustomerNum + customerInfoSize <= 4
&& existCustomerNum + customerInfoSize <= intTotalInventory) {
if ( //existCustomerNum + customerInfoSize <= 4 &&
existCustomerNum + customerInfoSize <= intTotalInventory) {
return groupNum;
} else {
throw new OrderException(-4, "没有足够的库存");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment