| | |
| | | AND t.check_time >= #{query.startTime} |
| | | AND t.check_time <= #{query.endTime} |
| | | </if> |
| | | <if test="query.businessDeptId != null and query.businessDeptId != '' and query.businessDeptId != 0"> |
| | | AND c.business_dept_id = #{query.businessDeptId} |
| | | </if> |
| | | AND t.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY t.create_time DESC |
| | |
| | | left join t_house h on t.house_id = h.id |
| | | <where> |
| | | |
| | | <if test="query.status != null and query.status != ''"> |
| | | AND t.status = #{query.status} |
| | | <if test="query.status != null and query.status != '' and query.status == 1"> |
| | | AND t.status = 0 |
| | | </if> |
| | | <if test="query.status != null and query.status != '' and query.status == 2"> |
| | | AND t.status = 1 |
| | | </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> |
| | | <if test="query.businessDeptId != null and query.businessDeptId != '' and query.businessDeptId!=0"> |
| | | AND h.business_dept_id =#{query.businessDeptId} |
| | | </if> |
| | | AND t.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY t.create_time DESC |