透视图分权、部门负责人展示

jcgj
dxfeng 2 years ago
parent 02186c67bb
commit 33c16237b0

@ -39,9 +39,8 @@ public class OrgChartServiceImpl extends Service implements OrgChartService {
DetachUtil detachUtil = new DetachUtil(user); DetachUtil detachUtil = new DetachUtil(user);
if (detachUtil.isDetach()) { if (detachUtil.isDetach()) {
String companyIds = detachUtil.getCompanyIds(); String companyIds = detachUtil.getCompanyIds();
String departmentIds = detachUtil.getDepartmentIds(); if (StringUtils.isNotBlank(companyIds)) {
if (StringUtils.isNotBlank(departmentIds)) { sql = "select id, fnumber, fname, ftype from junc_org_map where (ftype = 0 or (ftype = 1 and fobjid in(" + companyIds + "))) ";
sql = "select id, fnumber, fname, ftype from junc_org_map where (ftype = 0 or (ftype = 1 and fobjid in(" + companyIds + ")) or (ftype = 2 and fobjid in(" + departmentIds + "))) ";
} else { } else {
sql = "select id, fnumber, fname, ftype from junc_org_map where ftype = 0 "; sql = "select id, fnumber, fname, ftype from junc_org_map where ftype = 0 ";
} }

Loading…
Cancel
Save