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
09eff672
Commit
09eff672
authored
Aug 25, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ca3504d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
RB_GoodsRepository.cs
Mall.Repository/Product/RB_GoodsRepository.cs
+12
-1
No files found.
Mall.Repository/Product/RB_GoodsRepository.cs
View file @
09eff672
...
@@ -429,8 +429,19 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
...
@@ -429,8 +429,19 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
else
if
(
dmodel
.
OrderBy
==
4
)
else
if
(
dmodel
.
OrderBy
==
4
)
{
{
//销量高-低
//销量高-低
orderBy
=
$" order by g.
{
nameof
(
RB_Goods_Extend
.
SalesNum
)}
desc"
;
orderBy
=
$" order by g.
{
nameof
(
RB_Goods_Extend
.
SalesNum
)}
desc
"
;
}
}
//上架时间升序
else
if
(
dmodel
.
OrderBy
==
5
)
{
orderBy
=
$" order by g.
{
nameof
(
RB_Goods_Extend
.
CreateDate
)}
ASC "
;
}
//上架时间降序
else
if
(
dmodel
.
OrderBy
==
6
)
{
orderBy
=
$" order by g.
{
nameof
(
RB_Goods_Extend
.
CreateDate
)}
DESC "
;
}
if
(
dmodel
.
IsSelectVideo
==
1
)
if
(
dmodel
.
IsSelectVideo
==
1
)
{
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
VideoAddress
)}
!=''"
;
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
VideoAddress
)}
!=''"
;
...
...
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