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
765f23a0
Commit
765f23a0
authored
Sep 14, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
73d2c59d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
RB_GoodsRepository.cs
Mall.Repository/Product/RB_GoodsRepository.cs
+16
-16
AppletGuideCarController.cs
Mall.WebApi/Controllers/Product/AppletGuideCarController.cs
+1
-1
No files found.
Mall.Repository/Product/RB_GoodsRepository.cs
View file @
765f23a0
...
...
@@ -936,42 +936,42 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
SupplierId
)}
=
{
dmodel
.
SupplierId
}
"
;
}
string
orderBy
=
" g.Sort desc"
;
if
(
dmodel
.
OrderBy
==
1
)
{
//价格升序
orderBy
=
" g.Sort asc"
;
}
else
if
(
dmodel
.
OrderBy
==
2
)
{
//价格降序
orderBy
=
" g.Sort desc"
;
}
else
if
(
dmodel
.
OrderBy
==
3
)
//
if (dmodel.OrderBy == 1)
//
{
//
//价格升序
//
orderBy = " g.Sort asc";
//
}
//
else if (dmodel.OrderBy == 2)
//
{
//
//价格降序
//
orderBy = " g.Sort desc";
//
}
if
(
dmodel
.
OrderBy
==
1
)
{
//价格升序
orderBy
=
" g.SellingPrice asc"
;
}
else
if
(
dmodel
.
OrderBy
==
4
)
else
if
(
dmodel
.
OrderBy
==
2
)
{
//价格降序
orderBy
=
" g.SellingPrice desc"
;
}
else
if
(
dmodel
.
OrderBy
==
5
)
else
if
(
dmodel
.
OrderBy
==
3
)
{
//评分升序
orderBy
=
" e.Score asc"
;
}
else
if
(
dmodel
.
OrderBy
==
6
)
else
if
(
dmodel
.
OrderBy
==
4
)
{
//评分降序
orderBy
=
" e.Score desc"
;
}
else
if
(
dmodel
.
OrderBy
==
7
)
else
if
(
dmodel
.
OrderBy
==
5
)
{
//最新升序
orderBy
=
" g.CreateDate asc"
;
}
else
if
(
dmodel
.
OrderBy
==
8
)
else
if
(
dmodel
.
OrderBy
==
6
)
{
//最新降序
orderBy
=
" g.CreateDate desc"
;
...
...
Mall.WebApi/Controllers/Product/AppletGuideCarController.cs
View file @
765f23a0
...
...
@@ -142,7 +142,7 @@ namespace Mall.WebApi.Controllers.Product
else
{
TimeSpan
sp
=
tempEndTime
.
Subtract
(
tempStartTime
);
demodel
.
UseDay
=
sp
.
Days
;
demodel
.
UseDay
=
sp
.
Days
+
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