|
@@ -226,7 +226,7 @@ public class StoreBookingTableServiceImpl extends ServiceImpl<StoreBookingTableM
|
|
|
if (existingTable != null) {
|
|
if (existingTable != null) {
|
|
|
log.warn("新增预订服务桌号失败:同一分类下桌号已存在,storeId={}, categoryId={}, tableNumber={}",
|
|
log.warn("新增预订服务桌号失败:同一分类下桌号已存在,storeId={}, categoryId={}, tableNumber={}",
|
|
|
table.getStoreId(), table.getCategoryId(), tableNumber);
|
|
table.getStoreId(), table.getCategoryId(), tableNumber);
|
|
|
- throw new RuntimeException("该分类下桌号已存在不能添加");
|
|
|
|
|
|
|
+ throw new RuntimeException("此桌号已存在");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
table.setCreatedUserId(userId);
|
|
table.setCreatedUserId(userId);
|
|
@@ -305,9 +305,9 @@ public class StoreBookingTableServiceImpl extends ServiceImpl<StoreBookingTableM
|
|
|
log.warn("批量新增预订服务桌号失败:同一分类下桌号已存在,storeId={}, categoryId={}, existingNumbers={}",
|
|
log.warn("批量新增预订服务桌号失败:同一分类下桌号已存在,storeId={}, categoryId={}, existingNumbers={}",
|
|
|
storeId, categoryId, existingNumbers);
|
|
storeId, categoryId, existingNumbers);
|
|
|
if (existingNumbers.size() == 1) {
|
|
if (existingNumbers.size() == 1) {
|
|
|
- throw new RuntimeException("该分类下桌号已存在不能添加");
|
|
|
|
|
|
|
+ throw new RuntimeException("此桌号已存在");
|
|
|
} else {
|
|
} else {
|
|
|
- throw new RuntimeException("该分类下以下桌号已存在不能添加:" + String.join("、", existingNumbers));
|
|
|
|
|
|
|
+ throw new RuntimeException("此桌号已存在:" + String.join("、", existingNumbers));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|