浏览代码

手机号模糊

dingxin 5 年前
父节点
当前提交
7e0c407ffc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/main/resources/mapper/HelpInitiateRecordMapper.xml

+ 2
- 2
src/main/resources/mapper/HelpInitiateRecordMapper.xml 查看文件

49
     where b.help_activity_id =  #{helpActivityId}
49
     where b.help_activity_id =  #{helpActivityId}
50
     and b.`status` =  0
50
     and b.`status` =  0
51
     <if test="tel != null and tel != ''">
51
     <if test="tel != null and tel != ''">
52
-        AND b.phone = #{tel}
52
+        and  b.phone like concat('%',#{tel},'%')
53
     </if>
53
     </if>
54
      order by b.create_date desc
54
      order by b.create_date desc
55
      limit #{pageCode}, #{pageSize}
55
      limit #{pageCode}, #{pageSize}
69
         and b.status = 2
69
         and b.status = 2
70
     </if>
70
     </if>
71
     <if test="tel != null and tel != ''">
71
     <if test="tel != null and tel != ''">
72
-        AND b.phone = #{tel}
72
+        and  b.phone like concat('%',#{tel},'%')
73
     </if>
73
     </if>
74
      order by b.create_date desc
74
      order by b.create_date desc
75
      limit #{pageCode}, #{pageSize}
75
      limit #{pageCode}, #{pageSize}