| | |
| | | <if test="reportFloodRecord.isAudit != null and reportFloodRecord.isAudit !=''"> |
| | | AND r.is_audit = #{reportFloodRecord.isAudit} |
| | | </if> |
| | | <if test="reportFloodRecord.reservoirId !=null and reportFloodRecord.reservoirId !=''"> |
| | | AND r.reservoir_id = #{reportFloodRecord.reservoirId} |
| | | </if> |
| | | <if test="reportFloodRecord.startTime !=null and reportFloodRecord.startTime !=''"> |
| | | AND DATE_FORMAT(r.create_time,'%Y-%m-%d') >= #{reportFloodRecord.startTime} |
| | | </if> |
| | | <if test="reportFloodRecord.endTime !=null and reportFloodRecord.endTime !=''"> |
| | | AND DATE_FORMAT(r.create_time,'%Y-%m-%d') <= #{reportFloodRecord.endTime} |
| | | </if> |
| | | ORDER BY CREATE_TIME DESC |
| | | </select> |
| | | <select id="customizeGetDetail" resultMap="vo"> |