linwe
2024-08-12 c99a50faea926e3c5de693cdaabb89c457189eed
src/main/java/org/springblade/modules/smsTask/mapper/SmsTaskMapper.xml
@@ -84,9 +84,10 @@
        LEFT JOIN jczz_house jh ON jhd.house_code = jh.house_code
        LEFT JOIN jczz_district jd ON jd.aoi_code = jh.district_code
        LEFT JOIN jczz_sms_task jst ON jst.district_id = jd.id
        LEFT JOIN jczz_doorplate_address jda on jda.address_code = jhd.house_code
        <where>
            <if test="id != null">jst.id = #{id}</if>
            <if test="buildingCode != null  and buildingCode != ''">and building_code = #{buildingCode}</if>
            <if test="buildingCode != null  and buildingCode != ''">and jda.building_code = #{buildingCode}</if>
            and jhd.relationship = 1
            and bu.phone is not null
        </where>