| | |
| | | a.is_top, |
| | | a.editor_status, |
| | | a.is_allowed_comment, |
| | | a.jump_url as jumpURL, |
| | | a.update_date, |
| | | a.create_date |
| | | </sql> |
| | | |
| | |
| | | <choose> |
| | | <when test="param.typeId != null"> |
| | | AND a.article_type_id = #{param.typeId} |
| | | order by a.is_top desc,a.top_value asc , a.create_date desc |
| | | </when> |
| | | <otherwise> |
| | | AND a.article_type_id != 4 |
| | | order by a.is_top desc,a.top_value asc , a.update_date desc |
| | | </otherwise> |
| | | </choose> |
| | | </trim> |
| | |
| | | <select id="searchList" resultType="vip.xiaonuo.modular.blogarticle.entity.BlogArticleVo"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | ,IFNULL("",CONCAT("/",f2.file_bucket,"/",f2.file_object_name)) as coverFileURL |
| | | ,IF(a.cover_file_id is not null,CONCAT("/",f2.file_bucket,"/",f2.file_object_name),"") as coverFileURL |
| | | ,t.type_name as articleTypeName |
| | | from |
| | | blog_article a |
| | |
| | | on f2.id=a.cover_file_id |
| | | |
| | | <include refid="queryListCondition"/> |
| | | |
| | | order by a.is_top desc,a.top_value asc , a.create_date desc |
| | | |
| | | limit #{param.pageNo},#{param.pageSize} |
| | | </select> |