Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
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
周健威
rs-cloud-platform
Commits
a6f07ea7
Commit
a6f07ea7
authored
Jan 07, 2021
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加通知信息
parent
09298915
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
NewsInfoDto.java
.../java/com/upyuns/platform/rs/website/dto/NewsInfoDto.java
+1
-1
NewsInfoMapper.xml
...bsite-server/src/main/resources/mapper/NewsInfoMapper.xml
+4
-1
No files found.
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/dto/NewsInfoDto.java
View file @
a6f07ea7
...
@@ -12,6 +12,6 @@ import lombok.Data;
...
@@ -12,6 +12,6 @@ import lombok.Data;
@Data
@Data
public
class
NewsInfoDto
extends
PageParam
{
public
class
NewsInfoDto
extends
PageParam
{
Integer
typeId
;
Integer
typeId
;
Integer
sortType
;
Integer
sortType
=
3
;
Integer
status
;
Integer
status
;
}
}
rs-website/rs-website-server/src/main/resources/mapper/NewsInfoMapper.xml
View file @
a6f07ea7
...
@@ -18,7 +18,10 @@
...
@@ -18,7 +18,10 @@
<if
test=
"sortType == 1"
>
<if
test=
"sortType == 1"
>
order by ni.rank
order by ni.rank
</if>
</if>
<if
test=
"sortType != 1"
>
<if
test=
"sortType == 2"
>
order by ni.rank DESC
</if>
<if
test=
"sortType != 3"
>
order by ni.upd_time DESC
order by ni.upd_time DESC
</if>
</if>
</select>
</select>
...
...
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