File was renamed from pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmIntakeAmountMapper.xml |
| | |
| | | <?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.daoRm.RmIntakeAmountMapper"> |
| | | <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmount"> |
| | | <mapper namespace="com.dy.pipIrrGlobal.daoRm.RmIntakeAmountHistoryMapper"> |
| | | <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountHistory"> |
| | | <!--@mbg.generated--> |
| | | <!--@Table rm_intake_amount--> |
| | | <!--@Table rm_intake_amount_history--> |
| | | <id column="id" jdbcType="BIGINT" property="id" /> |
| | | <result column="intakeId" jdbcType="BIGINT" property="intakeid" /> |
| | | <result column="amount" jdbcType="DOUBLE" property="amount" /> |
| | |
| | | <!--@mbg.generated--> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from rm_intake_amount |
| | | from rm_intake_amount_history |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
| | | <!--@mbg.generated--> |
| | | delete from rm_intake_amount |
| | | delete from rm_intake_amount_history |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmount"> |
| | | <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountHistory"> |
| | | <!--@mbg.generated--> |
| | | insert into rm_intake_amount (id, intakeId, amount, |
| | | insert into rm_intake_amount_history (id, intakeId, amount, |
| | | loss, controllerIdLast, dtLast, |
| | | amountLast, totalAmountLast, resourceTypeLast |
| | | ) |
| | |
| | | #{amountlast,jdbcType=DOUBLE}, #{totalamountlast,jdbcType=DOUBLE}, #{resourcetypelast,jdbcType=TINYINT} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmount"> |
| | | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountHistory"> |
| | | <!--@mbg.generated--> |
| | | insert into rm_intake_amount |
| | | insert into rm_intake_amount_history |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | id, |
| | |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmount"> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountHistory"> |
| | | <!--@mbg.generated--> |
| | | update rm_intake_amount |
| | | update rm_intake_amount_history |
| | | <set> |
| | | <if test="intakeid != null"> |
| | | intakeId = #{intakeid,jdbcType=BIGINT}, |
| | |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmount"> |
| | | <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountHistory"> |
| | | <!--@mbg.generated--> |
| | | update rm_intake_amount |
| | | update rm_intake_amount_history |
| | | set intakeId = #{intakeid,jdbcType=BIGINT}, |
| | | amount = #{amount,jdbcType=DOUBLE}, |
| | | loss = #{loss,jdbcType=DOUBLE}, |