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

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);
if (detachUtil.isDetach()) {
String companyIds = detachUtil.getCompanyIds();
String departmentIds = detachUtil.getDepartmentIds();
if (StringUtils.isNotBlank(departmentIds)) {
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 + "))) ";
if (StringUtils.isNotBlank(companyIds)) {
sql = "select id, fnumber, fname, ftype from junc_org_map where (ftype = 0 or (ftype = 1 and fobjid in(" + companyIds + "))) ";
} else {
sql = "select id, fnumber, fname, ftype from junc_org_map where ftype = 0 ";
}

Loading…
Cancel
Save