|
|
|
@ -17,6 +17,7 @@ import com.engine.organization.util.*;
|
|
|
|
|
import com.engine.organization.util.browser.OrganizationBrowserUtil;
|
|
|
|
|
import com.engine.organization.util.db.DBType;
|
|
|
|
|
import com.engine.organization.util.db.MapperProxyFactory;
|
|
|
|
|
import com.engine.organization.util.detach.DetachUtil;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import weaver.common.DateUtil;
|
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
@ -284,6 +285,12 @@ public class StaffPlanServiceImpl extends Service implements StaffPlanService {
|
|
|
|
|
if (null != 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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|