Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
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
王衍超
cloud-fb
Commits
2b601680
Commit
2b601680
authored
Jun 07, 2021
by
shiwenbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询部门接口
parent
33ec78df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
21 deletions
+26
-21
DinasCommonController.java
...in/java/com/xyst/dinas/biz/web/DinasCommonController.java
+10
-5
SensitiveInfoLook.jmx
...n/resources/com/xyst/dinas/biz/auth/SensitiveInfoLook.jmx
+16
-16
No files found.
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/DinasCommonController.java
View file @
2b601680
...
...
@@ -58,11 +58,16 @@ public class DinasCommonController {
}
else
{
String
departmentId
=
param
.
getString
(
"id"
);
Boolean
enable
=
param
.
getBoolean
(
"enable"
);
KObject
rootLevel
=
departmentService
.
getByCode
(
"quangongsi"
);
KObject
regionalLevel
=
departmentService
.
getById
(
UUID
.
fromString
(
departmentId
));
list
.
addAll
(
departmentService
.
getChildren
(
UUID
.
fromString
(
departmentId
),
enable
));
list
.
add
(
rootLevel
);
list
.
add
(
regionalLevel
);
String
type
=
param
.
optString
(
"type"
,
"REGIONAL_COMPANY"
);
if
(
type
.
equals
(
"REGIONAL_COMPANY"
))
{
KObject
rootLevel
=
departmentService
.
getByCode
(
"quangongsi"
);
KObject
regionalLevel
=
departmentService
.
getById
(
UUID
.
fromString
(
departmentId
));
list
.
addAll
(
departmentService
.
getChildren
(
UUID
.
fromString
(
departmentId
),
enable
));
list
.
add
(
rootLevel
);
list
.
add
(
regionalLevel
);
}
else
if
(
type
.
equals
(
"GROUP_COMPANY"
))
{
list
.
addAll
(
departmentService
.
getAllEnable
());
}
}
Map
<
UUID
,
String
>
deptTitlePath
=
departmentService
.
getTitlePath
(
list
);
List
<
Map
<
String
,
Object
>>
result
=
deptAddTitlePathProperty
(
list
,
deptTitlePath
);
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/auth/SensitiveInfoLook.jmx
View file @
2b601680
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-privilege"
>
<specification>
1.0
</specification>
<id>
b9e8c287-d87e-4ab2-b23f-43e9c47abf48
</id>
<name>
com.xyst.dinas.biz.auth.SensitiveInfoLook
</name>
<title>
查看
</title>
<define>
bcp.authz.privilege
</define>
<define-version>
1.0.0
</define-version>
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
其他/敏感信息
</m:category>
<m:seq>
0
</m:seq>
</m:privilege>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-privilege"
>
<specification>
1.0
</specification>
<id>
b9e8c287-d87e-4ab2-b23f-43e9c47abf48
</id>
<name>
com.xyst.dinas.biz.auth.SensitiveInfoLook
</name>
<title>
查看
</title>
<define>
bcp.authz.privilege
</define>
<define-version>
1.0.0
</define-version>
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
其他/敏感信息
</m:category>
<m:seq>
0
</m:seq>
</m:privilege>
</content>
</metadata>
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