|
@@ -70,8 +70,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN qw_user qu on qu.id= l.qw_user_id
|
|
|
LEFT JOIN qw_external_contact qec on l.qw_external_contact_id = qec.id
|
|
|
<where>
|
|
|
- <if test ='maps.isVip !=null'>
|
|
|
- and l.user_id != 0 and u.is_vip = #{maps.isVip}
|
|
|
+ <if test ='maps.isVip != null and maps.isVip == 0'>
|
|
|
+ and (l.user_id = #{maps.isVip} or l.user_id is null)
|
|
|
+ </if>
|
|
|
+ <if test ='maps.isVip != null and maps.isVip == 1'>
|
|
|
+ and l.user_id != 0 and l.user_id is not null
|
|
|
</if>
|
|
|
<if test ='maps.sendType !=null'>
|
|
|
and l.send_type = #{maps.sendType}
|