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
efb54c39
Commit
efb54c39
authored
Aug 02, 2022
by
helinlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开发特种设备通讯录接口
parent
5becc960
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
InspectionServiceImpl.java
...ot/module/tzs/biz/service/impl/InspectionServiceImpl.java
+11
-4
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/InspectionServiceImpl.java
View file @
efb54c39
...
@@ -51,7 +51,7 @@ public class InspectionServiceImpl implements InspectionService {
...
@@ -51,7 +51,7 @@ public class InspectionServiceImpl implements InspectionService {
List
<
String
>
companyIds
=
idxFeignService
.
getTreeChildIds
(
dimensionTableId
,
selectValue
).
getResult
();
List
<
String
>
companyIds
=
idxFeignService
.
getTreeChildIds
(
dimensionTableId
,
selectValue
).
getResult
();
Collection
<
CompanyModel
>
companyModels
=
Privilege
.
companyClient
.
companyTreeWithoutAuth
().
getResult
();
Collection
<
CompanyModel
>
companyModels
=
Privilege
.
companyClient
.
companyTreeWithoutAuth
().
getResult
();
Map
<
String
,
String
>
companyMap
=
new
HashMap
<>();
Map
<
String
,
String
>
companyMap
=
new
HashMap
<>();
convertCompanyTreeToMap
(
companyModels
,
companyMap
);
convertCompanyTreeToMap
(
companyModels
,
null
,
companyMap
);
IPage
<
IdxUjerDto
>
idxUjerPage
=
new
Page
<>(
current
,
size
);
IPage
<
IdxUjerDto
>
idxUjerPage
=
new
Page
<>(
current
,
size
);
IPage
<
IdxUjerDto
>
page
=
idxUjerMapper
.
getPage
(
idxUjerPage
,
companyIds
,
bizType
);
IPage
<
IdxUjerDto
>
page
=
idxUjerMapper
.
getPage
(
idxUjerPage
,
companyIds
,
bizType
);
List
<
IdxUjerDto
>
records
=
page
.
getRecords
();
List
<
IdxUjerDto
>
records
=
page
.
getRecords
();
...
@@ -64,13 +64,20 @@ public class InspectionServiceImpl implements InspectionService {
...
@@ -64,13 +64,20 @@ public class InspectionServiceImpl implements InspectionService {
return
page
;
return
page
;
}
}
private
void
convertCompanyTreeToMap
(
Collection
<
CompanyModel
>
companyModels
,
Map
<
String
,
String
>
companyMap
)
{
private
void
convertCompanyTreeToMap
(
Collection
<
CompanyModel
>
companyModels
,
Collection
<
Map
<
String
,
Object
>>
children
,
Map
<
String
,
String
>
companyMap
)
{
if
(!
CollectionUtils
.
isEmpty
(
companyModels
))
{
if
(!
CollectionUtils
.
isEmpty
(
companyModels
))
{
for
(
CompanyModel
companyModel
:
companyModels
)
{
for
(
CompanyModel
companyModel
:
companyModels
)
{
if
(!
ObjectUtils
.
isEmpty
(
companyModel
))
{
if
(!
ObjectUtils
.
isEmpty
(
companyModel
))
{
companyMap
.
put
(
String
.
valueOf
(
companyModel
.
getSequenceNbr
()),
companyModel
.
getCompanyName
());
companyMap
.
put
(
String
.
valueOf
(
companyModel
.
getSequenceNbr
()),
companyModel
.
getCompanyName
());
Collection
<
CompanyModel
>
children
=
companyModel
.
getChildren
();
convertCompanyTreeToMap
(
null
,
(
Collection
<
Map
<
String
,
Object
>>)
companyModel
.
getChildren
(),
companyMap
);
convertCompanyTreeToMap
(
children
,
companyMap
);
}
}
}
if
(!
CollectionUtils
.
isEmpty
(
children
))
{
for
(
Map
<
String
,
Object
>
child
:
children
)
{
if
(!
ObjectUtils
.
isEmpty
(
child
))
{
companyMap
.
put
(
String
.
valueOf
(
child
.
get
(
"sequenceNbr"
)),
String
.
valueOf
(
child
.
get
(
"companyName"
)));
convertCompanyTreeToMap
(
null
,
(
Collection
<
Map
<
String
,
Object
>>)
child
.
get
(
"children"
),
companyMap
);
}
}
}
}
}
}
...
...
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