<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.dy.pipIrrGlobal.daoTmp.ChangeMapper">
|
|
<!-- 查询出所有取水口 -->
|
<select id="selectAllPrIntakes" resultType="com.dy.pipIrrGlobal.voSt.VoIntake">
|
select id as intakeId,
|
name as intakeNum
|
from pr_intake
|
order by id ASC
|
</select>
|
|
<!-- 取水口取水量日统计相关, 此SQL中的 ”order by id ASC “不可修改 -->
|
<select id="selectOneIntakeAllAmountDay" resultType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountDay">
|
select id as id,
|
intake_id as intakeId ,
|
dt as dt,
|
amount as amount,
|
total_amount_last as totalAmountLast
|
from rm_intake_amount_day
|
where intake_id = #{intakeId}
|
order by id ASC
|
</select>
|
|
<!-- 修改取水口取水量日统计 -->
|
<update id="updateOneIntakeAmountDay" >
|
update rm_intake_amount_day
|
set amount = #{amount, jdbcType=FLOAT}
|
where id = #{id, jdbcType=BIGINT}
|
</update>
|
</mapper>
|