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
c611340f
Commit
c611340f
authored
Jan 27, 2022
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐患app列表bug修改
parent
4917cae2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
9 deletions
+25
-9
LatentDangerServiceImpl.java
...patrol/business/service/impl/LatentDangerServiceImpl.java
+4
-5
LatentDangerMapper.xml
...atrol/src/main/resources/db/mapper/LatentDangerMapper.xml
+21
-4
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/LatentDangerServiceImpl.java
View file @
c611340f
...
...
@@ -615,12 +615,11 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
for
(
LatentDangerBo
bo
:
dangerList
)
{
List
<
JSONObject
>
filterTaskList
=
taskList
.
stream
().
filter
(
t
->
t
.
getString
(
"businessKey"
).
equals
(
bo
.
getBusinessKey
())).
collect
(
Collectors
.
toList
());
if
(
ValidationUtil
.
isEmpty
(
filterTaskList
))
{
continue
;
}
JSONObject
task
=
filterTaskList
.
get
(
0
);
LatentDangerListVo
vo
=
new
LatentDangerListVo
();
vo
.
setTaskId
(
task
.
getString
(
"id"
));
if
(!
ValidationUtil
.
isEmpty
(
filterTaskList
))
{
JSONObject
task
=
filterTaskList
.
get
(
0
);
vo
.
setTaskId
(
task
.
getString
(
"id"
));
}
vo
.
setDangerId
(
bo
.
getId
());
vo
.
setOvertimeState
(
bo
.
getOvertimeState
());
vo
.
setDangerName
(
bo
.
getDangerName
());
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/LatentDangerMapper.xml
View file @
c611340f
...
...
@@ -873,10 +873,18 @@
p_latent_danger pld
WHERE 1=1
<if
test=
"businessKeys != null and businessKeys.size > 0"
>
and pld.business_key IN
<foreach
collection =
"businessKeys"
item =
"businessKey"
index=
"index"
open =
"("
close =
")"
separator =
","
>
and (
pld.business_key IN
<foreach
collection=
"businessKeys"
item=
"businessKey"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{businessKey}
</foreach>
<if
test=
"latentDangerListParam.dangerState != null and latentDangerListParam.dangerState == 5 or latentDangerListParam.dangerState == 6"
>
or pld.danger_state=#{latentDangerListParam.dangerState}
</if>
<if
test=
"latentDangerListParam.dangerState == null"
>
or pld.danger_state = 5 or pld.danger_state = 6
</if>
)
</if>
<if
test=
"latentDangerListParam.dangerLevel != null and latentDangerListParam.dangerLevel != -1"
>
and pld.danger_level=#{latentDangerListParam.dangerLevel}
...
...
@@ -906,10 +914,19 @@
p_latent_danger pld
WHERE 1=1
<if
test=
"businessKeys != null and businessKeys.size > 0"
>
and pld.business_key IN
<foreach
collection =
"businessKeys"
item =
"businessKey"
index=
"index"
open =
"("
close =
")"
separator =
","
>
and (
pld.business_key IN
<foreach
collection=
"businessKeys"
item=
"businessKey"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{businessKey}
</foreach>
<if
test=
"latentDangerListParam.dangerState != null and latentDangerListParam.dangerState == 5 or latentDangerListParam.dangerState == 6"
>
or pld.danger_state=#{latentDangerListParam.dangerState}
</if>
<if
test=
"latentDangerListParam.dangerState == null"
>
or pld.danger_state = 5 or pld.danger_state = 7
</if>
)
</if>
<if
test=
"latentDangerListParam.dangerLevel != null and latentDangerListParam.dangerLevel != -1"
>
and pld.danger_level=#{latentDangerListParam.dangerLevel}
...
...
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