linwei
2024-02-22 7bcd0d2d7510cb2ba67099cd768e1b2b6d047dc2
src/main/java/org/springblade/modules/discuss/mapper/UserTopicsMapper.xml
@@ -30,9 +30,8 @@
    <select id="selectUserTopicsPage" resultMap="userTopicsResultMap">
        SELECT
        SELECT distinct
        jut.article_id,
        jut.id,
        jut.delete_flag,
        jut.signature_path,
        jut.create_time,
@@ -54,6 +53,14 @@
            <if test="userTopics.phone != null and userTopics.phone != ''">
                and bu.phone like concat('%',#{userTopics.phone},'%')
            </if>
            <if test="userTopics.aoiCodeList != null and userTopics.aoiCodeList.size() > 0">
                and jda.aoi_code in
                <foreach collection="userTopics.aoiCodeList" item="code" open="(" close=")" separator=",">
                    #{code}
                </foreach>
            </if>
            <if test="userTopics.userId != null ">and jut.user_id = #{userTopics.userId}</if>
            <if test="userTopics.topicsId != null ">and jut.topics_id = #{userTopics.topicsId}</if>
            <if test="userTopics.createTime != null ">and jut.create_time = #{userTopics.createTime}</if>
@@ -61,7 +68,7 @@
            <if test="userTopics.deleteFlag != null ">and jut.delete_flag = #{userTopics.deleteFlag}</if>
            <if test="userTopics.articleId != null ">and jut.article_id = #{userTopics.articleId}
                and jut.delete_flag = 0
                GROUP BY jut.article_id, jut.signature_path,jut.create_time,jut.id,jut.delete_flag,
                GROUP BY jut.article_id, jut.signature_path,jut.create_time,jut.delete_flag,
                bu.avatar,
                bu.`name`,
                bu.phone,