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
cbce39a9
Commit
cbce39a9
authored
Jul 06, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
726efbf6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
1 deletion
+37
-1
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+15
-0
JcsFeign.java
...src/main/java/com/yeejoin/equipmanage/fegin/JcsFeign.java
+10
-0
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+1
-1
JCSRemoteService.java
...om/yeejoin/equipmanage/service/impl/JCSRemoteService.java
+11
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgUsrController.java
View file @
cbce39a9
...
...
@@ -921,4 +921,18 @@ public class OrgUsrController extends BaseController {
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
getByOrgCode
(
bizOrgCode
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"无权限单位树"
,
notes
=
"无权限单位树"
)
@GetMapping
(
value
=
"/listCompanyTree"
)
public
ResponseModel
<
List
<
OrgUsr
>>
listCompanyTree
(
@RequestParam
(
required
=
false
)
String
orgType
)
throws
Exception
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
String
bizOrgCode
=
personIdentity
.
getBizOrgCode
();
List
<
OrgUsr
>
listByBizOrgTypeCode
=
iOrgUsrService
.
getListByBizOrgTypeCode
(
orgType
,
bizOrgCode
);
return
ResponseHelper
.
buildResponse
(
listByBizOrgTypeCode
);
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/fegin/JcsFeign.java
View file @
cbce39a9
...
...
@@ -172,4 +172,14 @@ public interface JcsFeign {
ResponseModel
<
Long
>
getMaintenanceId
(
@RequestParam
()
String
userId
);
/**
* 查询有权限的公司部门列表
*
* @param authKey 权限key
* @param orgTypes(多个逗号分隔) 为空默认查询公司和部门,COMPANY: 公司树 DEPARTMENT部门树
* @return ResponseModel<OrgUsrDto>
*/
@GetMapping
(
value
=
"/org-usr/listCompanyTree"
)
FeignClientResult
<
List
<
OrgUsrDto
>>
getlistCompanyTree
(
@RequestParam
(
required
=
false
)
String
orgType
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
cbce39a9
...
...
@@ -1281,7 +1281,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
}
Map
<
String
,
Long
>
countMap
=
iVideoService
.
getVideoCountMap
();
// 1.获取公司list
List
<
OrgUsrDto
>
orgUsrLists
=
jcsRemoteService
.
get
CompanyDeptListWithAuth
(
authKey
,
"COMPANY"
);
List
<
OrgUsrDto
>
orgUsrLists
=
jcsRemoteService
.
get
listCompanyTree
(
"COMPANY"
);
if
(
orgUsrLists
.
isEmpty
())
{
return
new
ArrayList
<>();
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/JCSRemoteService.java
View file @
cbce39a9
...
...
@@ -41,4 +41,15 @@ public class JCSRemoteService {
return
feignClientResult
.
getResult
();
}
/**
*
* 查询无权限的公司部门列表
*
* @param orgTypes(多个逗号分隔) 为空默认查询公司和部门,COMPANY: 公司树 DEPARTMENT部门树
* @return List<OrgUsrDto>
*/
public
List
<
OrgUsrDto
>
getlistCompanyTree
(
String
orgType
)
{
FeignClientResult
<
List
<
OrgUsrDto
>>
feignClientResult
=
jcsFeignClient
.
getlistCompanyTree
(
orgType
);
return
feignClientResult
.
getResult
();
}
}
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