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 where 1=1 ");
Stringlimit=" ORDER BY su.createdTime DESC limit "+(search.getPage()-1)*search.getSize()+","+search.getSize();
StringBufferquerySql=newStringBuffer("from UserEntity su left join UserRoleEntity sur on su.id =sur.userId left JOIN RoleEntity sr on sr.id =sur.roleId where 1=1 ");
querySql.append("(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("(su.engineerCode LIKE '%"+search.getQueryString()+"%' or su.nickname like '%"+search.getQueryString()+"%' or su.phone like '%"+search.getQueryString()+"%' or su.email like '%"+search.getQueryString()+"%' )");