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
b2cfc526
Commit
b2cfc526
authored
Dec 28, 2023
by
liufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:设备列表查询接口
parent
9383d3f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+15
-12
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 @
b2cfc526
...
...
@@ -553,16 +553,18 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
// 根据当前登录用户类型及管辖机构筛选条件添加对应参数
if
(!
ValidationUtil
.
isEmpty
(
type
)
&&
type
.
contains
(
"使用单位"
))
{
if
(
ValidationUtil
.
isEmpty
(
map
.
getString
(
"USE_UNIT_CREDIT_CODE"
))){
map
.
put
(
"USE_UNIT_CREDIT_CODE"
,
companyCode
);
if
(
ObjectUtils
.
isEmpty
(
map
.
getString
(
"SEQUENCE_NBR"
))
&&
ObjectUtils
.
isEmpty
(
map
.
getString
(
"useUnitCreditCode"
)))
{
if
(!
ValidationUtil
.
isEmpty
(
type
)
&&
type
.
contains
(
"使用单位"
))
{
if
(
ValidationUtil
.
isEmpty
(
map
.
getString
(
"USE_UNIT_CREDIT_CODE"
))){
map
.
put
(
"USE_UNIT_CREDIT_CODE"
,
companyCode
);
}
}
else
if
(!
ValidationUtil
.
isEmpty
(
type
)
&&
type
.
contains
(
"安装改造维修单位"
))
{
map
.
put
(
"USC_UNIT_CREDIT_CODE"
,
companyCode
);
}
else
{
result
.
setRecords
(
new
ArrayList
<>());
result
.
setTotal
(
0
);
return
result
;
}
}
else
if
(!
ValidationUtil
.
isEmpty
(
type
)
&&
type
.
contains
(
"安装改造维修单位"
))
{
map
.
put
(
"USC_UNIT_CREDIT_CODE"
,
companyCode
);
}
else
{
result
.
setRecords
(
new
ArrayList
<>());
result
.
setTotal
(
0
);
return
result
;
}
// 默认条件【STATUS==="" || null】
...
...
@@ -642,11 +644,12 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
ubuilder
.
minimumShouldMatch
(
1
);
boolMust
.
must
(
ubuilder
);
}
else
{
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"USE_UNIT_CREDIT_CODE"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"USE_UNIT_CREDIT_CODE"
))
||
!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"useUnitCreditCode"
))
)
{
BoolQueryBuilder
uuccBuilder
=
QueryBuilders
.
boolQuery
();
String
param
=
QueryParser
.
escape
(
map
.
getString
(
"USE_UNIT_CREDIT_CODE"
));
String
uucc
=
!
ValidationUtil
.
isEmpty
(
map
.
getString
(
"USE_UNIT_CREDIT_CODE"
))
?
map
.
getString
(
"USE_UNIT_CREDIT_CODE"
)
:
map
.
getString
(
"useUnitCreditCode"
);
String
param
=
QueryParser
.
escape
(
uucc
);
param
=
param
.
contains
(
"_"
)
?
param
.
split
(
"_"
)[
0
]
:
param
;
uuccBuilder
.
must
(
QueryBuilders
.
matchPhraseQuery
(
"USE_UNIT_CREDIT_CODE
"
,
param
));
uuccBuilder
.
must
(
QueryBuilders
.
termQuery
(
"USE_UNIT_CREDIT_CODE.keyword
"
,
param
));
boolMust
.
must
(
uuccBuilder
);
}
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"USC_UNIT_CREDIT_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