yupeng
2025-02-10 18103fed365cae039826711f1b6848b672520214
ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml
@@ -38,10 +38,12 @@
            b.*,
            t.resident_name as residentName,
            t.phone,
            t.account
            t.account,
            h.house_name as houseName
        FROM
            t_bill b
        LEFT JOIN t_contract c ON c.contract_number = b.contract_number
        LEFT JOIN t_house h ON h.id = c.house_id
        LEFT JOIN t_tenant t ON t.id = c.tenant_id
        <where>
            <if test="query.payFeesStatus != null">
@@ -56,6 +58,9 @@
            <if test="query.contractNumber != null and query.contractNumber !=''">
                and b.contract_number = #{contractNumber}
            </if>
            <if test="query.userId != null and query.userId !=''">
                and b.contract_number = #{contractNumber}
            </if>
        </where>
    </select>
</mapper>