|
@@ -42,8 +42,8 @@
|
|
|
<select id="selectTenantInfoList" resultMap="TenantInfoResult">
|
|
<select id="selectTenantInfoList" resultMap="TenantInfoResult">
|
|
|
<include refid="selectTenantInfoVo"/>
|
|
<include refid="selectTenantInfoVo"/>
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="tenantCode != null and tenantCode != ''"> and t.tenant_code = #{tenantCode}</if>
|
|
|
|
|
- <if test="tenantName != null and tenantName != ''"> and t.tenant_name like concat('%', #{tenantName}, '%')</if>
|
|
|
|
|
|
|
+ <if test="tenantCode != null and tenantCode != ''"> and t.tenant_code like concat('%', #{tenantCode}, '%')</if>
|
|
|
|
|
+ <if test="tenantName != null and tenantName != ''"> and (t.tenant_name like concat('%', #{tenantName}, '%') or t.tenant_code like concat('%', #{tenantName}, '%'))</if>
|
|
|
<if test="status != null "> and t.status = #{status}</if>
|
|
<if test="status != null "> and t.status = #{status}</if>
|
|
|
<if test="expireTime != null "> and t.expire_time = #{expireTime}</if>
|
|
<if test="expireTime != null "> and t.expire_time = #{expireTime}</if>
|
|
|
<if test="proxyId != null "> and t.proxy_id = #{proxyId}</if>
|
|
<if test="proxyId != null "> and t.proxy_id = #{proxyId}</if>
|
|
@@ -67,7 +67,7 @@
|
|
|
<select id="tenantList" resultType="com.fs.tenant.vo.TenantInfoShowVo">
|
|
<select id="tenantList" resultType="com.fs.tenant.vo.TenantInfoShowVo">
|
|
|
select id, tenant_code, tenant_name from tenant_info
|
|
select id, tenant_code, tenant_name from tenant_info
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="tenantCode != null and tenantCode != ''"> and tenant_code = #{tenantCode}</if>
|
|
|
|
|
|
|
+ <if test="tenantCode != null and tenantCode != ''"> and tenant_code like concat('%', #{tenantCode}, '%')</if>
|
|
|
<if test="tenantName != null and tenantName != ''"> and tenant_name like concat('%', #{tenantName}, '%')</if>
|
|
<if test="tenantName != null and tenantName != ''"> and tenant_name like concat('%', #{tenantName}, '%')</if>
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
<if test="expireTime != null "> and expire_time = #{expireTime}</if>
|
|
<if test="expireTime != null "> and expire_time = #{expireTime}</if>
|