编制方案、编制信息分权
This commit is contained in:
parent
ad9e80e1e8
commit
be807d032b
|
|
@ -17,6 +17,7 @@ import com.engine.organization.util.*;
|
||||||
import com.engine.organization.util.browser.OrganizationBrowserUtil;
|
import com.engine.organization.util.browser.OrganizationBrowserUtil;
|
||||||
import com.engine.organization.util.db.DBType;
|
import com.engine.organization.util.db.DBType;
|
||||||
import com.engine.organization.util.db.MapperProxyFactory;
|
import com.engine.organization.util.db.MapperProxyFactory;
|
||||||
|
import com.engine.organization.util.detach.DetachUtil;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import weaver.common.DateUtil;
|
import weaver.common.DateUtil;
|
||||||
import weaver.conn.RecordSet;
|
import weaver.conn.RecordSet;
|
||||||
|
|
@ -284,6 +285,12 @@ public class StaffPlanServiceImpl extends Service implements StaffPlanService {
|
||||||
if (null != forbiddenTag) {
|
if (null != forbiddenTag) {
|
||||||
sqlWhere += " AND t.forbidden_tag = '" + forbiddenTag + "'";
|
sqlWhere += " AND t.forbidden_tag = '" + forbiddenTag + "'";
|
||||||
}
|
}
|
||||||
|
// 分权
|
||||||
|
DetachUtil detachUtil = new DetachUtil(user);
|
||||||
|
if (detachUtil.isDETACH()) {
|
||||||
|
String ids = detachUtil.getJclRoleLevels();
|
||||||
|
sqlWhere += " AND t.ec_company in (" + ids + ")";
|
||||||
|
}
|
||||||
return sqlWhere;
|
return sqlWhere;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ import com.engine.organization.util.*;
|
||||||
import com.engine.organization.util.browser.OrganizationBrowserUtil;
|
import com.engine.organization.util.browser.OrganizationBrowserUtil;
|
||||||
import com.engine.organization.util.db.DBType;
|
import com.engine.organization.util.db.DBType;
|
||||||
import com.engine.organization.util.db.MapperProxyFactory;
|
import com.engine.organization.util.db.MapperProxyFactory;
|
||||||
|
import com.engine.organization.util.detach.DetachUtil;
|
||||||
import com.engine.organization.util.excel.ExcelUtil;
|
import com.engine.organization.util.excel.ExcelUtil;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||||
|
|
@ -437,6 +438,12 @@ public class StaffServiceImpl extends Service implements StaffService {
|
||||||
sqlWhere += " AND t.plan_id in ( select id from jcl_org_staffplan where plan_name " + dbType.like(staffName) + ") ";
|
sqlWhere += " AND t.plan_id in ( select id from jcl_org_staffplan where plan_name " + dbType.like(staffName) + ") ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 分权
|
||||||
|
DetachUtil detachUtil = new DetachUtil(user);
|
||||||
|
if (detachUtil.isDETACH()) {
|
||||||
|
String ids = detachUtil.getJclRoleLevels();
|
||||||
|
sqlWhere += " AND t.ec_company in (" + ids + ")";
|
||||||
|
}
|
||||||
return sqlWhere;
|
return sqlWhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue