|  |  | 
 |  |  |     </update> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     <delete id="deleteAllIntakeAmountDay"> | 
 |  |  |         delete from rm_intake_amount_day | 
 |  |  |     <delete id="deleteSomeIntakeAmountDay"> | 
 |  |  |         delete from rm_intake_amount_day where times is null | 
 |  |  |     </delete> | 
 |  |  |  | 
 |  |  |     <!--  --> | 
 |  |  | 
 |  |  |         sum(cl_this_money) as money, | 
 |  |  |         count(id) as times | 
 |  |  |         from  rm_open_close_valve_history | 
 |  |  |         where cl_dt <![CDATA[>=]]> #{startDt, jdbcType=DATE} | 
 |  |  |         and cl_dt <![CDATA[<=]]> #{endDt, jdbcType=DATE} | 
 |  |  |         where cl_dt <![CDATA[>=]]> #{startDt, jdbcType=TIMESTAMP} | 
 |  |  |         and cl_dt <![CDATA[<=]]> #{endDt, jdbcType=TIMESTAMP} | 
 |  |  |         group by intake_id | 
 |  |  |     </select> | 
 |  |  |     <select id="selectStIntakeDayStatisticsByDate" resultType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountDay"> |