Jelajahi Sumber

nsy 文档中心查询

ningsy 3 tahun lalu
induk
melakukan
bfd0bbf508

+ 4 - 4
suishenbang-wxportal/suishenbang-wxportal-common/src/main/resources/mapper/wxportal/HelpCenterMapper.xml

@@ -21,11 +21,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectHelpCenterList" parameterType="com.dgtly.wxportal.domain.HelpCenter" resultMap="HelpCenterResult">
         <include refid="selectHelpCenterVo"/>
         <where>  
-            <if test="title != null  and title != ''"> and title = #{title}</if>
-            <if test="describe != null  and describe != ''"> and describ = #{describe}</if>
-            <if test="fileUrl != null  and fileUrl != ''"> and file_url = #{fileUrl}</if>
+            <if test="title != null  and title != ''"> and title like concat('%', #{title}, '%')</if>
+            <if test="describe != null  and describe != ''"> and describ like concat('%', #{describe}, '%')</if>
+            <if test="fileUrl != null  and fileUrl != ''"> and file_url like concat('%', #{fileUrl}, '%')</if>
             <if test="fileType != null  and fileType != ''"> and file_type like concat('%', #{fileType}, '%')</if>
-            <if test="classifyTitle != null  and classifyTitle != ''"> and classify_title = #{classifyTitle}</if>
+            <if test="classifyTitle != null  and classifyTitle != ''"> and classify_title like concat('%', #{classifyTitle}, '%')</if>
             <if test="delFlag != null "> and del_flag = #{delFlag}</if>
         </where>
     </select>