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
bd4c9d67
Commit
bd4c9d67
authored
Aug 26, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ec1c1032
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+10
-1
No files found.
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
bd4c9d67
...
...
@@ -1697,8 +1697,17 @@ namespace Mall.WebApi.Controllers.MallBase
pricemodel
.
GoodsWeight
??=
0
;
demodel
.
InventoryNum
+=
(
pricemodel
.
InventoryNum
??
0
);
}
demodel
.
SellingPrice
=
0
;
//主表价格 如果有自定义规格,直接取最小值
demodel
.
SellingPrice
=
demodel
.
SpecificationPriceList
.
Where
(
x
=>
x
.
SellingPrice
>
0
)?.
Min
(
x
=>
x
.
SellingPrice
??
0
)
??
0
;
if
(
demodel
.
SpecificationPriceList
!=
null
&&
demodel
.
SpecificationPriceList
.
Count
>
0
)
{
var
SellingPrice
=
demodel
.
SpecificationPriceList
.
Where
(
x
=>
x
.
SellingPrice
>
0
)?.
Min
(
x
=>
x
.
SellingPrice
);
if
(
SellingPrice
!=
null
)
{
demodel
.
SellingPrice
=
SellingPrice
;
}
}
//分销佣金
if
(
demodel
.
SeparateDistribution
==
1
)
{
...
...
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