Commit 0d938e78 by zhangkb

判断获取用户授予其他机构信息不为空条件

parent 24e4b10a
......@@ -83,7 +83,7 @@ public class TagCtrl {
orgIds.add(deptIdPath);
//获取当前用户被授予其他机构
List<Long> deptList = GrantedAuthHelper.getUserGrantedOrgs();
if(!deptList.isEmpty() && !"null".equals(deptList) && deptList!=null) {
if(deptList!=null) {
for(Long dept : deptList) {
orgIds.add(String.valueOf(dept));
}
......@@ -104,7 +104,7 @@ public class TagCtrl {
orgIds.add(deptIdPath);
//获取当前用户被授予其他机构
List<Long> deptList = GrantedAuthHelper.getUserGrantedOrgs();
if(!deptList.isEmpty() && !"null".equals(deptList) && deptList!=null) {
if(deptList!=null) {
for(Long dept : deptList) {
orgIds.add(String.valueOf(dept));
}
......@@ -130,7 +130,7 @@ public class TagCtrl {
orgIds.add(deptIdPath);
//获取当前用户被授予其他机构
List<Long> deptList = GrantedAuthHelper.getUserGrantedOrgs();
if(!deptList.isEmpty() && !"null".equals(deptList) && deptList!=null) {
if(deptList!=null) {
for(Long dept : deptList) {
orgIds.add(String.valueOf(dept));
}
......@@ -154,7 +154,7 @@ public class TagCtrl {
orgIds.add(deptIdPath);
//获取当前用户被授予其他机构
List<Long> deptList = GrantedAuthHelper.getUserGrantedOrgs();
if(!deptList.isEmpty() && !"null".equals(deptList) && deptList!=null) {
if(deptList!=null) {
for(Long dept : deptList) {
orgIds.add(String.valueOf(dept));
}
......@@ -193,7 +193,7 @@ public class TagCtrl {
orgIds.add(deptIdPath);
//获取当前用户被授予其他机构
List<Long> deptList = GrantedAuthHelper.getUserGrantedOrgs();
if(!deptList.isEmpty() && !"null".equals(deptList) && deptList!=null) {
if(deptList!=null) {
for(Long dept : deptList) {
orgIds.add(String.valueOf(dept));
}
......
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