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
12ea4e85
Commit
12ea4e85
authored
Jan 30, 2024
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安装告知 属地监管部门组件替换
parent
b84b271a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+33
-0
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/controller/CommonController.java
View file @
12ea4e85
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
...
...
@@ -233,6 +234,38 @@ public class CommonController extends BaseController {
/**
* 获取管辖分局树
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getCreatTreeByInstallation"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取管辖分局树安装告知使用"
,
notes
=
"获取管辖分局树安装告知使用"
)
public
ResponseModel
<
Object
>
getCreatTreeByInstallation
(
String
county
)
{
List
<
LinkedHashMap
>
creatTree
=
commonService
.
getCreatTree
();
String
code
=
county
.
split
(
"_"
)[
0
];
List
<
LinkedHashMap
>
infoByCounty
=
getInfoByCounty
(
code
,
creatTree
);
return
ResponseHelper
.
buildResponse
(
infoByCounty
);
}
private
List
<
LinkedHashMap
>
getInfoByCounty
(
String
county
,
List
<
LinkedHashMap
>
children
)
{
for
(
LinkedHashMap
item
:
children
)
{
if
(
item
.
get
(
"level"
).
toString
().
equals
(
"county"
)
&&
item
.
get
(
"companyCode"
).
toString
().
equals
(
county
))
{
return
(
List
<
LinkedHashMap
>)
item
.
get
(
"children"
);
}
else
{
if
(!
ObjectUtils
.
isEmpty
(
item
.
get
(
"children"
)))
{
List
<
LinkedHashMap
>
children1
=
getInfoByCounty
(
county
,
(
List
<
LinkedHashMap
>)
item
.
get
(
"children"
));
if
(!
CollectionUtils
.
isEmpty
(
children1
))
{
return
children1
;
}
}
}
}
return
new
ArrayList
<>();
}
/**
* 公共转办接口
* /jg/common/transfer
*/
...
...
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