inleft
2022-07-29 ba780fb8c047c665f8d85c013b02e47f8269451d
snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/mapper/mapping/BlogArticleMapper.xml
@@ -24,6 +24,7 @@
       a.is_top,
       a.editor_status,
       a.is_allowed_comment,
       a.update_date,
       a.create_date
    </sql>
@@ -35,9 +36,11 @@
            <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>
@@ -62,8 +65,6 @@
        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>