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
6a217644
Commit
6a217644
authored
Oct 13, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
99099858
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+8
-3
LatentDangerMapper.xml
...anger/src/main/resources/db/mapper/LatentDangerMapper.xml
+3
-3
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/service/impl/LatentDangerServiceImpl.java
View file @
6a217644
...
...
@@ -83,6 +83,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
import
static
com
.
yeejoin
.
amos
.
latentdanger
.
business
.
util
.
RandomUtil
.
buildOrderNo
;
import
static
org
.
typroject
.
tyboot
.
core
.
foundation
.
context
.
RequestContext
.
getProduct
;
...
...
@@ -1800,9 +1801,13 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
}
}
if
(!
ValidationUtil
.
isEmpty
(
pageParam
.
get
(
"dangerState"
)))
{
List
<
String
>
state
=
Lists
.
newArrayList
(((
String
)
pageParam
.
get
(
"dangerState"
)).
split
(
","
));
pageParam
.
put
(
"dangerState"
,
state
);
if
(!
ValidationUtil
.
isEmpty
(
pageParam
.
get
(
"dangerState"
))
||
pageParam
.
get
(
"dangerState"
)
==
""
)
{
if
(
ValidationUtil
.
isEmpty
(
pageParam
.
get
(
"dangerState"
)))
{
pageParam
.
put
(
"dangerState"
,
null
);
}
else
{
List
<
String
>
state
=
Lists
.
newArrayList
(((
String
)
pageParam
.
get
(
"dangerState"
)).
split
(
","
));
pageParam
.
put
(
"dangerState"
,
state
);
}
}
if
(!
ValidationUtil
.
isEmpty
(
dangerIdList
))
{
pageParam
.
put
(
"dangerIds"
,
dangerIdList
);
...
...
amos-boot-system-latentdanger/src/main/resources/db/mapper/LatentDangerMapper.xml
View file @
6a217644
...
...
@@ -429,7 +429,7 @@
INTERVAL 8 HOUR)), ld.reform_limit_date ) -- 截止日期到当天早上8:00:00分钟数
AND ld.overtime_state = 0
AND ld.deleted = 0
<if
test=
"dangerState != null and dangerState != ''"
>
<if
test=
"dangerState != null and dangerState != ''"
>
AND ld.danger_state in (#{dangerState});
</if>
...
...
@@ -972,7 +972,7 @@
#{id}
</foreach>
</if>
<if
test=
"key == 'dangerState' and value != null"
>
<if
test=
"key == 'dangerState' and value != null
and !value.isEmpty()
"
>
and a.danger_state IN
<foreach
collection=
"value"
item=
"state"
open=
"("
separator=
","
close=
")"
>
#{state}
...
...
@@ -993,7 +993,7 @@
<if
test=
"key == 'reformType' and value != null and value != ''"
>
and a.reform_type = #{value}
</if>
<if
test=
"key == 'structureIdList' and value != null"
>
<if
test=
"key == 'structureIdList' and value != null
and value != ''
"
>
and a.structure_id in
<foreach
collection=
"value"
item=
"structureId"
open=
"("
separator=
","
close=
")"
>
#{structureId}
...
...
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