|
|
|
@ -18,6 +18,7 @@ import com.engine.organization.service.SequenceService;
|
|
|
|
|
import com.engine.organization.util.*;
|
|
|
|
|
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.conn.RecordSet;
|
|
|
|
|
import weaver.general.StringUtil;
|
|
|
|
@ -212,6 +213,12 @@ public class SequenceServiceImpl extends Service implements SequenceService {
|
|
|
|
|
if (StringUtils.isNotBlank(viewCondition) && !"-1".equalsIgnoreCase(viewCondition)) {
|
|
|
|
|
sqlWhere += " AND t.forbidden_tag = '" + viewCondition + "'";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DetachUtil detachUtil = new DetachUtil(user);
|
|
|
|
|
if (detachUtil.isDETACH()) {
|
|
|
|
|
String jclRoleLevels = detachUtil.getJclRoleLevels();
|
|
|
|
|
sqlWhere += " and s.subcompanyid in (" + jclRoleLevels + ")";
|
|
|
|
|
}
|
|
|
|
|
return sqlWhere;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|