lin
2024-04-17 8236752800e2b7a6013d05db30659f6450666bda
src/main/java/org/springblade/modules/discuss/mapper/UserTopicsMapper.xml
@@ -203,7 +203,7 @@
        LEFT JOIN jczz_house jhs on jhs.house_code= jda.address_code
        <where>
            and jt.discuss_content != '议事规则'
            and jt.discuss_content != '管理规约'
            and jt.discuss_content != '管理公约'
            <if test="id != null ">and jut.id = #{id}</if>
            <if test="name != null and name != ''">
                and bu.name like concat('%',#{name},'%')
@@ -238,6 +238,8 @@
        jh.building,
        jh.house_name,
        jh.district_name,
        jut.create_time,
        jh.area,
        (
        SELECT
        group_concat( jt.id ) AS optionContent
@@ -253,7 +255,7 @@
        FROM
        jczz_house jh
        LEFT JOIN jczz_household jhd ON jhd.house_code = jh.house_code
        AND jh.is_deleted = 0
        AND jh.is_deleted = 0 jhd.relationship = 1
        LEFT JOIN jczz_user_topics jut on jut.household_id = jhd.id
        <where>
            <if test="aoiCodeList != null and aoiCodeList.size() > 0">
@@ -263,6 +265,7 @@
                </foreach>
            </if>
        </where>
        GROUP BY id
    </select>