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
cddb32a1
Commit
cddb32a1
authored
Sep 19, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refeat(jyjc): 报检规则4.0开发
1.游乐设施可筛选空或者和指定等级的
parent
e7a9c4bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+9
-2
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
cddb32a1
...
...
@@ -1498,7 +1498,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
setFilterByIndefinite
(
map
,
type
,
companyCode
,
boolMust
);
// 设备种类编码
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"EQU_LIST_CODE"
)))
{
boolMust
.
must
(
QueryBuilders
.
term
s
Query
(
"EQU_LIST_CODE"
,
QueryParser
.
escape
(
map
.
getString
(
"EQU_LIST_CODE"
))));
boolMust
.
must
(
QueryBuilders
.
termQuery
(
"EQU_LIST_CODE"
,
QueryParser
.
escape
(
map
.
getString
(
"EQU_LIST_CODE"
))));
}
// 设备类别
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"EQU_CATEGORY_CODE"
)))
{
...
...
@@ -1530,7 +1530,14 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
// 大型游乐设施时按照设备分类过滤
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"equipTag1"
))
&&
EquipmentClassifityEnum
.
YLSS
.
getCode
().
equals
(
map
.
getString
(
"EQU_LIST_CODE"
)))
{
boolMust
.
must
(
QueryBuilders
.
termQuery
(
"tag1.keyword"
,
QueryParser
.
escape
(
map
.
getString
(
"equipTag1"
))));
// 筛选时取本级及空的
String
equipTag1
=
map
.
getString
(
"equipTag1"
);
BoolQueryBuilder
orBuilder
=
QueryBuilders
.
boolQuery
();
orBuilder
.
should
(
QueryBuilders
.
termQuery
(
"tag1.keyword"
,
equipTag1
));
orBuilder
.
should
(
QueryBuilders
.
boolQuery
().
mustNot
(
QueryBuilders
.
existsQuery
(
"tag1"
)));
orBuilder
.
should
(
QueryBuilders
.
boolQuery
().
must
(
QueryBuilders
.
matchPhraseQuery
(
"tag1"
,
""
)));
orBuilder
.
minimumShouldMatch
(
1
);
boolMust
.
must
(
orBuilder
);
}
// 固定式压力容器按照是否球罐过滤
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"equipTag1"
))
&&
BizCommonConstant
.
EQU_CATEGORY_CODE_GDYLRQ
.
equals
(
map
.
getString
(
"EQU_CATEGORY_CODE"
)))
{
...
...
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