Commit 73ac7a0e authored by chenzhao's avatar chenzhao

修改bug

parent 8dfa5346
...@@ -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 = "getkeySiteCompanyDetailTree") //固定下拉内容
@ApiModelProperty(value = "所属单位/部门id") @ApiModelProperty(value = "所属单位/部门id")
private String belongName; private String belongName;
......
...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment