From 82e4870fa7b15f931cc593dc8a1a5f273cde930f Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期六, 08 二月 2025 17:20:26 +0800 Subject: [PATCH] 房屋合同 --- ruoyi-system/src/main/resources/mapper/system/TContractMapper.xml | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/TContractMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TContractMapper.xml index ecb72ec..09c437c 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TContractMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TContractMapper.xml @@ -87,5 +87,16 @@ AND t2.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} AND t3.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} </select> + <select id="contractExportList" resultType="com.ruoyi.system.model.TContract"> + select t1.*,t2.contract_number as contractNumber,t3.resident_name as residentName,t3.phone as phone + from t_bill t1 + left join t_contract t2 on t1.contract_id = t2.id + left join t_resident t3 on t2.tenant_id = t3.id + where t2.id = #{query.id} + and (t1.pay_fees_status = 1 or t1.pay_fees_status = 4) + AND t1.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} + AND t2.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} + AND t3.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} + </select> </mapper> -- Gitblit v1.7.1