修改商品参数模型不显示问题
This commit is contained in:
parent
d0a5ddfa96
commit
7d6c37a98a
|
|
@ -12,6 +12,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using CoreCms.Net.Configuration;
|
||||
using CoreCms.Net.IRepository;
|
||||
using CoreCms.Net.IRepository.UnitOfWork;
|
||||
|
|
@ -21,7 +22,9 @@ using CoreCms.Net.Model.FromBody;
|
|||
using CoreCms.Net.Model.ViewModels.Basics;
|
||||
using CoreCms.Net.Model.ViewModels.UI;
|
||||
using CoreCms.Net.Utility.Helper;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
using SqlSugar;
|
||||
|
||||
namespace CoreCms.Net.Repository
|
||||
|
|
@ -133,17 +136,17 @@ namespace CoreCms.Net.Repository
|
|||
{
|
||||
goods.newSpec = entity.goods.newSpec;
|
||||
goods.spesDesc = entity.goods.spesDesc;
|
||||
goods.parameters = entity.goods.parameters;
|
||||
goods.goodsTypeId = entity.goods.goodsTypeId;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
goods.newSpec = "";
|
||||
goods.spesDesc = "";
|
||||
goods.parameters = "";
|
||||
goods.goodsTypeId = 0;
|
||||
}
|
||||
|
||||
}
|
||||
goods.parameters = entity.goods.parameters;
|
||||
goods.goodsParamsIds = entity.goods.goodsParamsIds;
|
||||
goods.goodsTypeId = entity.goods.goodsTypeId;
|
||||
goods.isDel = false;
|
||||
goods.isMarketable = entity.goods.isMarketable;
|
||||
goods.isRecommend = entity.goods.isRecommend;
|
||||
|
|
@ -405,27 +408,22 @@ namespace CoreCms.Net.Repository
|
|||
//oldModel.labelIds = model.labelIds;
|
||||
//oldModel.createTime = model.createTime;
|
||||
oldModel.openSpec = model.openSpec;
|
||||
oldModel.parameters = model.parameters;
|
||||
oldModel.goodsTypeId = model.goodsTypeId;
|
||||
oldModel.goodsParamsIds = model.goodsParamsIds;
|
||||
oldModel.goodsSkuIds = model.goodsSkuIds;
|
||||
if (oldModel.openSpec == 1)
|
||||
{
|
||||
oldModel.newSpec = model.newSpec;
|
||||
oldModel.spesDesc = model.spesDesc;
|
||||
oldModel.parameters = model.parameters;
|
||||
oldModel.goodsTypeId = model.goodsTypeId;
|
||||
|
||||
oldModel.goodsSkuIds = model.goodsSkuIds;
|
||||
oldModel.goodsParamsIds = model.goodsParamsIds;
|
||||
oldModel.parameters = model.parameters;
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
oldModel.newSpec = "";
|
||||
oldModel.spesDesc = "";
|
||||
oldModel.parameters = "";
|
||||
oldModel.goodsTypeId = 0;
|
||||
|
||||
oldModel.goodsSkuIds = "";
|
||||
oldModel.goodsParamsIds = "";
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user