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
15c3430d
Commit
15c3430d
authored
Apr 10, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):设备数据过滤;增加为空字符串的情况
parent
3fd52a14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+14
-13
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
View file @
15c3430d
...
...
@@ -1146,22 +1146,22 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
String
queryType
=
map
.
getString
(
"QUERY_TYPE"
);
if
(!
ObjectUtils
.
isEmpty
(
queryType
))
{
//
查询 安装告知【可告知设备列表】【USE_UNIT_CREDIT_CODE=== null
】
//
查询 安装告知【可告知设备列表】【USE_UNIT_CREDIT_CODE=== null || ""
】
if
(
ValidationUtil
.
equals
(
queryType
,
"AZ"
))
{
BoolQueryBuilder
azBuilder
=
QueryBuilders
.
boolQuery
();
azBuilder
.
mustNot
(
QueryBuilders
.
existsQuery
(
"USE_UNIT_CREDIT_CODE
"
));
boolMust
.
must
(
azBuilder
);
BoolQueryBuilder
nullOrEmptyQuery
=
QueryBuilders
.
boolQuery
()
.
mustNot
(
QueryBuilders
.
wildcardQuery
(
"USE_UNIT_CREDIT_CODE"
,
"*
"
));
boolMust
.
must
(
nullOrEmptyQuery
);
}
else
if
(
ValidationUtil
.
equals
(
queryType
,
"WB"
))
{
// 查询 维保备案【可绑定设备列表】【(EQU_STATE=== null)】
BoolQueryBuilder
wbBuilder
=
QueryBuilders
.
boolQuery
();
wbBuilder
.
mustNot
(
QueryBuilders
.
existsQuery
(
"EQU_STATE
"
));
boolMust
.
must
(
wbBuilder
);
// 查询 维保备案【可绑定设备列表】【(EQU_STATE=== null
|| ""
)】
BoolQueryBuilder
nullOrEmptyQuery
=
QueryBuilders
.
boolQuery
()
.
mustNot
(
QueryBuilders
.
wildcardQuery
(
"EQU_STATE"
,
"*
"
));
boolMust
.
must
(
nullOrEmptyQuery
);
}
else
if
(!
ObjectUtils
.
isEmpty
(
queryType
)
&&
ValidationUtil
.
equals
(
queryType
,
"SY"
))
{
//
查询 使用登记【可选设备列表】【EQU_STATUS=== null
&& (USE_ORG_CODE ==="" || null)】
BoolQueryBuilder
syBuilder
=
QueryBuilders
.
boolQuery
();
syBuilder
.
mustNot
(
QueryBuilders
.
existsQuery
(
"EQU_STATE"
));
syBuilder
.
mustNot
(
QueryBuilders
.
existsQuery
(
"USE_ORG_CODE
"
));
boolMust
.
must
(
syBuilder
);
//
查询 使用登记【可选设备列表】【(EQU_STATUS=== null || "" )
&& (USE_ORG_CODE ==="" || null)】
BoolQueryBuilder
nullOrEmptyQuery
=
QueryBuilders
.
boolQuery
()
.
mustNot
(
QueryBuilders
.
wildcardQuery
(
"EQU_STATE"
,
"*"
))
.
mustNot
(
QueryBuilders
.
wildcardQuery
(
"USE_ORG_CODE"
,
"*
"
));
boolMust
.
must
(
nullOrEmptyQuery
);
}
}
...
...
@@ -1280,6 +1280,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
pBuilder
.
must
(
QueryBuilders
.
wildcardQuery
(
"USE_INNER_CODE"
,
"*"
+
test
.
toLowerCase
()
+
"*"
));
boolMust
.
must
(
pBuilder
);
}
System
.
err
.
println
(
boolMust
);
builder
.
query
(
boolMust
);
builder
.
sort
(
"REC_DATE"
,
SortOrder
.
DESC
);
builder
.
from
((
pageNumber
-
1
)
*
size
);
...
...
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