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()) {