Stringlimit=" ORDER BY su.CREATED_TIME DESC limit "+(search.getPage()-1)*search.getSize()+","+search.getSize();
StringBufferquerySql=newStringBuffer("from sys_user su left join sys_user_role sur on su.id =sur.user_id left JOIN sys_role sr on sr.id =sur.role_id left join sys_user_org suo on su.id=suo.user_id where 1=1 ");
// StringBuffer querySql = new StringBuffer("from sys_user su left join sys_user_role sur on su.id =sur.user_id left JOIN sys_role sr on sr.id =sur.role_id left join sys_user_org suo on su.id=suo.user_id where 1=1 ");
StringBufferquerySql=newStringBuffer("from sys_user su where 1=1 ");
querySql.append(" and su.id in ('"+String.join("','",collect)+"')");
}
if(null!=search.getQueryString()){
querySql.append("and (su.engineer_code LIKE '%"+search.getQueryString()+"%' or su.nickname like '%"+search.getQueryString()+"%' or su.phone like '%"+search.getQueryString()+"%' or su.email like '%"+search.getQueryString()+"%' )");
querySql.append("and (su.engineer_code LIKE '%"+search.getQueryString()+"%' or su.nickname like '%"+search.getQueryString()+"%' or su.phone like '%"+search.getQueryString()+"%' or su.email like '%"+search.getQueryString()+"%' )");