feat:listByMobile 改造
This commit is contained in:
@@ -88,10 +88,19 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="listByMobile" resultMap="BaseResultMap">
|
<select id="listByMobile" resultMap="BaseResultMap">
|
||||||
select *
|
select a.*
|
||||||
from store_${enterpriseId} a left join store_master_signer_info_5558ce7a3aa84e3590392fcaa8697ffb b on a.store_id = b.store_id
|
from store_${enterpriseId} a left join store_master_signer_info_5558ce7a3aa84e3590392fcaa8697ffb b on a.store_id = b.store_id
|
||||||
<where>
|
<where>
|
||||||
and a.is_delete = 'effective'
|
and a.is_delete = 'effective'
|
||||||
|
<if test="mobile!=null and mobile !=''">
|
||||||
|
and ( b.signer1_mobile = #{mobile} or b.signer2_mobile = #{mobile})
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
union
|
||||||
|
select *
|
||||||
|
from store_${enterpriseId}
|
||||||
|
<where>
|
||||||
|
and is_delete = 'effective'
|
||||||
<if test="mobile!=null and mobile !=''">
|
<if test="mobile!=null and mobile !=''">
|
||||||
and `extend_field` like concat('%', #{mobile}, '%')
|
and `extend_field` like concat('%', #{mobile}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user