linwe
2023-12-23 55d677758efadb6d42e6d4e595cecc2c50c20d5a
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 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>