where 标签
This commit is contained in:
@@ -8,18 +8,19 @@
|
|||||||
select merchant.*,shop.shop_name as shopName
|
select merchant.*,shop.shop_name as shopName
|
||||||
from tb_shop_direct_merchant merchant
|
from tb_shop_direct_merchant merchant
|
||||||
left join tb_shop_info shop on merchant.shop_id = shop.id
|
left join tb_shop_info shop on merchant.shop_id = shop.id
|
||||||
where
|
<where>
|
||||||
<if test="queryParam.userType != null">
|
<if test="queryParam.userType != null">
|
||||||
and merchant.user_type = #{queryParam.userType}
|
and merchant.user_type = #{queryParam.userType}
|
||||||
</if>
|
</if>
|
||||||
<if test="queryParam.shopName != null">
|
<if test="queryParam.shopName != null">
|
||||||
and shop.shop_name like concat('%',#{queryParam.shopName},'%')
|
and shop.shop_name like concat('%',#{queryParam.shopName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="queryParam.status != null">
|
<if test="queryParam.status != null">
|
||||||
and (merchant.wechat_status = #{queryParam.status} or merchant.alipay_status = #{queryParam.status})
|
and (merchant.wechat_status = #{queryParam.status} or merchant.alipay_status = #{queryParam.status})
|
||||||
</if>
|
</if>
|
||||||
<if test="queryParam.alipayAccount != null">
|
<if test="queryParam.alipayAccount != null">
|
||||||
and merchant.alipay_account like concat('%',#{queryParam.alipayAccount},'%')
|
and merchant.alipay_account like concat('%',#{queryParam.alipayAccount},'%')
|
||||||
</if>
|
</if>
|
||||||
|
</where>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user