修复权限问题

This commit is contained in:
zjf committed 2026-09-11 18:42:16 +08:00
1 parent 26fe9834cb
commit 7fb7feea3f
12 files changed
+231 -73

No files matched your search

@@ -2191,8 +2191,8 @@ public class HardOrderServiceImpl extends ServiceImpl<HardOrderMapper, HardOrder
if (mealDate == null || hourType == null) {
throw new I18nBizException(ErrorCodes.HARD_DAILY_MENU_PRODUCT_BAD);
}
R<List<DailyMenuAppVO>> menuResult = remoteDailyMenuService.getCanteenList(
mealDate.toString(), hourType, null, merchantId);
R<List<DailyMenuAppVO>> menuResult = remoteDailyMenuService.listForOrderValidate(
mealDate.toString(), hourType, merchantId);
if (menuResult == null || !menuResult.isOk() || menuResult.getData() == null) {
throw new I18nBizException(menuResult == null ? ErrorCodes.HARD_DAILY_PRODUCT_NO_RESP
: ErrorCodes.HARD_DAILY_PRODUCT_QUERY_FAIL);
@@ -2773,6 +2773,9 @@ public class HardOrderServiceImpl extends ServiceImpl<HardOrderMapper, HardOrder
stockDto.setItems(items);
R<?> result = remoteCanteenSpuService.updateSkuStockIdempotent(stockDto);
if (result == null || !result.isOk()) {
if (result != null && StrUtil.isNotBlank(result.getMsg())) {
throw new RuntimeException(result.getMsg());
}
throw new I18nBizException(reduce ? ErrorCodes.HARD_DAILY_STOCK_DEDUCT_FAIL : ErrorCodes.HARD_DAILY_STOCK_RESTORE_FAIL);
}
}