mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:03:27 +08:00
【修复】修复编辑商品扩展分类存在未清除历史扩展分类的情况。
This commit is contained in:
@@ -452,9 +452,9 @@ namespace CoreCms.Net.Repository
|
||||
var bl = await DbClient.Updateable(oldModel).ExecuteCommandHasChangeAsync();
|
||||
if (bl)
|
||||
{
|
||||
bl = await DbClient.Deleteable<CoreCmsGoodsCategoryExtend>().Where(p => p.goodsId == model.id).ExecuteCommandHasChangeAsync();
|
||||
if (!string.IsNullOrEmpty(entity.goodsCategoryExtendIds))
|
||||
{
|
||||
bl = await DbClient.Deleteable<CoreCmsGoodsCategoryExtend>().Where(p => p.goodsId == model.id).ExecuteCommandHasChangeAsync();
|
||||
var ids = CommonHelper.StringToIntArray(entity.goodsCategoryExtendIds);
|
||||
if (ids.Any())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user