| | |
| | | AND r.reservoir_id = #{reportFloodRecord.reservoirId} |
| | | </if> |
| | | <if test="reportFloodRecord.startTime !=null and reportFloodRecord.startTime !=''"> |
| | | AND DATE_FORMAT(r.report_time,'%Y-%m-%d') >= #{reportFloodRecord.startTime} |
| | | AND r.report_time >= #{reportFloodRecord.startTime} |
| | | </if> |
| | | <if test="reportFloodRecord.endTime !=null and reportFloodRecord.endTime !=''"> |
| | | AND DATE_FORMAT(r.report_time,'%Y-%m-%d') <= #{reportFloodRecord.endTime} |
| | | AND r.report_time <= #{reportFloodRecord.endTime} |
| | | </if> |
| | | <if test="reportFloodRecord.createUser !=null and reportFloodRecord.createUser !=''"> |
| | | AND r.create_user = #{reportFloodRecord.createUser} |