岗位分权,部门列表BUG修复

pull/151/head
dxfeng 2 years ago
parent 6ac651e8bd
commit 559ea407ab

@ -130,7 +130,7 @@ public class JobBrowserService extends BrowserService {
// 分权 // 分权
DetachUtil detachUtil = new DetachUtil(user); DetachUtil detachUtil = new DetachUtil(user);
if (detachUtil.isDETACH()) { if (detachUtil.isDETACH()) {
sqlWhere += " AND t.parent_comp in (" + detachUtil.getJclRoleLevels() + ")"; sqlWhere += " AND t.ec_company in (" + detachUtil.getJclRoleLevels() + ")";
} }
return sqlWhere; return sqlWhere;
} }

@ -159,7 +159,7 @@ public class DepartmentBO {
return ""; return "";
} }
String departmentPrincipal = MapperProxyFactory.getProxy(DepartmentMapper.class).getDepartmentPrincipal(id); String departmentPrincipal = MapperProxyFactory.getProxy(DepartmentMapper.class).getDepartmentPrincipal(id);
if (StringUtils.isBlank(departmentPrincipal)) { if (StringUtils.isBlank(departmentPrincipal) || "$NULL$".equalsIgnoreCase(departmentPrincipal)) {
return ""; return "";
} }
List<Long> collect = Arrays.stream(departmentPrincipal.split(",")).map(Long::parseLong).collect(Collectors.toList()); List<Long> collect = Arrays.stream(departmentPrincipal.split(",")).map(Long::parseLong).collect(Collectors.toList());

Loading…
Cancel
Save