From 63abfb732ca39d04798c1217cc761328d28fa559 Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Mon, 26 Feb 2024 18:24:37 +0800 Subject: [PATCH] z --- BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs index b49747d..be3feb6 100644 --- a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs +++ b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs @@ -202,10 +202,10 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services if (goods == null) throw Oops.Oh("商品不存在"); var goodsbom = _db.Queryable().Where(x => x.Goods_Id == id).ToList(); var goodsTechnology = _db.Queryable().Where(x => x.GoodsId == id).ToList(); - var FoodMenuGoods = _db.Queryable().Where(x => x.GoodsId == id).ToList(); + //var FoodMenuGoods = _db.Queryable().Where(x => x.GoodsId == id).ToList(); await _db.Deleteable(goodsbom).ExecuteCommandAsync(); await _db.Deleteable(goodsTechnology).ExecuteCommandAsync(); - await _db.Deleteable(FoodMenuGoods).ExecuteCommandAsync(); + //await _db.Deleteable(FoodMenuGoods).ExecuteCommandAsync(); var res = await _db.Deleteable(goods).ExecuteCommandAsync(); _db.Ado.CommitTran(); return res > 0;