| | |
| | | </if> |
| | | <if test="query.keyword != null and query.keyword != ''"> |
| | | AND (pt.point_name like concat('%', #{query.keyword}, '%') OR p.yw_person_name like concat('%', #{query.keyword}, '%')) |
| | | </if> |
| | | <if test="query.reportTimeStart != null and query.reportTimeEnd != null"> |
| | | AND r.create_time BETWEEN #{query.reportTimeStart} AND #{query.reportTimeEnd} |
| | | </if> |
| | | <if test="query.effectTimeStart != null"> |
| | | AND r.begin_create_time >= #{query.effectTimeStart} |
| | | </if> |
| | | <if test="query.effectTimeEnd != null"> |
| | | AND r.end_create_time <= #{query.effectTimeEnd} |
| | | </if> |
| | | GROUP BY |
| | | r.id, r.report_materials, r.create_time, r.report_type, r.report_content, r.status, r.serial_number, |