Explorar el Código

修正列设置模糊查询问题

阿伏兔 hace 4 años
padre
commit
531dabc1a8

+ 1 - 1
ruoyi-system/src/main/resources/mapper/system/SysTableSetMapper.xml

@@ -23,7 +23,7 @@
     <select id="selectSysTableSetList" parameterType="SysTableSet" resultMap="SysTableSetResult">
         <include refid="selectSysTableSetVo"/>
         <where>
-            <if test="tableName != null  and tableName != ''">and table_name like concat('%', #{tableName}, '%')</if>
+            <if test="tableName != null  and tableName != ''">and table_name = #{tableName}</if>
             <if test="userId != null ">and user_id = #{userId}</if>
             <if test="surface != null ">and surface = #{surface}</if>
             <if test="label != null  and label != ''">and label = #{label}</if>