yujian
2019-01-22 88b54772dbcf5ecab1e2316e4e4626ac901b8908
fanli/src/main/java/com/yeshi/fanli/mapping/help/AppPageNotificationMapper.xml
@@ -96,4 +96,42 @@
      </set>
      where an_id = #{id,jdbcType=BIGINT}
   </update>
   <select id="listQuery" resultMap="BaseResultMap">
       SELECT <include refid="Base_Column_List" />  FROM yeshi_ec_apppage_notification
       WHERE 1=1
         <if test='key != null and key != ""'>
               AND (an_type like '%${key}%' or an_content like '%${key}%')
         </if>
         <if test='show != null'>
               AND an_show = #{show}
         </if>
         <if test='canClose != null'>
               AND an_can_close = #{canClose}
         </if>
         ORDER BY an_createtime desc
       LIMIT ${start},${count}
   </select>
   <select id="countQuery" resultType="java.lang.Long">
       SELECT IFNULL(count(an_id),0)  FROM yeshi_ec_apppage_notification
       WHERE 1=1
          <if test='key != null and key != ""'>
               AND (an_type like '%${key}%' or an_content like '%${key}%')
         </if>
         <if test='show != null'>
               AND an_show = #{show}
         </if>
         <if test='canClose != null'>
               AND an_can_close = #{canClose}
         </if>
   </select>
     <delete id="deleteBatchByPrimaryKey" parameterType="java.util.List">
      delete from yeshi_ec_apppage_notification WHERE an_id in
      <foreach collection="list" item="item" open="(" close=")"
         separator=",">#{item}</foreach>
    </delete>
</mapper>