| | |
| | | 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> |