浏览代码

白名单列表相关字段查询改成模糊匹配

王苗苗 1 周之前
父节点
当前提交
15b13749c5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      slibra-system/src/main/resources/mapper/business/TWhitelistMapper.xml

+ 2 - 2
slibra-system/src/main/resources/mapper/business/TWhitelistMapper.xml

@@ -25,8 +25,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectTWhitelistVo"/>
         <where>
             1 = 1
-            <if test="phone != null  and phone != ''"> and phone = #{phone}</if>
-            <if test="description != null  and description != ''"> and description = #{description}</if>
+            <if test="phone != null  and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
+            <if test="description != null  and description != ''"> and description like concat('%', #{description}, '%')</if>
             <if test="revision != null "> and revision = #{revision}</if>
         </where>
         and del_flag = 0 order by id desc