linwe
2024-05-17 dde162ffb34f2cc0ece4ca9cfcd09e2cb42ace6d
src/main/java/org/springblade/modules/house/mapper/HouseTenantMapper.xml
@@ -55,6 +55,29 @@
        </where>
    </select>
    <select id="export" resultType="org.springblade.modules.house.excel.ExportHouseTenantExcel">
        SELECT
            jhr.house_code,
            jda.address_name,
            jht.NAME,
            jht.phone,
            jht.id_card,
            jht.domicile,
            jht.work_unit,
            jht.remark,
            jht.gender,
            jht.ethnicity,
            jht.create_time
        FROM
            jczz_house_tenant jht
                LEFT JOIN jczz_house_rental jhr ON jht.housing_rental_id = jhr.id
                LEFT JOIN jczz_doorplate_address jda on jda.address_code=jhr.house_code
        WHERE
            jht.is_deleted = 0
    </select>
    <!--根据租房id删除租户信息-->
    <update id="removeByHousingRentalId">
        update jczz_house_tenant set is_deleted = 1 where housing_rental_id = #{housingRentalId}