运维工具-电话条件模糊查询

This commit is contained in:
曹磊 2026-02-02 11:27:22 +08:00
parent 9e32946481
commit 9618ffa7ed
1 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
INNER JOIN nu_biz_elder_info b ON a.open_id = b.guardian_open_id
<where>
<if test="params.tel != null and params.tel != ''">
AND a.tel = #{params.tel}
AND a.tel LIKE concat('%',#{params.tel},'%')
</if>
<if test="params.openId != null and params.openId != ''">
AND a.open_id = #{params.openId}
@ -44,7 +44,7 @@
from nu_biz_advisory_info a inner join nu_biz_employees_advisory_info b on a.open_id = b.open_id
<where>
<if test="params.tel != null and params.tel != ''">
AND a.tel = #{params.tel}
AND a.tel LIKE concat('%',#{params.tel},'%')
</if>
<if test="params.openId != null and params.openId != ''">
AND a.open_id = #{params.openId}
@ -68,7 +68,7 @@
from nu_biz_advisory_info a inner join nu_org_apply_info b on a.open_id = b.open_id
<where>
<if test="params.tel != null and params.tel != ''">
AND a.tel = #{params.tel}
AND a.tel LIKE concat('%',#{params.tel},'%')
</if>
<if test="params.openId != null and params.openId != ''">
AND a.open_id = #{params.openId}
@ -93,7 +93,7 @@
INNER JOIN nu_biz_suppliers_apply b ON a.open_id = b.open_id
<where>
<if test="params.tel != null and params.tel != ''">
AND a.tel = #{params.tel}
AND a.tel LIKE concat('%',#{params.tel},'%')
</if>
<if test="params.openId != null and params.openId != ''">
AND a.open_id = #{params.openId}