Commit 86948e04 authored by 黄奎's avatar 黄奎

页面修改

parent 10de725a
...@@ -4457,18 +4457,21 @@ namespace Mall.Module.Product ...@@ -4457,18 +4457,21 @@ namespace Mall.Module.Product
foreach (var item in slist) foreach (var item in slist)
{ {
var supmodel = demodel.SpecificationList.Where(x => x.Id == item.Id).FirstOrDefault(); var supmodel = demodel.SpecificationList.Where(x => x.Id == item.Id).FirstOrDefault();
Dictionary<string, object> keyValues1 = new Dictionary<string, object>() { Dictionary<string, object> keyValues1 = new Dictionary<string, object>()
{ nameof(RB_Goods_Specification.EnabledImage),supmodel.EnabledImage}, {
{ nameof(RB_Goods_Specification.Name),supmodel.Name}, { nameof(RB_Goods_Specification.EnabledImage),supmodel.EnabledImage},
{ nameof(RB_Goods_Specification.Sort),supmodel.Sort} { nameof(RB_Goods_Specification.Name),supmodel.Name},
}; { nameof(RB_Goods_Specification.Sort),supmodel.Sort}
List<WhereHelper> wheres1 = new List<WhereHelper>() { };
new WhereHelper(){ List<WhereHelper> wheres1 = new List<WhereHelper>()
FiledName=nameof(RB_Goods_Specification.Id), {
FiledValue=item.Id, new WhereHelper()
OperatorEnum=OperatorEnum.Equal {
} FiledName=nameof(RB_Goods_Specification.Id),
}; FiledValue=item.Id,
OperatorEnum=OperatorEnum.Equal
}
};
bool flag1 = goods_SpecificationRepository.Update(keyValues1, wheres1); bool flag1 = goods_SpecificationRepository.Update(keyValues1, wheres1);
if (flag1) if (flag1)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment