11
This commit is contained in:
1 parent
fae0eda190
commit
fecf2b1937
1 file changed
+2
-2
+2
-2
@@ -1556,8 +1556,8 @@ public class HardOrderServiceImpl extends ServiceImpl<HardOrderMapper, HardOrder
|
||||
}
|
||||
for (Long dinerUserId : dinerUserIds) {
|
||||
Long reserveCount = isHaveCanteenReserve(dinerUserId);
|
||||
if (Math.addExact(reserveCount, (long) contexts.size()) > 20L) {
|
||||
throw new RuntimeException("用餐人已有" + reserveCount + "笔未核销的预约订单,本次订餐后将超过20笔上限");
|
||||
if (Math.addExact(reserveCount, (long) contexts.size()) > 200L) {
|
||||
throw new RuntimeException("用餐人已有" + reserveCount + "笔未核销的预约订单,本次订餐后将超过200笔上限");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user