|  |  |  | 
|---|
|  |  |  | order by client_id DESC, id DESC | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <delete id="deleteStClientDayById" parameterType="java.lang.Long"> | 
|---|
|  |  |  | <delete id="deleteRmClientDayById" parameterType="java.lang.Long"> | 
|---|
|  |  |  | delete from rm_client_amount_day | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  | 
|---|
|  |  |  | select id as id, | 
|---|
|  |  |  | client_id as clientId , | 
|---|
|  |  |  | year as year, | 
|---|
|  |  |  | month as month, | 
|---|
|  |  |  | amount as amount | 
|---|
|  |  |  | from  st_client_amount_month | 
|---|
|  |  |  | order by client_id DESC, id DESC | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectStClientAmountDayByYearMonth" resultType="com.dy.pipIrrGlobal.voTmp.VoStClientAmountDay"> | 
|---|
|  |  |  | select id as id, | 
|---|
|  |  |  | client_id as clientId , | 
|---|
|  |  |  | year as year, | 
|---|
|  |  |  | month as month | 
|---|
|  |  |  | from  st_client_amount_day | 
|---|
|  |  |  | where year = #{year} and month = #{month} | 
|---|
|  |  |  | order by client_id ASC, id ASC | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <delete id="deleteStClientDayById" parameterType="java.lang.Long"> | 
|---|
|  |  |  | delete from st_client_amount_day | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  | </mapper> | 
|---|