lin
2024-04-15 bdfb1bfaf5dc5d7318c632fcc6fdf3ffacbd075f
src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
@@ -552,7 +552,6 @@
        <if test="article.eventType != null">
            and jpd.event_type = #{article.eventType}
            and jpd.end_time is not null
            and jpd.end_time &lt;= SYSDATE()
        </if>
        <if test="article.propertyFlag!=null ">
@@ -583,7 +582,9 @@
        <if test="article.articleType!=null and article.articleType!=''">
            and ja.article_type like concat('%',#{article.articleType},'%')
        </if>
        <if test="article.type != null ">and ja.type = #{article.type}</if>
        <if test="article.type != null ">
          and ja.type = #{article.type}
          </if>
        <if test="article.keyword!=null and article.keyword!=''">
            AND CONCAT(ja.title,ja.source_name)
@@ -598,4 +599,25 @@
        order by ja.create_time desc
    </select>
    <select id="getAllList" resultType="org.springblade.modules.article.entity.Article">
        SELECT
        ja.*
        FROM
        jczz_article ja
        where 1=1
        and ja.is_deleted = 0
        and ja.publish = 1
        limit #{i},#{size}
    </select>
    <select id="getAllListTotal" resultType="java.lang.Integer">
        SELECT
        count(*)
        FROM
        jczz_article ja
        where 1=1
        and ja.is_deleted = 0
        and ja.publish = 1
    </select>
</mapper>