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
390f9ce6
Commit
390f9ce6
authored
Feb 26, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加过滤流动时起重机械可做首检
parent
09f26209
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+5
-3
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 @
390f9ce6
...
...
@@ -1344,7 +1344,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
String
test
=
QueryParser
.
escape
(
map
.
getString
(
"USE_INNER_CODE"
));
boolMust
.
must
(
QueryBuilders
.
matchPhraseQuery
(
"USE_INNER_CODE"
,
test
));
}
this
.
setFilterOfInFlowing
(
boolMust
,
map
.
getString
(
"EQU_LIST_CODE"
),
map
.
getString
(
"inspectionType"
));
this
.
setFilterOfInFlowing
(
boolMust
,
map
.
getString
(
"EQU_LIST_CODE"
),
map
.
getString
(
"inspectionType"
)
,
map
.
getString
(
"EQU_CATEGORY_CODE"
)
);
builder
.
query
(
boolMust
);
builder
.
sort
(
"REC_DATE"
,
SortOrder
.
DESC
);
builder
.
from
((
pageNumber
-
1
)
*
size
);
...
...
@@ -1383,13 +1383,15 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
* 过滤条件去掉流程中的设备,
*
* @param boolMust 条件
* @param equCategoryCode
*/
private
void
setFilterOfInFlowing
(
BoolQueryBuilder
boolMust
,
String
equListCode
,
String
inspectionType
)
{
private
void
setFilterOfInFlowing
(
BoolQueryBuilder
boolMust
,
String
equListCode
,
String
inspectionType
,
String
equCategoryCode
)
{
Set
<
String
>
records
=
this
.
getEquipInFlowing
();
if
(
records
!=
null
&&
!
records
.
isEmpty
())
{
boolMust
.
mustNot
(
QueryBuilders
.
termsQuery
(
"SEQUENCE_NBR.keyword"
,
records
));
}
if
(
"5000"
.
equals
(
equListCode
)
&&
JYJCBusinessTypeEnum
.
SCJY
.
getCode
().
equals
(
inspectionType
))
{
// 流动时起重机械及厂车可直接做首检
if
((
"5000"
.
equals
(
equListCode
)
||
"4400"
.
equals
(
equCategoryCode
))
&&
JYJCBusinessTypeEnum
.
SCJY
.
getCode
().
equals
(
inspectionType
))
{
boolMust
.
must
(
QueryBuilders
.
termQuery
(
"IS_INTO_MANAGEMENT"
,
false
));
}
else
{
BoolQueryBuilder
shouldBuilder
=
QueryBuilders
.
boolQuery
();
...
...
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