|
|
|
@ -53,7 +53,7 @@ public class OrgChartServiceImpl extends Service implements OrgChartService {
|
|
|
|
|
String sql = "select id, fnumber, fname, ftype from jcl_org_map where ftype in (0, 1) ";
|
|
|
|
|
|
|
|
|
|
// 分部分权过滤
|
|
|
|
|
DetachUtil detachUtil = new DetachUtil(user.getUID());
|
|
|
|
|
DetachUtil detachUtil = new DetachUtil(user);
|
|
|
|
|
if (detachUtil.isDETACH()) {
|
|
|
|
|
String jclRoleLevels = detachUtil.getJclRoleLevels();
|
|
|
|
|
if (StringUtils.isNotBlank(jclRoleLevels)) {
|
|
|
|
@ -165,7 +165,7 @@ 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) {
|
|
|
|
|
String sql = "select id, fname, ftype, fparentid,fobjid,fecid,fnumber,fisvitual from jcl_org_map " + whereSql;
|
|
|
|
|
DetachUtil detachUtil = new DetachUtil(user.getUID());
|
|
|
|
|
DetachUtil detachUtil = new DetachUtil(user);
|
|
|
|
|
if (detachUtil.isDETACH()) {
|
|
|
|
|
if ("0".equals(id)) {
|
|
|
|
|
sql += " and ftype = 1 and fobjid in(" + detachUtil.getJclRoleLevels() + ")";
|
|
|
|
@ -373,7 +373,7 @@ 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) {
|
|
|
|
|
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, t.fisvitual from jcl_org_map t " + whereSql;
|
|
|
|
|
DetachUtil detachUtil = new DetachUtil(user.getUID());
|
|
|
|
|
DetachUtil detachUtil = new DetachUtil(user);
|
|
|
|
|
if (detachUtil.isDETACH()) {
|
|
|
|
|
if ("0".equals(id)) {
|
|
|
|
|
sql += " and t.ftype = 1 and t.fobjid in(" + detachUtil.getJclRoleLevels() + ")";
|
|
|
|
|