lin
2024-04-19 73ceaaa73dd6b73808aac425c70e0d9184f9f415
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>