|
|
|
@@ -176,6 +176,26 @@ |
|
|
|
cubi.sex,cubi.email,cubi.address,cubi.poins,cubi.`name`,cubi.`level`,cubi.id cubiid |
|
|
|
from wx_c_user cu left join wx_c_user_basic_info cubi |
|
|
|
on cu.phone=cubi.phone and cu.tenant_id=cubi.tenant_id |
|
|
|
where 1=1 |
|
|
|
<if test=" null != tenantId "> |
|
|
|
and cu.`tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
<if test=" null != phone and phone !='' "> |
|
|
|
and cu.`phone` = #{phone} |
|
|
|
</if> |
|
|
|
<if test=" null == phone or phone =='' "> |
|
|
|
and cu.`phone` is not null |
|
|
|
</if> |
|
|
|
<if test=" null != startTime "> |
|
|
|
and cubi.create_date >= #{startTime} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != endTime"> |
|
|
|
and cubi.update_date <= #{endTime} |
|
|
|
</if> |
|
|
|
<if test=" null != name and name != '' "> |
|
|
|
and cb.`name` like concat('%', #{name},'%') |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|