| | |
| | | <trim prefix="WHERE" prefixOverrides="AND | OR"> |
| | | a.is_enable=1 |
| | | and a.editor_status=1 |
| | | <if test="param.typeId != null"> |
| | | AND a.article_type_id = #{param.typeId} |
| | | </if> |
| | | </trim> |
| | | </sql> |
| | | |
| | | <select id="searchMediaList" resultType="vip.xiaonuo.modular.blogarticle.param.BlogArticleVo"> |
| | | <select id="searchList" resultType="vip.xiaonuo.modular.blogarticle.param.BlogArticleVo"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | ,CONCAT("/",f1.file_bucket,"/",f1.file_object_name) as articleFileURL |
| | |
| | | limit #{param.pageNo},#{param.pageSize} |
| | | </select> |
| | | |
| | | <select id="searchMediaListCount" resultType="java.lang.Long"> |
| | | <select id="searchListCount" resultType="java.lang.Long"> |
| | | select |
| | | count(0) |
| | | from |
| | |
| | | |
| | | </select> |
| | | |
| | | <select id="searchMonthCount" resultType="vip.xiaonuo.modular.blogStatistics.vo.BlogArchiveDetailVo"> |
| | | SELECT |
| | | separate_month AS `month`, |
| | | count(1) AS count |
| | | FROM |
| | | blog_article |
| | | WHERE |
| | | ( |
| | | is_enable = 1 |
| | | AND editor_status = 1 |
| | | AND separate_year = #{separateYear} |
| | | ) |
| | | GROUP BY |
| | | separate_month |
| | | ORDER BY separate_month desc |
| | | |
| | | </select> |
| | | |
| | | </mapper> |