linwe
2024-07-08 7a1e4d9fe3fe2172d5c4fba524f17ffd73ffbb3e
src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml
@@ -349,6 +349,7 @@
                and jhs.district_code = #{household.aoiCode}
            </if>
            and jh.is_deleted = 0
            and jg.grid_code is not null
            order by jh.id desc
        </where>
@@ -766,7 +767,7 @@
            and jh.is_deleted = 0
        </where>
        order by jh.create_time desc
        limit 0,10000
        limit 0,20000
    </select>
@@ -783,6 +784,11 @@
            <if test="household.communityCode != null and household.communityCode != ''">
                and jg.community_code = #{household.communityCode}
            </if>
            <if test="household.userId!=null">
                AND jg.grid_code IN ( SELECT DISTINCT jgm.grid_code FROM jczz_gridman jgm WHERE jgm.user_id =
                #{household.userId}
                )
            </if>
            <if test="household.confirmFlag != null">
                and jh.confirm_flag =  #{household.confirmFlag}
            </if>