| | |
| | | LEFT JOIN t_item i ON t.item_id = i.id |
| | | LEFT JOIN t_item_type it ON t.item_type_id = it.id |
| | | LEFT JOIN t_tenant tnt ON t.tenant_id = tnt.id |
| | | LEFT JOIN t_contract tc ON t.contract_id = tc.id |
| | | <where> |
| | | <if test="query.residentName != null and query.residentName != ''"> |
| | | AND tnt.resident_name LIKE CONCAT('%', #{query.residentName}, '%') |
| | |
| | | <if test="query.handlePerson != null and query.handlePerson != ''"> |
| | | AND t.handle_person LIKE CONCAT('%', #{query.handlePerson}, '%') |
| | | </if> |
| | | <if test="query.businessDeptId != null and query.businessDeptId != '' and query.businessDeptId != '0'"> |
| | | AND tc.business_dept_id = #{query.businessDeptId} |
| | | </if> |
| | | AND t.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY t.create_time DESC |