Преглед на файлове

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

王苗苗 преди 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