mitao
2025-04-04 70d2ac8e21669adb1d6ae560ac09bbfe2645de35
ruoyi-system/src/main/resources/mapper/system/THouseMapper.xml
@@ -88,7 +88,7 @@
    </select>
    <select id="getRentedArea" resultType="java.lang.Double">
        SELECT COALESCE(SUM(t1.house_area),0) FROM t_house t1
        LEFT JOIN t_contract t2 ON t1.id = t2.house_id
        LEFT JOIN t_contract t2 ON t1.id = t2.house_id AND t2.status = 4
        <where>
            t2.pay_type = 2 AND t1.lease_status != 1
            <if test="businessDeptId!=0">