| | |
| | | <result column="loss_amount" jdbcType="FLOAT" property="lossAmount" /> |
| | | <result column="water_press" jdbcType="FLOAT" property="waterPress" /> |
| | | <result column="battery_volt" jdbcType="FLOAT" property="batteryVolt" /> |
| | | <result column="sun_volt" jdbcType="FLOAT" property="sunVolt" /> |
| | | <result column="signal_value" jdbcType="INTEGER" property="signalValue" /> |
| | | <result column="water_price" jdbcType="FLOAT" property="waterPrice" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List"> |
| | | <!--@mbg.generated--> |
| | | id, controller_id, intake_id, rtu_addr, dt, rtu_dt, instant_amount, total_amount, |
| | | loss_amount, water_press, battery_volt, sun_volt, signal_value, water_price |
| | | loss_amount, water_press, battery_volt, signal_value, water_price |
| | | </sql> |
| | | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
| | | <!--@mbg.generated--> |
| | |
| | | insert into rm_on_hour_report_history (id, controller_id, intake_id, |
| | | rtu_addr, dt, rtu_dt, |
| | | instant_amount, total_amount, loss_amount, |
| | | water_press, battery_volt, sun_volt, |
| | | water_press, battery_volt, |
| | | signal_value, water_price) |
| | | values (#{id,jdbcType=BIGINT}, #{controllerId,jdbcType=BIGINT}, #{intakeId,jdbcType=BIGINT}, |
| | | #{rtuAddr,jdbcType=VARCHAR}, #{dt,jdbcType=TIMESTAMP}, #{rtuDt,jdbcType=TIMESTAMP}, |
| | | #{instantAmount,jdbcType=FLOAT}, #{totalAmount,jdbcType=FLOAT}, #{lossAmount,jdbcType=FLOAT}, |
| | | #{waterPress,jdbcType=FLOAT}, #{batteryVolt,jdbcType=FLOAT}, #{sunVolt,jdbcType=FLOAT}, |
| | | #{waterPress,jdbcType=FLOAT}, #{batteryVolt,jdbcType=FLOAT}, |
| | | #{signalValue,jdbcType=INTEGER}, #{waterPrice,jdbcType=FLOAT}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmOnHourReportHistory"> |
| | |
| | | </if> |
| | | <if test="batteryVolt != null"> |
| | | battery_volt, |
| | | </if> |
| | | <if test="sunVolt != null"> |
| | | sun_volt, |
| | | </if> |
| | | <if test="signalValue != null"> |
| | | signal_value, |
| | |
| | | </if> |
| | | <if test="batteryVolt != null"> |
| | | #{batteryVolt,jdbcType=FLOAT}, |
| | | </if> |
| | | <if test="sunVolt != null"> |
| | | #{sunVolt,jdbcType=FLOAT}, |
| | | </if> |
| | | <if test="signalValue != null"> |
| | | #{signalValue,jdbcType=INTEGER}, |
| | |
| | | <if test="batteryVolt != null"> |
| | | battery_volt = #{batteryVolt,jdbcType=FLOAT}, |
| | | </if> |
| | | <if test="sunVolt != null"> |
| | | sun_volt = #{sunVolt,jdbcType=FLOAT}, |
| | | </if> |
| | | <if test="signalValue != null"> |
| | | signal_value = #{signalValue,jdbcType=INTEGER}, |
| | | </if> |
| | |
| | | loss_amount = #{lossAmount,jdbcType=FLOAT}, |
| | | water_press = #{waterPress,jdbcType=FLOAT}, |
| | | battery_volt = #{batteryVolt,jdbcType=FLOAT}, |
| | | sun_volt = #{sunVolt,jdbcType=FLOAT}, |
| | | signal_value = #{signalValue,jdbcType=INTEGER}, |
| | | water_price = #{waterPrice,jdbcType=FLOAT} |
| | | where id = #{id,jdbcType=BIGINT} |