id, controller_id, intake_id, rtu_addr, op_dt, op_rtu_dt, op_ic_card_addr, op_ic_card_no, op_order_no, open_dt, op_water_total_amount, op_ele_total_amount, op_money_remain_user, op_water_remain_user, op_type, cl_ic_card_addr, cl_ic_card_no, cl_order_no, start_dt, end_dt, cl_water_total_amount, cl_ele_total_amount, cl_money_remain_user, cl_water_remain_user, this_ele, this_water, this_money, this_duration delete from rm_open_close_history where id = #{id,jdbcType=BIGINT} insert into rm_open_close_history (id, controller_id, intake_id, rtu_addr, op_dt, op_rtu_dt, op_ic_card_addr, op_ic_card_no, op_order_no, open_dt, op_water_total_amount, op_ele_total_amount, op_money_remain_user, op_water_remain_user, op_type, cl_ic_card_addr, cl_ic_card_no, cl_order_no, start_dt, end_dt, cl_water_total_amount, cl_ele_total_amount, cl_money_remain_user, cl_water_remain_user, this_ele, this_water, this_money, this_duration) values (#{id,jdbcType=BIGINT}, #{controllerId,jdbcType=BIGINT}, #{intakeId,jdbcType=BIGINT}, #{rtuAddr,jdbcType=VARCHAR}, #{opDt,jdbcType=TIMESTAMP}, #{opRtuDt,jdbcType=TIMESTAMP}, #{opIcCardAddr,jdbcType=VARCHAR}, #{opIcCardNo,jdbcType=VARCHAR}, #{opOrderNo,jdbcType=VARCHAR}, #{openDt,jdbcType=TIMESTAMP}, #{opWaterTotalAmount,jdbcType=FLOAT}, #{opEleTotalAmount,jdbcType=FLOAT}, #{opMoneyRemainUser,jdbcType=FLOAT}, #{opWaterRemainUser,jdbcType=FLOAT}, #{opType,jdbcType=TINYINT}, #{clIcCardAddr,jdbcType=VARCHAR}, #{clIcCardNo,jdbcType=VARCHAR}, #{clOrderNo,jdbcType=VARCHAR}, #{startDt,jdbcType=TIMESTAMP}, #{endDt,jdbcType=TIMESTAMP}, #{clWaterTotalAmount,jdbcType=FLOAT}, #{clEleTotalAmount,jdbcType=FLOAT}, #{clMoneyRemainUser,jdbcType=FLOAT}, #{clWaterRemainUser,jdbcType=FLOAT}, #{thisEle,jdbcType=FLOAT}, #{thisWater,jdbcType=FLOAT}, #{thisMoney,jdbcType=FLOAT}, #{thisDuration,jdbcType=INTEGER}) insert into rm_open_close_history id, controller_id, intake_id, rtu_addr, op_dt, op_rtu_dt, op_ic_card_addr, op_ic_card_no, op_order_no, open_dt, op_water_total_amount, op_ele_total_amount, op_money_remain_user, op_water_remain_user, op_type, cl_ic_card_addr, cl_ic_card_no, cl_order_no, start_dt, end_dt, cl_water_total_amount, cl_ele_total_amount, cl_money_remain_user, cl_water_remain_user, this_ele, this_water, this_money, this_duration, #{id,jdbcType=BIGINT}, #{controllerId,jdbcType=BIGINT}, #{intakeId,jdbcType=BIGINT}, #{rtuAddr,jdbcType=VARCHAR}, #{opDt,jdbcType=TIMESTAMP}, #{opRtuDt,jdbcType=TIMESTAMP}, #{opIcCardAddr,jdbcType=VARCHAR}, #{opIcCardNo,jdbcType=VARCHAR}, #{opOrderNo,jdbcType=VARCHAR}, #{openDt,jdbcType=TIMESTAMP}, #{opWaterTotalAmount,jdbcType=FLOAT}, #{opEleTotalAmount,jdbcType=FLOAT}, #{opMoneyRemainUser,jdbcType=FLOAT}, #{opWaterRemainUser,jdbcType=FLOAT}, #{opType,jdbcType=TINYINT}, #{clIcCardAddr,jdbcType=VARCHAR}, #{clIcCardNo,jdbcType=VARCHAR}, #{clOrderNo,jdbcType=VARCHAR}, #{startDt,jdbcType=TIMESTAMP}, #{endDt,jdbcType=TIMESTAMP}, #{clWaterTotalAmount,jdbcType=FLOAT}, #{clEleTotalAmount,jdbcType=FLOAT}, #{clMoneyRemainUser,jdbcType=FLOAT}, #{clWaterRemainUser,jdbcType=FLOAT}, #{thisEle,jdbcType=FLOAT}, #{thisWater,jdbcType=FLOAT}, #{thisMoney,jdbcType=FLOAT}, #{thisDuration,jdbcType=INTEGER}, update rm_open_close_history controller_id = #{controllerId,jdbcType=BIGINT}, intake_id = #{intakeId,jdbcType=BIGINT}, rtu_addr = #{rtuAddr,jdbcType=VARCHAR}, op_dt = #{opDt,jdbcType=TIMESTAMP}, op_rtu_dt = #{opRtuDt,jdbcType=TIMESTAMP}, op_ic_card_addr = #{opIcCardAddr,jdbcType=VARCHAR}, op_ic_card_no = #{opIcCardNo,jdbcType=VARCHAR}, op_order_no = #{opOrderNo,jdbcType=VARCHAR}, open_dt = #{openDt,jdbcType=TIMESTAMP}, op_water_total_amount = #{opWaterTotalAmount,jdbcType=FLOAT}, op_ele_total_amount = #{opEleTotalAmount,jdbcType=FLOAT}, op_money_remain_user = #{opMoneyRemainUser,jdbcType=FLOAT}, op_water_remain_user = #{opWaterRemainUser,jdbcType=FLOAT}, op_type = #{opType,jdbcType=TINYINT}, cl_ic_card_addr = #{clIcCardAddr,jdbcType=VARCHAR}, cl_ic_card_no = #{clIcCardNo,jdbcType=VARCHAR}, cl_order_no = #{clOrderNo,jdbcType=VARCHAR}, start_dt = #{startDt,jdbcType=TIMESTAMP}, end_dt = #{endDt,jdbcType=TIMESTAMP}, cl_water_total_amount = #{clWaterTotalAmount,jdbcType=FLOAT}, cl_ele_total_amount = #{clEleTotalAmount,jdbcType=FLOAT}, cl_money_remain_user = #{clMoneyRemainUser,jdbcType=FLOAT}, cl_water_remain_user = #{clWaterRemainUser,jdbcType=FLOAT}, this_ele = #{thisEle,jdbcType=FLOAT}, this_water = #{thisWater,jdbcType=FLOAT}, this_money = #{thisMoney,jdbcType=FLOAT}, this_duration = #{thisDuration,jdbcType=INTEGER}, where id = #{id,jdbcType=BIGINT} update rm_open_close_history set controller_id = #{controllerId,jdbcType=BIGINT}, intake_id = #{intakeId,jdbcType=BIGINT}, rtu_addr = #{rtuAddr,jdbcType=VARCHAR}, op_dt = #{opDt,jdbcType=TIMESTAMP}, op_rtu_dt = #{opRtuDt,jdbcType=TIMESTAMP}, op_ic_card_addr = #{opIcCardAddr,jdbcType=VARCHAR}, op_ic_card_no = #{opIcCardNo,jdbcType=VARCHAR}, op_order_no = #{opOrderNo,jdbcType=VARCHAR}, open_dt = #{openDt,jdbcType=TIMESTAMP}, op_water_total_amount = #{opWaterTotalAmount,jdbcType=FLOAT}, op_ele_total_amount = #{opEleTotalAmount,jdbcType=FLOAT}, op_money_remain_user = #{opMoneyRemainUser,jdbcType=FLOAT}, op_water_remain_user = #{opWaterRemainUser,jdbcType=FLOAT}, op_type = #{opType,jdbcType=TINYINT}, cl_ic_card_addr = #{clIcCardAddr,jdbcType=VARCHAR}, cl_ic_card_no = #{clIcCardNo,jdbcType=VARCHAR}, cl_order_no = #{clOrderNo,jdbcType=VARCHAR}, start_dt = #{startDt,jdbcType=TIMESTAMP}, end_dt = #{endDt,jdbcType=TIMESTAMP}, cl_water_total_amount = #{clWaterTotalAmount,jdbcType=FLOAT}, cl_ele_total_amount = #{clEleTotalAmount,jdbcType=FLOAT}, cl_money_remain_user = #{clMoneyRemainUser,jdbcType=FLOAT}, cl_water_remain_user = #{clWaterRemainUser,jdbcType=FLOAT}, this_ele = #{thisEle,jdbcType=FLOAT}, this_water = #{thisWater,jdbcType=FLOAT}, this_money = #{thisMoney,jdbcType=FLOAT}, this_duration = #{thisDuration,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT}