瀏覽代碼

verifyDocument

胡轶钦 5 年之前
父節點
當前提交
1c37a5c587
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/main/resources/mapper/TaDocumentVerifyMapper.xml

+ 1
- 1
src/main/resources/mapper/TaDocumentVerifyMapper.xml 查看文件

11
 	LEFT JOIN ta_person b ON a.person_id = b.person_id
11
 	LEFT JOIN ta_person b ON a.person_id = b.person_id
12
 	where 1=1
12
 	where 1=1
13
 	    <if test="name != '' and name !=null">
13
 	    <if test="name != '' and name !=null">
14
-            and IFNULL(b.name,b.nickname) = #{name}
14
+            and IFNULL(b.name,b.nickname) like CONCAT('%',#{name}, '%')
15
          </if>
15
          </if>
16
         <if test="name != '' and name !=null">
16
         <if test="name != '' and name !=null">
17
             and IFNULL(b.tel,b.phone) = #{tel}
17
             and IFNULL(b.tel,b.phone) = #{tel}