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
ff8b79a4
Commit
ff8b79a4
authored
Feb 27, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.管辖机构树:按照当前登录人单位类型返回管辖机构树,公司类型人员返回全部树。监管机构返回当前登录人机构及一下(只考虑非审批机构使用)
parent
b882406d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+21
-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 @
ff8b79a4
...
...
@@ -13,6 +13,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.EquipmentClassifyDto;
import
com.yeejoin.amos.boot.module.jg.api.dto.UseFlagParamDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgRegistrationHistory
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationManage
;
import
com.yeejoin.amos.boot.module.jg.api.enums.CompanyTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationMapper
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService
;
import
com.yeejoin.amos.boot.module.jg.biz.service.ICommonService
;
...
...
@@ -446,6 +447,26 @@ public class CommonController extends BaseController {
/**
* 获取当前登录人单位及以下管辖分局树
*
* @return result
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getOrgTreeByCompanyLevel"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"按照当前登录人单位类型返回管辖机构树"
,
notes
=
"按照当前登录人单位类型返回管辖机构树,"
)
public
ResponseModel
<
Object
>
getOrgTreeByCompanyLevel
()
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
if
(
reginParams
.
getCompany
().
getLevel
().
equals
(
BaseController
.
COMPANY_TYPE_COMPANY
))
{
// 公司类型人员返回全部树
return
getCreatTree
();
}
else
{
// 监管机构返回当前登录人机构及一下(只考虑非审批机构使用)
return
ResponseHelper
.
buildResponse
(
commonService
.
loginUnitAndBelowGetTree
(
orgCode
));
}
}
/**
* 获取管辖分局树
*
* @return
...
...
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