|
|
@ -160,8 +160,12 @@ public class OrgChartServiceImpl extends Service implements OrgChartService {
|
|
|
|
private void findCompanyItemByParantId(String id, int currentLevel, String level, RecordSet rs, List<Map<String, Object>> list, String whereSql, boolean expand) {
|
|
|
|
private void findCompanyItemByParantId(String id, int currentLevel, String level, RecordSet rs, List<Map<String, Object>> list, String whereSql, boolean expand) {
|
|
|
|
String sql = "select id, fname, ftype, fparentid,fobjid,fecid,fnumber from jcl_org_map " + whereSql;
|
|
|
|
String sql = "select id, fname, ftype, fparentid,fobjid,fecid,fnumber from jcl_org_map " + whereSql;
|
|
|
|
DetachUtil detachUtil = new DetachUtil(user.getUID());
|
|
|
|
DetachUtil detachUtil = new DetachUtil(user.getUID());
|
|
|
|
if (detachUtil.isDETACH() && "0".equals(id)) {
|
|
|
|
if (detachUtil.isDETACH()) {
|
|
|
|
|
|
|
|
if ("0".equals(id)) {
|
|
|
|
sql += " and ftype = 1 and fobjid in(" + detachUtil.getJclRoleLevels() + ")";
|
|
|
|
sql += " and ftype = 1 and fobjid in(" + detachUtil.getJclRoleLevels() + ")";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
sql += " and fparentid = " + id + " and ftype !=1";
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
sql += " and fparentid = " + id;
|
|
|
|
sql += " and fparentid = " + id;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -370,8 +374,12 @@ public class OrgChartServiceImpl extends Service implements OrgChartService {
|
|
|
|
private void findUserItemByParantId(String id, int currentLevel, String level, RecordSet rs, List<Map<String, Object>> list, String whereSql, boolean expand) {
|
|
|
|
private void findUserItemByParantId(String id, int currentLevel, String level, RecordSet rs, List<Map<String, Object>> list, String whereSql, boolean expand) {
|
|
|
|
String sql = "select t.id, t.fname, t.ftype, t.fparentid,t.fobjparentid,t.fleader, t.fleadername, t.fleaderimg, t.fleaderjob, t.fplan, t.fonjob, t.fnumber,t.fobjid,t.fecid,t.fleaderlv, t.fleaderst from jcl_org_map t " + whereSql;
|
|
|
|
String sql = "select t.id, t.fname, t.ftype, t.fparentid,t.fobjparentid,t.fleader, t.fleadername, t.fleaderimg, t.fleaderjob, t.fplan, t.fonjob, t.fnumber,t.fobjid,t.fecid,t.fleaderlv, t.fleaderst from jcl_org_map t " + whereSql;
|
|
|
|
DetachUtil detachUtil = new DetachUtil(user.getUID());
|
|
|
|
DetachUtil detachUtil = new DetachUtil(user.getUID());
|
|
|
|
if (detachUtil.isDETACH() && "0".equals(id)) {
|
|
|
|
if (detachUtil.isDETACH()) {
|
|
|
|
sql += " and ftype = 1 and fobjid in(" + detachUtil.getJclRoleLevels() + ")";
|
|
|
|
if ("0".equals(id)) {
|
|
|
|
|
|
|
|
sql += " and t.ftype = 1 and t.fobjid in(" + detachUtil.getJclRoleLevels() + ")";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
sql += " and t.fparentid = " + id + " and t.ftype !=1";
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
sql += " and t.fparentid = " + id;
|
|
|
|
sql += " and t.fparentid = " + id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|