Quellcode durchsuchen

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

王苗苗 vor 1 Woche
Ursprung
Commit
15b13749c5

+ 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