|
|
|
@@ -201,29 +201,34 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="findListVo2" parameterType="com.iformall.domain.po.WxMerchant" resultMap="BaseResultMap"> |
|
|
|
select * from wx_merchant where 1=1 and is_del=0 |
|
|
|
select distinct wm.* from wx_merchant wm |
|
|
|
left join wx_merchant_b_user wmbu on wmbu.merchant_id = wm.id |
|
|
|
where 1=1 and wm.is_del=0 |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
and wm.`tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
<if test=" null != parentTenantId and '' != parentTenantId"> |
|
|
|
and `parent_tenant_id` = #{parentTenantId} |
|
|
|
and wm.`parent_tenant_id` = #{parentTenantId} |
|
|
|
</if> |
|
|
|
<if test=" null != name and ''!=name "> |
|
|
|
and `name` like concat('%', #{name},'%') |
|
|
|
and wm.`name` like concat('%', #{name},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != linkPhone and ''!=linkPhone "> |
|
|
|
and `link_phone` like concat('%', #{linkPhone},'%') |
|
|
|
and wm.`link_phone` like concat('%', #{linkPhone},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != phone and ''!=phone "> |
|
|
|
and wmbu.`phone` like concat('%', #{phone},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != businessId "> |
|
|
|
and `business_id` = #{businessId} |
|
|
|
and wm.`business_id` = #{businessId} |
|
|
|
</if> |
|
|
|
<if test=" null != status "> |
|
|
|
and `status` = #{status} |
|
|
|
and wm.`status` = #{status} |
|
|
|
</if> |
|
|
|
<if test=" null != type "> |
|
|
|
and `type` = #{type} |
|
|
|
and wm.`type` = #{type} |
|
|
|
</if> |
|
|
|
order by create_date desc |
|
|
|
order by wm.create_date desc |
|
|
|
</select> |
|
|
|
|
|
|
|
<sql id="dataRule"> |
|
|
|
|