// String sql = "select row_number() over(order by id asc) rownum,id from hrmresource where "+conditions;
// String sql = "select row_number() over(order by id asc) rownum,id from hrmresource where "+conditions;
// sql = "select top 1 a.id from ( "+sql+" ) a where a.rownum>"+startindex;
// sql = "select top 1 a.id from ( "+sql+" ) a where a.rownum>"+startindex;
// String queryDatatablesql = "select top "+pageSize+" id,subcompanyid1,departmentid,workcode,lastname from hrmresource where id >=("+sql+") and "+conditions;
// String queryDatatablesql = "select top "+pageSize+" id,subcompanyid1,departmentid,workcode,lastname from hrmresource where id >=("+sql+") and "+conditions;
// String sql = "select id from hrmresource where "+conditions+" limit "+startindex+",1";
Stringsql="select id,subcompanyid1,departmentid,workcode,lastname,ROWNUM rn from hrmresource where 1=1 and ROWNUM<="+endindex;
// String querySql = "select id,subcompanyid1,departmentid,workcode,lastname from hrmresource where id >=("+sql+") and "+conditions+" limit "+pageSize;
sql=sql+" and "+conditions;
// log.info("queryDatatablesql : {}",querySql);
StringqueryDatatablesql="select * from ("+sql+") where rn >"+startindex;
StringquerySql="select id,subcompanyid1,departmentid,workcode,lastname from hrmresource ";
if(!conditions.equals("")){
}elseif("sqlserver".equals(dbType)){
querySql=querySql+" where "+conditions;
Stringsql="select row_number() over(order by id asc) rownum,id from hrmresource where "+conditions;
sql="select top 1 a.id from ( "+sql+" ) a where a.rownum>"+startindex;
StringqueryDatatablesql="select top "+pageSize+" id,subcompanyid1,departmentid,workcode,lastname from hrmresource where id >=("+sql+") and "+conditions;
sql ="select b.szjg,a.rqlx from uf_jcl_kq_rlxx a left join uf_jcl_kq_rlmc b on a.rlmc=b.id where b.mrrl=1 and b.szjg in ("+parentSubcompanyids+") and a.rq=?";
String sql ="select b.szjg,a.rqlx from uf_jcl_kq_rlxx a left join uf_jcl_kq_rlmc b on a.rlmc=b.id where b.mrrl=1 and b.szjg in ("+parentSubcompanyids+") and a.rq=?";
Stringsql="select a.nd,a.rq,a.nlrq,a.rqlx,a.xq,a.rlmc,b.szjg from uf_jcl_kq_rlxx a left join uf_jcl_kq_rlmc b on a.rlmc=b.id where b.mrrl=1 and b.szjg in ("+parentSubcompanyids+") and a.nd=?";