|
|
|
|
|
|
|
|
t.name,t.province_code,t.province_name,t.city_code,t.city_name,t.district_code,t.district_name,u.username username |
|
|
t.name,t.province_code,t.province_name,t.city_code,t.city_name,t.district_code,t.district_name,u.username username |
|
|
FROM t_tenant t,users u |
|
|
FROM t_tenant t,users u |
|
|
WHERE t.enabled = 1 and u.enabled =1 and t.user_id =u.id |
|
|
WHERE t.enabled = 1 and u.enabled =1 and t.user_id =u.id |
|
|
<if test="query.name != null and query.name != ''"> |
|
|
|
|
|
|
|
|
<if test="query.tenantName != null and query.tenantName != ''"> |
|
|
and t.name LIKE concat('%',#{query.tenantName},'%') |
|
|
and t.name LIKE concat('%',#{query.tenantName},'%') |
|
|
</if> |
|
|
</if> |
|
|
<if test="query.username != null and query.username != ''"> |
|
|
<if test="query.username != null and query.username != ''"> |