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
73ac7a0e
Commit
73ac7a0e
authored
Jan 26, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
8dfa5346
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
KeySiteExcleDto.java
...join/amos/boot/module/common/api/dto/KeySiteExcleDto.java
+1
-1
DataSourcesImpl.java
...mos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
+19
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/KeySiteExcleDto.java
View file @
73ac7a0e
...
@@ -29,7 +29,7 @@ public class KeySiteExcleDto implements Serializable {
...
@@ -29,7 +29,7 @@ public class KeySiteExcleDto implements Serializable {
private
String
name
;
private
String
name
;
@ExcelProperty
(
value
=
"所属单位/部门id"
,
index
=
1
)
@ExcelProperty
(
value
=
"所属单位/部门id"
,
index
=
1
)
@ExplicitConstraint
(
indexNum
=
1
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getCompanyDetailTree"
)
//固定下拉内容
@ExplicitConstraint
(
indexNum
=
1
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"get
keySite
CompanyDetailTree"
)
//固定下拉内容
@ApiModelProperty
(
value
=
"所属单位/部门id"
)
@ApiModelProperty
(
value
=
"所属单位/部门id"
)
private
String
belongName
;
private
String
belongName
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
View file @
73ac7a0e
...
@@ -175,6 +175,9 @@ public class DataSourcesImpl implements DataSources {
...
@@ -175,6 +175,9 @@ public class DataSourcesImpl implements DataSources {
case
"getContactUser"
:
case
"getContactUser"
:
str
=
getContactUser
();
str
=
getContactUser
();
break
;
break
;
case
"getKeySiteCompanyDetailTree"
:
str
=
getKeySiteCompanyDetailTree
();
break
;
}
}
}
}
return
str
;
return
str
;
...
@@ -400,6 +403,22 @@ public class DataSourcesImpl implements DataSources {
...
@@ -400,6 +403,22 @@ public class DataSourcesImpl implements DataSources {
return
str
;
return
str
;
}
}
private
String
[]
getKeySiteCompanyDetailTree
()
throws
Exception
{
// 导出模板增加权限
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
// 权限处理
PermissionInterceptorContext
.
setDataAuthRule
(
"key_site_info"
);
List
<
OrgMenuDto
>
orgUsrTree
=
iOrgUsrService
.
companyTreeByUserAndType
(
reginParams
,
OrgPersonEnum
.
公司
.
getKey
());
// List<OrgMenuDto> orgUsrTree = orgUsrService.getTree(null, orgUsrService.getCompanyDetailTree(),
// OrgUsr.class.getName(), "getSequenceNbr", 2, "getBizOrgName", "getParentId", "getBizOrgType");
//
List
<
String
>
stringList
=
new
ArrayList
<
String
>();
initCompanyList
(
orgUsrTree
,
stringList
);
String
[]
str
=
stringList
.
toArray
(
new
String
[
stringList
.
size
()]);
return
str
;
}
private
String
[]
getparent
()
throws
Exception
{
private
String
[]
getparent
()
throws
Exception
{
...
...
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