|  |  |  | 
|---|
|  |  |  | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | 
|---|
|  |  |  | <mapper namespace="com.dy.pipIrrGlobal.daoTmp.DeleteMapper"> | 
|---|
|  |  |  | <!-- 漏损统计相关 --> | 
|---|
|  |  |  | <select id="selectAllStLossDay" resultType="com.dy.pipIrrGlobal.voTmp.VoStLossAmountDay"> | 
|---|
|  |  |  | select id as id, | 
|---|
|  |  |  | intake_id as intakeId , | 
|---|
|  |  |  | dt as dt, | 
|---|
|  |  |  | loss_amount as amount | 
|---|
|  |  |  | from  rm_loss_day | 
|---|
|  |  |  | order by intake_id DESC, id DESC | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <delete id="deleteStLossDayById" parameterType="java.lang.Long"> | 
|---|
|  |  |  | delete from rm_loss_day | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectAllStLossMonth" resultType="com.dy.pipIrrGlobal.voTmp.VoStLossAmountMonth"> | 
|---|
|  |  |  | select id as id, | 
|---|
|  |  |  | intake_id as intakeId , | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 取水口统计相关 --> | 
|---|
|  |  |  | <select id="selectAllStIntakeDay" resultType="com.dy.pipIrrGlobal.voTmp.VoStIntakeAmountDay"> | 
|---|
|  |  |  | select id as id, | 
|---|
|  |  |  | intake_id as intakeId , | 
|---|
|  |  |  | dt as dt, | 
|---|
|  |  |  | amount as amount | 
|---|
|  |  |  | from  rm_intake_amount_day | 
|---|
|  |  |  | order by intake_id DESC, id DESC | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <delete id="deleteStIntakeDayById" parameterType="java.lang.Long"> | 
|---|
|  |  |  | delete from rm_intake_amount_day | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectAllStIntakeMonth" resultType="com.dy.pipIrrGlobal.voTmp.VoStIntakeAmountMonth"> | 
|---|
|  |  |  | select id as id, | 
|---|
|  |  |  | intake_id as intakeId , | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 农户统计相关 --> | 
|---|
|  |  |  | <select id="selectAllStClientDay" resultType="com.dy.pipIrrGlobal.voTmp.VoStClientAmountDay"> | 
|---|
|  |  |  | select id as id, | 
|---|
|  |  |  | client_id as clientId , | 
|---|
|  |  |  | dt as dt, | 
|---|
|  |  |  | amount as amount | 
|---|
|  |  |  | from  rm_client_amount_day | 
|---|
|  |  |  | order by client_id DESC, id DESC | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <delete id="deleteStClientDayById" parameterType="java.lang.Long"> | 
|---|
|  |  |  | delete from rm_client_amount_day | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectAllStClientMonth" resultType="com.dy.pipIrrGlobal.voTmp.VoStClientAmountMonth"> | 
|---|
|  |  |  | select id as id, | 
|---|
|  |  |  | client_id as clientId , | 
|---|