linwe
2024-08-09 8b7258c9427882bb1798f1502eaa35184c6e374e
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>