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
74e5409d
Commit
74e5409d
authored
Sep 30, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
3aff0288
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
DynamicFormInstanceMapper.xml
...i/src/main/resources/mapper/DynamicFormInstanceMapper.xml
+9
-0
ESAlertCalledService.java
...oot/module/jcs/biz/service/impl/ESAlertCalledService.java
+4
-4
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/DynamicFormInstanceMapper.xml
View file @
74e5409d
...
@@ -225,6 +225,15 @@
...
@@ -225,6 +225,15 @@
cb_duty_shift ds
cb_duty_shift ds
where
where
d.instanceId = ps.instance_id
d.instanceId = ps.instance_id
and d.deptId not in (SELECT
`cb_org_usr`.`sequence_nbr`
FROM
`cb_org_usr`
WHERE
(
( `cb_org_usr`.`biz_org_code` LIKE concat( ( SELECT `cb_org_usr`.`biz_org_code` FROM `cb_org_usr` WHERE ( `cb_org_usr`.`sequence_nbr` = 1435847345328660481 ) ), '%' ) )
AND ( `cb_org_usr`.`biz_org_type` = 'DEPARTMENT' )
))
and ps.shift_id = ds.sequence_nbr
and ps.shift_id = ds.sequence_nbr
and ps.duty_date = #{dutyDate}
and ps.duty_date = #{dutyDate}
<if
test=
"shiftId != null and shiftId != ''"
>
<if
test=
"shiftId != null and shiftId != ''"
>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ESAlertCalledService.java
View file @
74e5409d
...
@@ -312,7 +312,6 @@ public class ESAlertCalledService {
...
@@ -312,7 +312,6 @@ public class ESAlertCalledService {
//过滤120警情
//过滤120警情
BoolQueryBuilder
qb6
=
QueryBuilders
.
boolQuery
()
BoolQueryBuilder
qb6
=
QueryBuilders
.
boolQuery
()
.
mustNot
(
QueryBuilders
.
termQuery
(
"alertTypeCode"
,
"1214"
));
.
mustNot
(
QueryBuilders
.
termQuery
(
"alertTypeCode"
,
"1214"
));
boolMust
.
should
(
qb6
);
if
(!
ValidationUtil
.
isEmpty
(
alertCalledVo
.
getAlertFormValue
())){
if
(!
ValidationUtil
.
isEmpty
(
alertCalledVo
.
getAlertFormValue
())){
List
<
AlertFormValue
>
alertFormValue
=
alertCalledVo
.
getAlertFormValue
();
List
<
AlertFormValue
>
alertFormValue
=
alertCalledVo
.
getAlertFormValue
();
...
@@ -343,8 +342,9 @@ public class ESAlertCalledService {
...
@@ -343,8 +342,9 @@ public class ESAlertCalledService {
*/
*/
//
boolMust.minimumShouldMatch(1);//至少满足一个
boolMust
.
minimumShouldMatch
(
1
);
//至少满足一个
boolMustAll
.
must
(
boolMust
);
boolMustAll
.
must
(
boolMust
);
boolMustAll
.
must
(
qb6
);
...
@@ -456,6 +456,7 @@ public class ESAlertCalledService {
...
@@ -456,6 +456,7 @@ public class ESAlertCalledService {
boolMust
.
minimumShouldMatch
(
1
);
//至少满足一个
boolMust
.
minimumShouldMatch
(
1
);
//至少满足一个
boolMustAll
.
must
(
boolMust
);
boolMustAll
.
must
(
boolMust
);
boolMustAll
.
must
(
qb4
);
...
@@ -464,10 +465,9 @@ public class ESAlertCalledService {
...
@@ -464,10 +465,9 @@ public class ESAlertCalledService {
// 分页
// 分页
.
withPageable
(
PageRequest
.
of
(
current
,
size
))
.
withPageable
(
PageRequest
.
of
(
current
,
size
))
// 排序
// 排序
//
.withSort(SortBuilders.fieldSort("callTimeLong").order(SortOrder.DESC))
.
withSort
(
SortBuilders
.
fieldSort
(
"callTimeLong"
).
order
(
SortOrder
.
DESC
))
//过滤条件
//过滤条件
.
withQuery
(
boolMustAll
)
.
withQuery
(
boolMustAll
)
.
withQuery
(
qb4
)
;
;
...
...
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