zhongrj
2024-03-20 6996c14f7b7ead06f8a38af8b62063e0165135a4
src/main/java/org/springblade/modules/property/mapper/PropertyDistrictUserMapper.xml
@@ -12,7 +12,17 @@
    <select id="selectPropertyDistrictUserPage" resultMap="propertyDistrictUserResultMap">
        select * from jczz_property_district_user where is_deleted = 0
        select *
        from jczz_property_district_user
        where is_deleted = 0
    </select>
    <select id="selectPropertyDistrictByUserId" resultType="java.lang.String">
        SELECT distinct pcd.district_id
        FROM jczz_property_company_district pcd
        LEFT JOIN jczz_property_district_user pdu ON pcd.id = pdu.property_company_district_id
        where pdu.user_id = #{userId}
    </select>