|
|
@@ -191,7 +191,7 @@ namespace BPA.KitChen.StoreManagement.Application.Service.ShopManage.FoodMenu |
|
|
|
int total = 0; |
|
|
|
|
|
|
|
var foodMenuList = await db.Queryable<BPA_FoodMenu>().Where(c => c.FoodMenuId == inputDto.FoodMenuId).ToListAsync(); |
|
|
|
foreach (var item in data.data.data) |
|
|
|
foreach (var item in data?.data?.data) |
|
|
|
{ |
|
|
|
var check = foodMenuList.Any(x => x.FoodMenuId == item.id); |
|
|
|
|
|
|
@@ -306,12 +306,9 @@ namespace BPA.KitChen.StoreManagement.Application.Service.ShopManage.FoodMenu |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var storeId = storeFoodMenu.Select(x=>x.StoreId).First(); |
|
|
|
|
|
|
|
await StoreAddFoodMenuGoodsNewAsync(new StoreFoodMenuNewDto() |
|
|
|
{ |
|
|
|
StoreId= storeId, |
|
|
|
StoreId= inputDto.StoreId, |
|
|
|
FoodMenuIds=new List<string> |
|
|
|
{ |
|
|
|
inputDto.FoodMenuId |
|
|
|