洪城义警-正式版后台
zhongrj
2023-11-14 62cd133e894d8cc8d527d5e94a4310794e03f763
src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
@@ -18,6 +18,9 @@
        <if test="article.endTime!=null and article.endTime!=''">
            and create_time&lt;=#{article.endTime}
        </if>
        <if test="article.publish!=null and article.publish!=''">
            and publish = #{article.publish}
        </if>
        <if test="article.articleType!=null and article.articleType!=''">
            and article_type like concat('%',#{article.articleType},'%')
        </if>
@@ -26,7 +29,7 @@
            LIKE CONCAT ('%', #{article.keyword},'%')
        </if>
        and iswords = "0"
        order by create_time desc
        order by id desc
    </select>
    <!--查询资讯敏感词预警-->
@@ -53,7 +56,7 @@
            LIKE CONCAT ('%', #{article.keyword},'%')
        </if>
        and iswords = "1"
        order by create_time desc
        order by id desc
    </select>
    <!--查询资讯分页列表信息-->
@@ -71,7 +74,7 @@
            AND publish = 1
        </if>
        and iswords = "0"
        order by create_time desc
        order by id desc
    </select>
    <!--查询收藏资讯分页列表信息-->
@@ -94,7 +97,7 @@
            AND publish = 1
        </if>
        and iswords = "0"
        order by create_time desc
        order by id desc
    </select>
    <!--查询资讯分页列表信息-->
@@ -158,7 +161,7 @@
            AND publish = 1
        </if>
        and iswords = "0"
        order by create_time desc
        order by id desc
    </select>
    <!--查询资讯分页列表信息-->
@@ -223,7 +226,7 @@
            AND publish = 1
        </if>
        and iswords = "0"
        order by create_time desc
        order by id desc
    </select>
    <update id="upcomment">
@@ -258,6 +261,6 @@
            AND publish = 1
        </if>
        and iswords = "0" and type!=1
        order by create_time desc
        order by id desc
    </select>
</mapper>