gwbvipvip преди 10 месеца
родител
ревизия
b864eb6406
променени са 3 файла, в които са добавени 5 реда и са изтрити 7 реда
  1. +1
    -0
      BPA.KitChen.StoreManagement.Application/Service/ShopManage/FoodMenu/Dtos/FoodMenuBaseDto.cs
  2. +2
    -5
      BPA.KitChen.StoreManagement.Application/Service/ShopManage/FoodMenu/FoodMenuServices.cs
  3. +2
    -2
      BPA.KitChen.StoreManagement.Core/Entity/BPA_StoreFoodMenu.cs

+ 1
- 0
BPA.KitChen.StoreManagement.Application/Service/ShopManage/FoodMenu/Dtos/FoodMenuBaseDto.cs Целия файл

@@ -8,6 +8,7 @@ namespace BPA.KitChen.StoreManagement.Application.Service.ShopManage.FoodMenu.Dt
{
public class FoodMenuBaseDto
{
public string StoreId { get; set; }

/// <summary>
/// 商品菜品id


+ 2
- 5
BPA.KitChen.StoreManagement.Application/Service/ShopManage/FoodMenu/FoodMenuServices.cs Целия файл

@@ -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


+ 2
- 2
BPA.KitChen.StoreManagement.Core/Entity/BPA_StoreFoodMenu.cs Целия файл

@@ -25,13 +25,13 @@ namespace BPA.KitChen.StoreManagement.Core.Entity
/// <summary>
/// 小炒工序
/// </summary>
[SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = false)]
[SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = true)]
public string CookingWorkId { get; set; }
/// <summary>
/// 店铺id
/// </summary>

[SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = false)]
[SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = true)]
public string StoreId { get; set; }




Зареждане…
Отказ
Запис