Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
5d5c2be4
Commit
5d5c2be4
authored
Sep 07, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
3088e793
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
AlertCalledMapper.xml
...e-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
+9
-9
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+6
-3
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
5d5c2be4
...
...
@@ -126,16 +126,16 @@
<if
test=
"alertSourceCode!= null "
>
and alert_source_code = #{alertSourceCode}
</if>
<if
test=
"data != null and lift == 'ascend'"
>
order by #{data} ASC limit #{current},#{size}
</if>
<if
test=
"data != null and lift == 'descend'"
>
order by #{data} DESC limit #{current},#{size}
</if>
<if
test=
"data == null "
>
order by call_time DESC limit #{current},#{size}
</if>
</where>
<if
test=
"data != null and lift == 'ascend'"
>
order by #{data} ASC limit #{current},#{size}
</if>
<if
test=
"data != null and lift == 'descend'"
>
order by #{data} DESC limit #{current},#{size}
</if>
<if
test=
"data == null "
>
order by call_time DESC limit #{current},#{size}
</if>
</select>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
View file @
5d5c2be4
...
...
@@ -150,9 +150,12 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
String
startTime
,
String
endTime
,
String
sort
)
{
String
[]
split
=
sort
.
split
(
","
);
String
data
=
RedisKey
.
humpToLine
(
split
[
0
]);
String
lift
=
split
[
1
];
String
[]
split
=
sort
!=
null
?
sort
.
split
(
","
):
null
;
String
data
=
split
!=
null
?
RedisKey
.
humpToLine
(
split
[
0
]):
null
;
String
lift
=
split
!=
null
?
split
[
1
]:
null
;
List
<
AlertCalled
>
list
=
alertCalledMapper
.
selectAllPage
(
pageBean
.
getCurrent
(),
pageBean
.
getSize
(),
alertStatus
,
alertTypeCode
,
alertSourceCode
,
startTime
,
endTime
,
data
,
lift
);
IPage
<
AlertCalled
>
iPage
=
new
Page
<>();
iPage
.
setRecords
(
list
);
...
...
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