Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
82fae002
Commit
82fae002
authored
Aug 18, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a30271f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
21 deletions
+20
-21
GroupBuyActivityModule.cs
Mall.Module.Product/GroupBuyActivityModule.cs
+20
-21
No files found.
Mall.Module.Product/GroupBuyActivityModule.cs
View file @
82fae002
...
...
@@ -545,15 +545,15 @@ namespace Mall.Module.Product
var
supmodel
=
extModel
.
SpecificationList
.
Where
(
x
=>
x
.
Id
==
item
.
Id
).
FirstOrDefault
();
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_G
oods_Specification
.
EnabledImage
),
supmodel
.
EnabledImage
},
{
nameof
(
RB_G
oods_Specification
.
Name
),
supmodel
.
Name
},
{
nameof
(
RB_G
oods_Specification
.
Sort
),
supmodel
.
Sort
}
{
nameof
(
RB_G
roupbuy_Activity_Specification_Extend
.
EnabledImage
),
supmodel
.
EnabledImage
},
{
nameof
(
RB_G
roupbuy_Activity_Specification_Extend
.
Name
),
supmodel
.
Name
},
{
nameof
(
RB_G
roupbuy_Activity_Specification_Extend
.
Sort
),
supmodel
.
Sort
}
};
List
<
WhereHelper
>
wheres1
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_G
oods_Specification
.
Id
),
FiledName
=
nameof
(
RB_G
roupbuy_Activity_Specification_Extend
.
Id
),
FiledValue
=
item
.
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
...
...
@@ -590,15 +590,15 @@ namespace Mall.Module.Product
var
supModel1
=
supmodel
.
SpecificationValueList
.
Where
(
x
=>
x
.
Id
==
qitem
.
Id
).
FirstOrDefault
();
Dictionary
<
string
,
object
>
keyValues2
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_G
oods_SpecificationValue
.
Image
),
supModel1
.
Image
},
{
nameof
(
RB_G
oods_SpecificationValue
.
Name
),
supModel1
.
Name
},
{
nameof
(
RB_G
oods_SpecificationValue
.
Sort
),
supModel1
.
Sort
}
{
nameof
(
RB_G
roupbuy_Activity_Specificationvalue_Extend
.
Image
),
supModel1
.
Image
},
{
nameof
(
RB_G
roupbuy_Activity_Specificationvalue_Extend
.
Name
),
supModel1
.
Name
},
{
nameof
(
RB_G
roupbuy_Activity_Specificationvalue_Extend
.
Sort
),
supModel1
.
Sort
}
};
List
<
WhereHelper
>
wheres2
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_G
oods_Specification
.
Id
),
FiledName
=
nameof
(
RB_G
roupbuy_Activity_Specificationvalue_Extend
.
Id
),
FiledValue
=
qitem
.
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
...
...
@@ -646,20 +646,20 @@ namespace Mall.Module.Product
{
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_G
oods_SpecificationPrice
.
SellingPrice
),
pupmodel
.
SellingPrice
},
{
nameof
(
RB_G
oods_SpecificationPrice
.
InventoryNum
),
pupmodel
.
InventoryNum
},
{
nameof
(
RB_G
oods_SpecificationPrice
.
GoodsWeight
),
pupmodel
.
GoodsWeight
},
{
nameof
(
RB_G
oods_SpecificationPrice
.
GoodsNumbers
),
pupmodel
.
GoodsNumbers
},
{
nameof
(
RB_G
oods_SpecificationPrice
.
Commission
),
pupmodel
.
Commission
},
{
nameof
(
RB_G
oods_SpecificationPrice
.
CostMoney
),
pupmodel
.
CostMoney
},
{
nameof
(
RB_G
roupbuy_Activity_Specificationprice_Extend
.
SellingPrice
),
pupmodel
.
SellingPrice
},
{
nameof
(
RB_G
roupbuy_Activity_Specificationprice_Extend
.
InventoryNum
),
pupmodel
.
InventoryNum
},
{
nameof
(
RB_G
roupbuy_Activity_Specificationprice_Extend
.
GoodsWeight
),
pupmodel
.
GoodsWeight
},
{
nameof
(
RB_G
roupbuy_Activity_Specificationprice_Extend
.
GoodsNumbers
),
pupmodel
.
GoodsNumbers
},
{
nameof
(
RB_G
roupbuy_Activity_Specificationprice_Extend
.
Commission
),
pupmodel
.
Commission
},
{
nameof
(
RB_G
roupbuy_Activity_Specificationprice_Extend
.
CostMoney
),
pupmodel
.
CostMoney
},
};
List
<
WhereHelper
>
wheres1
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Goods_SpecificationPrice
.
Id
),
FiledValue
=
item
.
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
FiledName
=
nameof
(
RB_Groupbuy_Activity_Specificationprice_Extend
.
Id
),
FiledValue
=
item
.
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
flag
=
groupbuy_Activity_SpecificationPriceRepository
.
Update
(
keyValues1
,
wheres1
);
...
...
@@ -955,12 +955,11 @@ namespace Mall.Module.Product
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
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
>()
{
{
nameof
(
RB_GroupBuy_Distributioncommission_Extend
.
OneCommission
),
defaultModel
.
OneCommission
},
{
nameof
(
RB_GroupBuy_Distributioncommission_Extend
.
TwoCommission
),
defaultModel
.
TwoCommission
},
{
nameof
(
RB_GroupBuy_Distributioncommission_Extend
.
ThreeCommission
),
defaultModel
.
ThreeCommission
},
{
nameof
(
RB_GroupBuy_Distributioncommission_Extend
.
OneCommission
),
childItem
.
OneCommission
},
{
nameof
(
RB_GroupBuy_Distributioncommission_Extend
.
TwoCommission
),
childItem
.
TwoCommission
},
{
nameof
(
RB_GroupBuy_Distributioncommission_Extend
.
ThreeCommission
),
childItem
.
ThreeCommission
},
};
flag
=
groupBuy_DistributioncommissionRepository
.
Update
(
comFileds
,
new
WhereHelper
(
nameof
(
RB_GroupBuy_Distributioncommission_Extend
.
Id
),
oldModel
.
Id
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment