|
|
@ -204,13 +204,17 @@ public class UserMapperProvider { |
|
|
|
return new SQL() { |
|
|
|
return new SQL() { |
|
|
|
{ |
|
|
|
{ |
|
|
|
SELECT("u.*,t.tenant_name as tenantName,q.queue_name as queueName"); |
|
|
|
SELECT("u.*,t.tenant_name as tenantName,q.queue_name as queueName"); |
|
|
|
FROM(TABLE_NAME +" u,t_escheduler_tenant t,t_escheduler_queue q"); |
|
|
|
FROM(TABLE_NAME + " u "); |
|
|
|
WHERE("u.user_type = 1 AND u.tenant_id = t.id and t.queue_id = q.id"); |
|
|
|
LEFT_OUTER_JOIN("t_escheduler_tenant t on u.tenant_id = t.id"); |
|
|
|
|
|
|
|
LEFT_OUTER_JOIN("t_escheduler_queue q on t.queue_id = q.id"); |
|
|
|
|
|
|
|
WHERE("u.user_type = 1"); |
|
|
|
Object searchVal = parameter.get("searchVal"); |
|
|
|
Object searchVal = parameter.get("searchVal"); |
|
|
|
if(searchVal != null && StringUtils.isNotEmpty(searchVal.toString())){ |
|
|
|
if(searchVal != null && StringUtils.isNotEmpty(searchVal.toString())){ |
|
|
|
WHERE( " u.user_name like concat('%', #{searchVal}, '%') "); |
|
|
|
WHERE( " u.user_name like concat('%', #{searchVal}, '%') "); |
|
|
|
} |
|
|
|
} |
|
|
|
ORDER_BY(" u.update_time desc limit #{offset},#{pageSize} "); |
|
|
|
ORDER_BY(" u.update_time desc limit #{offset},#{pageSize} "); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}.toString(); |
|
|
|
}.toString(); |
|
|
|
|
|
|
|
|
|
|
|