From d9450d4f8f9569d65c55683f0b64a050c88d4d43 Mon Sep 17 00:00:00 2001 From: jianweie code Date: Wed, 30 Aug 2023 01:28:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=BC=96=E8=BE=91=E5=95=86=E5=93=81=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E5=AD=98=E5=9C=A8=E6=9C=AA=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=89=A9=E5=B1=95=E5=88=86=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs b/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs index de399743..adecbd0a 100644 --- a/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs +++ b/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs @@ -452,9 +452,9 @@ namespace CoreCms.Net.Repository var bl = await DbClient.Updateable(oldModel).ExecuteCommandHasChangeAsync(); if (bl) { + bl = await DbClient.Deleteable().Where(p => p.goodsId == model.id).ExecuteCommandHasChangeAsync(); if (!string.IsNullOrEmpty(entity.goodsCategoryExtendIds)) { - bl = await DbClient.Deleteable().Where(p => p.goodsId == model.id).ExecuteCommandHasChangeAsync(); var ids = CommonHelper.StringToIntArray(entity.goodsCategoryExtendIds); if (ids.Any()) {