yujian
2019-09-02 9eeda0d3049b71877c373c04d65533939b5582ef
fanli/src/main/java/com/yeshi/fanli/mapping/help/HelpCenterMapper.xml
@@ -59,7 +59,7 @@
            AND ht.h_title like '%${key}%'
      </if>
      <if test='cid != null'>
            AND ht.h_cid  = cid
            AND ht.h_cid = #{cid}
      </if>
      
      <if test='orderMode == 1'>
@@ -94,19 +94,19 @@
            AND h_title like '%${key}%'
      </if>
      <if test='cid != null'>
            AND h_cid  = cid
            AND h_cid  = #{cid}
      </if>
   </select>
   
    <select id="queryIdAndTitle" resultMap="BaseResultMap">
     <!-- 根据条件查询所有标签 -->
    SELECT  h_id, h_title FROM yeshi_ec_help_center   
       WHERE    <![CDATA[1>0]]>
       WHERE 1=1
      <if test='key != null and key != ""'>
            AND h_title like '%${key}%'
      </if>
      <if test='cid != null'>
            AND h_cid  = cid
            AND h_cid  = #{cid}
      </if>
       ORDER BY  h_weight  DESC, h_createtime