| | |
| | | t.create_by, |
| | | t.update_by, |
| | | t.disabled, |
| | | t.code, |
| | | t.checkMoney, |
| | | t.status, |
| | | c.contract_number, |
| | | h.house_name |
| | | h.house_name, |
| | | h.house_address |
| | | from t_check_accept_record t |
| | | left join t_contract c on t.contract_id = c.id |
| | | left join t_house h on t.house_id = h.id |
| | |
| | | </where> |
| | | ORDER BY t.create_time DESC |
| | | </select> |
| | | <select id="pageListApplet" resultType="com.ruoyi.system.vo.TCheckAcceptRecordVO"> |
| | | select |
| | | t.*, |
| | | c.contract_number, |
| | | h.house_name |
| | | from t_check_accept_record t |
| | | left join t_contract c on t.contract_id = c.id |
| | | left join t_house h on t.house_id = h.id |
| | | <where> |
| | | |
| | | <if test="query.status != null"> |
| | | AND t.status = #{query.status} |
| | | </if> |
| | | <if test="query.houseNameOrAddress != null and query.houseNameOrAddress != ''"> |
| | | AND (h.house_name LIKE concat('%', #{query.houseNameOrAddress}, '%') or h.house_address LIKE concat('%', #{query.houseNameOrAddress}, '%')) |
| | | </if> |
| | | AND t.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY t.create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |