|
@ -674,7 +674,6 @@ public class SysOrganizationService extends MybatisBaseService<SysOrganizationMa |
|
|
int i1 = orgPath.indexOf("/"); |
|
|
int i1 = orgPath.indexOf("/"); |
|
|
int i2 = orgPath.indexOf("/", i1 + 1); |
|
|
int i2 = orgPath.indexOf("/", i1 + 1); |
|
|
int i3 = orgPath.indexOf("/", i2 + 1); |
|
|
int i3 = orgPath.indexOf("/", i2 + 1); |
|
|
int i4 = orgPath.indexOf("/", i3 + 1); |
|
|
|
|
|
List<String> orgPaths = Arrays.asList(orgPath.split("/")); |
|
|
List<String> orgPaths = Arrays.asList(orgPath.split("/")); |
|
|
if ("1".equals(orgLevelKey) && orgPaths.size() >= Integer.parseInt(orgLevelKey)) { |
|
|
if ("1".equals(orgLevelKey) && orgPaths.size() >= Integer.parseInt(orgLevelKey)) { |
|
|
orgPath = orgPath.substring(0, i1); |
|
|
orgPath = orgPath.substring(0, i1); |
|
@ -682,8 +681,6 @@ public class SysOrganizationService extends MybatisBaseService<SysOrganizationMa |
|
|
orgPath = orgPath.substring(0, i2); |
|
|
orgPath = orgPath.substring(0, i2); |
|
|
} else if ("3".equals(orgLevelKey) && orgPaths.size() >= Integer.parseInt(orgLevelKey)) { |
|
|
} else if ("3".equals(orgLevelKey) && orgPaths.size() >= Integer.parseInt(orgLevelKey)) { |
|
|
orgPath = orgPath.substring(0, i3); |
|
|
orgPath = orgPath.substring(0, i3); |
|
|
} else if ("4".equals(orgLevelKey) && orgPaths.size() >= Integer.parseInt(orgLevelKey)) { |
|
|
|
|
|
orgPath = orgPath.substring(0, i4); |
|
|
|
|
|
} |
|
|
} |
|
|
return rb.success().setMsg(orgPath); |
|
|
return rb.success().setMsg(orgPath); |
|
|
} |
|
|
} |
|
|