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
bafa05be
Commit
bafa05be
authored
Oct 22, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
f0406f68
64f32ae8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
15 deletions
+17
-15
AlertCalledMapper.xml
...e-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
+9
-15
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+8
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
bafa05be
...
...
@@ -135,31 +135,25 @@
<where>
a.is_delete = 0
<if
test=
"alertStatus!= null "
>
and alert_status = #{alertStatus}
and a
.a
lert_status = #{alertStatus}
</if>
<if
test=
"startTime!= null and endTime != null"
>
and call_time between #{startTime} and #{endTime}
and
a.
call_time between #{startTime} and #{endTime}
</if>
<if
test=
"alertTypeCode!= null "
>
and alarm_type_code = #{alertTypeCode}
and a
.a
larm_type_code = #{alertTypeCode}
</if>
<if
test=
"alertSourceCode!= null "
>
and alert_source_code = #{alertSourceCode}
</if>
<if
test=
"data == 'address' and data != null and lift == 'ascend'"
>
order by CONVERT(address USING 'gbk') ASC limit #{current},#{size}
</if>
<if
test=
"data == 'address' and data != null and lift == 'descend'"
>
order by CONVERT(address USING 'gbk') DESC limit #{current},#{size}
and a.alert_source_code = #{alertSourceCode}
</if>
<if
test=
"data
!= null and data != 'address' and lift == 'ascend'
"
>
order by
#{data} ASC
limit #{current},#{size}
<if
test=
"data
== 'address' and data != null and lift != null
"
>
order by
CONVERT(address USING 'gbk') ${lift}
limit #{current},#{size}
</if>
<if
test=
"data != null and data != 'address' and lift
== 'descend'
"
>
order by
#{data} DESC
limit #{current},#{size}
<if
test=
"data != null and data != 'address' and lift
!= null
"
>
order by
${data} ${lift}
limit #{current},#{size}
</if>
<if
test=
"data == null "
>
order by call_time DESC limit #{current},#{size}
order by
a.
call_time DESC limit #{current},#{size}
</if>
</where>
</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 @
bafa05be
...
...
@@ -178,6 +178,14 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
split
[
0
]
=
"alertStatus"
;
}
}
if
(
split
[
1
]
!=
null
){
if
(
split
[
1
].
equals
(
"ascend"
)){
split
[
1
]
=
"ASC"
;
}
if
(
split
[
1
].
equals
(
"descend"
)){
split
[
1
]
=
"DESC"
;
}
}
String
data
=
split
!=
null
?
RedisKey
.
humpToLine
(
split
[
0
])
:
null
;
...
...
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