Commit 82fae002 authored by 黄奎's avatar 黄奎

页面修改

parent a30271f4
...@@ -545,15 +545,15 @@ namespace Mall.Module.Product ...@@ -545,15 +545,15 @@ namespace Mall.Module.Product
var supmodel = extModel.SpecificationList.Where(x => x.Id == item.Id).FirstOrDefault(); var supmodel = extModel.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_Groupbuy_Activity_Specification_Extend.EnabledImage),supmodel.EnabledImage},
{ nameof(RB_Goods_Specification.Name),supmodel.Name}, { nameof(RB_Groupbuy_Activity_Specification_Extend.Name),supmodel.Name},
{ nameof(RB_Goods_Specification.Sort),supmodel.Sort} { nameof(RB_Groupbuy_Activity_Specification_Extend.Sort),supmodel.Sort}
}; };
List<WhereHelper> wheres1 = new List<WhereHelper>() List<WhereHelper> wheres1 = new List<WhereHelper>()
{ {
new WhereHelper() new WhereHelper()
{ {
FiledName=nameof(RB_Goods_Specification.Id), FiledName=nameof(RB_Groupbuy_Activity_Specification_Extend.Id),
FiledValue=item.Id, FiledValue=item.Id,
OperatorEnum=OperatorEnum.Equal OperatorEnum=OperatorEnum.Equal
} }
...@@ -590,15 +590,15 @@ namespace Mall.Module.Product ...@@ -590,15 +590,15 @@ namespace Mall.Module.Product
var supModel1 = supmodel.SpecificationValueList.Where(x => x.Id == qitem.Id).FirstOrDefault(); var supModel1 = supmodel.SpecificationValueList.Where(x => x.Id == qitem.Id).FirstOrDefault();
Dictionary<string, object> keyValues2 = new Dictionary<string, object>() Dictionary<string, object> keyValues2 = new Dictionary<string, object>()
{ {
{ nameof(RB_Goods_SpecificationValue.Image),supModel1.Image}, { nameof(RB_Groupbuy_Activity_Specificationvalue_Extend.Image),supModel1.Image},
{ nameof(RB_Goods_SpecificationValue.Name),supModel1.Name}, { nameof(RB_Groupbuy_Activity_Specificationvalue_Extend.Name),supModel1.Name},
{ nameof(RB_Goods_SpecificationValue.Sort),supModel1.Sort} { nameof(RB_Groupbuy_Activity_Specificationvalue_Extend.Sort),supModel1.Sort}
}; };
List<WhereHelper> wheres2 = new List<WhereHelper>() List<WhereHelper> wheres2 = new List<WhereHelper>()
{ {
new WhereHelper() new WhereHelper()
{ {
FiledName=nameof(RB_Goods_Specification.Id), FiledName=nameof(RB_Groupbuy_Activity_Specificationvalue_Extend.Id),
FiledValue=qitem.Id, FiledValue=qitem.Id,
OperatorEnum=OperatorEnum.Equal OperatorEnum=OperatorEnum.Equal
} }
...@@ -646,20 +646,20 @@ namespace Mall.Module.Product ...@@ -646,20 +646,20 @@ namespace Mall.Module.Product
{ {
Dictionary<string, object> keyValues1 = new Dictionary<string, object>() Dictionary<string, object> keyValues1 = new Dictionary<string, object>()
{ {
{ nameof(RB_Goods_SpecificationPrice.SellingPrice),pupmodel.SellingPrice}, { nameof(RB_Groupbuy_Activity_Specificationprice_Extend.SellingPrice),pupmodel.SellingPrice},
{ nameof(RB_Goods_SpecificationPrice.InventoryNum),pupmodel.InventoryNum}, { nameof(RB_Groupbuy_Activity_Specificationprice_Extend.InventoryNum),pupmodel.InventoryNum},
{ nameof(RB_Goods_SpecificationPrice.GoodsWeight),pupmodel.GoodsWeight}, { nameof(RB_Groupbuy_Activity_Specificationprice_Extend.GoodsWeight),pupmodel.GoodsWeight},
{ nameof(RB_Goods_SpecificationPrice.GoodsNumbers),pupmodel.GoodsNumbers}, { nameof(RB_Groupbuy_Activity_Specificationprice_Extend.GoodsNumbers),pupmodel.GoodsNumbers},
{ nameof(RB_Goods_SpecificationPrice.Commission),pupmodel.Commission}, { nameof(RB_Groupbuy_Activity_Specificationprice_Extend.Commission),pupmodel.Commission},
{ nameof(RB_Goods_SpecificationPrice.CostMoney),pupmodel.CostMoney}, { nameof(RB_Groupbuy_Activity_Specificationprice_Extend.CostMoney),pupmodel.CostMoney},
}; };
List<WhereHelper> wheres1 = new List<WhereHelper>() List<WhereHelper> wheres1 = new List<WhereHelper>()
{ {
new WhereHelper() new WhereHelper()
{ {
FiledName=nameof(RB_Goods_SpecificationPrice.Id), FiledName=nameof(RB_Groupbuy_Activity_Specificationprice_Extend.Id),
FiledValue=item.Id, FiledValue=item.Id,
OperatorEnum=OperatorEnum.Equal OperatorEnum=OperatorEnum.Equal
} }
}; };
flag = groupbuy_Activity_SpecificationPriceRepository.Update(keyValues1, wheres1); flag = groupbuy_Activity_SpecificationPriceRepository.Update(keyValues1, wheres1);
...@@ -955,12 +955,11 @@ namespace Mall.Module.Product ...@@ -955,12 +955,11 @@ namespace Mall.Module.Product
foreach (var childItem in subItem.GradeCommissionList) foreach (var childItem in subItem.GradeCommissionList)
{ {
var oldModel= distributionList.Where(qitem => qitem.StepId == childItem.StepId && qitem.SpecificationSort == subItem.SpecificationSort && qitem.DistributorGrade == childItem.DistributorGrade).FirstOrDefault(); var oldModel= distributionList.Where(qitem => qitem.StepId == childItem.StepId && qitem.SpecificationSort == subItem.SpecificationSort && qitem.DistributorGrade == childItem.DistributorGrade).FirstOrDefault();
var defaultModel = groupItem.DistributioncommissionList.Where(qitem => qitem.StepId == childItem.StepId && qitem.SpecificationSort == subItem.SpecificationSort && qitem.DistributorGrade == childItem.DistributorGrade).FirstOrDefault();
Dictionary<string, object> comFileds = new Dictionary<string, object>() Dictionary<string, object> comFileds = new Dictionary<string, object>()
{ {
{ nameof(RB_GroupBuy_Distributioncommission_Extend.OneCommission),defaultModel.OneCommission}, { nameof(RB_GroupBuy_Distributioncommission_Extend.OneCommission),childItem.OneCommission},
{ nameof(RB_GroupBuy_Distributioncommission_Extend.TwoCommission),defaultModel.TwoCommission}, { nameof(RB_GroupBuy_Distributioncommission_Extend.TwoCommission),childItem.TwoCommission},
{ nameof(RB_GroupBuy_Distributioncommission_Extend.ThreeCommission),defaultModel.ThreeCommission}, { nameof(RB_GroupBuy_Distributioncommission_Extend.ThreeCommission),childItem.ThreeCommission},
}; };
flag = groupBuy_DistributioncommissionRepository.Update(comFileds, new WhereHelper(nameof(RB_GroupBuy_Distributioncommission_Extend.Id), oldModel.Id)); flag = groupBuy_DistributioncommissionRepository.Update(comFileds, new WhereHelper(nameof(RB_GroupBuy_Distributioncommission_Extend.Id), oldModel.Id));
} }
......
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