package com.hfkj.dao;

import com.hfkj.entity.BsGasOrder;
import com.hfkj.entity.BsGasOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;
import org.springframework.stereotype.Repository;

/**
 * 
 * 代码由工具生成,请勿修改!!!
 * 如果需要扩展请在其父类进行扩展
 * 
 **/
@Repository
public interface BsGasOrderMapper extends BsGasOrderMapperExt {
    @SelectProvider(type=BsGasOrderSqlProvider.class, method="countByExample")
    long countByExample(BsGasOrderExample example);

    @DeleteProvider(type=BsGasOrderSqlProvider.class, method="deleteByExample")
    int deleteByExample(BsGasOrderExample example);

    @Delete({
        "delete from bs_gas_order",
        "where id = #{id,jdbcType=BIGINT}"
    })
    int deleteByPrimaryKey(Long id);

    @Insert({
        "insert into bs_gas_order (order_no, order_child_no, ",
        "channel_type, channel_order_no, ",
        "agent_id, agent_name, ",
        "agent_staff_id, agent_staff_name, ",
        "user_id, user_phone, ",
        "mer_chain_brand_id, mer_chain_brand_name, ",
        "mer_id, mer_no, mer_name, ",
        "mer_address, total_deduction_price, ",
        "deduction_coupon_price, deduction_oil_price, ",
        "pay_integral, payable_price, ",
        "actual_pay_price, gas_refuel_price, ",
        "gas_settle_price, gas_agent_settle_price, ",
        "gas_service_fee_rate, gas_service_fee_price, ",
        "gas_oil_no, gas_gun_no, ",
        "gas_oil_type, gas_price_official, ",
        "gas_price_gun, gas_price_vip, ",
        "gas_price_platform, gas_price_cost, ",
        "gas_oil_liters, gas_discount, ",
        "gas_oil_subsidy, gas_liters_preferences, ",
        "gas_price_preferences, gas_class_group_id, ",
        "gas_class_group_name, gas_class_group_task_id, ",
        "gas_staff_id, gas_staff_name, ",
        "receipt_status, receipt_fail_remark, ",
        "pay_type, pay_serial_no, ",
        "pay_channel_order_no, `status`, ",
        "create_type, create_time, ",
        "cancel_time, pay_time, ",
        "refund_time, refund_remarks, ",
        "abnormal, abnormal_content, ",
        "ext_1, ext_2, ext_3, ",
        "ext_4, ext_5, ext_6)",
        "values (#{orderNo,jdbcType=VARCHAR}, #{orderChildNo,jdbcType=VARCHAR}, ",
        "#{channelType,jdbcType=INTEGER}, #{channelOrderNo,jdbcType=VARCHAR}, ",
        "#{agentId,jdbcType=BIGINT}, #{agentName,jdbcType=VARCHAR}, ",
        "#{agentStaffId,jdbcType=BIGINT}, #{agentStaffName,jdbcType=VARCHAR}, ",
        "#{userId,jdbcType=BIGINT}, #{userPhone,jdbcType=VARCHAR}, ",
        "#{merChainBrandId,jdbcType=BIGINT}, #{merChainBrandName,jdbcType=VARCHAR}, ",
        "#{merId,jdbcType=BIGINT}, #{merNo,jdbcType=VARCHAR}, #{merName,jdbcType=VARCHAR}, ",
        "#{merAddress,jdbcType=VARCHAR}, #{totalDeductionPrice,jdbcType=DECIMAL}, ",
        "#{deductionCouponPrice,jdbcType=DECIMAL}, #{deductionOilPrice,jdbcType=DECIMAL}, ",
        "#{payIntegral,jdbcType=BIGINT}, #{payablePrice,jdbcType=DECIMAL}, ",
        "#{actualPayPrice,jdbcType=DECIMAL}, #{gasRefuelPrice,jdbcType=DECIMAL}, ",
        "#{gasSettlePrice,jdbcType=DECIMAL}, #{gasAgentSettlePrice,jdbcType=DECIMAL}, ",
        "#{gasServiceFeeRate,jdbcType=DECIMAL}, #{gasServiceFeePrice,jdbcType=DECIMAL}, ",
        "#{gasOilNo,jdbcType=VARCHAR}, #{gasGunNo,jdbcType=VARCHAR}, ",
        "#{gasOilType,jdbcType=INTEGER}, #{gasPriceOfficial,jdbcType=DECIMAL}, ",
        "#{gasPriceGun,jdbcType=DECIMAL}, #{gasPriceVip,jdbcType=DECIMAL}, ",
        "#{gasPricePlatform,jdbcType=DECIMAL}, #{gasPriceCost,jdbcType=DECIMAL}, ",
        "#{gasOilLiters,jdbcType=DECIMAL}, #{gasDiscount,jdbcType=DECIMAL}, ",
        "#{gasOilSubsidy,jdbcType=DECIMAL}, #{gasLitersPreferences,jdbcType=DECIMAL}, ",
        "#{gasPricePreferences,jdbcType=DECIMAL}, #{gasClassGroupId,jdbcType=BIGINT}, ",
        "#{gasClassGroupName,jdbcType=VARCHAR}, #{gasClassGroupTaskId,jdbcType=BIGINT}, ",
        "#{gasStaffId,jdbcType=BIGINT}, #{gasStaffName,jdbcType=VARCHAR}, ",
        "#{receiptStatus,jdbcType=INTEGER}, #{receiptFailRemark,jdbcType=VARCHAR}, ",
        "#{payType,jdbcType=INTEGER}, #{paySerialNo,jdbcType=VARCHAR}, ",
        "#{payChannelOrderNo,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ",
        "#{createType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ",
        "#{cancelTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ",
        "#{refundTime,jdbcType=TIMESTAMP}, #{refundRemarks,jdbcType=VARCHAR}, ",
        "#{abnormal,jdbcType=BIT}, #{abnormalContent,jdbcType=VARCHAR}, ",
        "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ",
        "#{ext4,jdbcType=VARCHAR}, #{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})"
    })
    @Options(useGeneratedKeys=true,keyProperty="id")
    int insert(BsGasOrder record);

    @InsertProvider(type=BsGasOrderSqlProvider.class, method="insertSelective")
    @Options(useGeneratedKeys=true,keyProperty="id")
    int insertSelective(BsGasOrder record);

    @SelectProvider(type=BsGasOrderSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_child_no", property="orderChildNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="channel_type", property="channelType", jdbcType=JdbcType.INTEGER),
        @Result(column="channel_order_no", property="channelOrderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT),
        @Result(column="agent_name", property="agentName", jdbcType=JdbcType.VARCHAR),
        @Result(column="agent_staff_id", property="agentStaffId", jdbcType=JdbcType.BIGINT),
        @Result(column="agent_staff_name", property="agentStaffName", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
        @Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR),
        @Result(column="mer_chain_brand_id", property="merChainBrandId", jdbcType=JdbcType.BIGINT),
        @Result(column="mer_chain_brand_name", property="merChainBrandName", jdbcType=JdbcType.VARCHAR),
        @Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT),
        @Result(column="mer_no", property="merNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR),
        @Result(column="mer_address", property="merAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="deduction_coupon_price", property="deductionCouponPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="deduction_oil_price", property="deductionOilPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_integral", property="payIntegral", jdbcType=JdbcType.BIGINT),
        @Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="actual_pay_price", property="actualPayPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_refuel_price", property="gasRefuelPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_settle_price", property="gasSettlePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_agent_settle_price", property="gasAgentSettlePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_service_fee_rate", property="gasServiceFeeRate", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_service_fee_price", property="gasServiceFeePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_oil_no", property="gasOilNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="gas_gun_no", property="gasGunNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="gas_oil_type", property="gasOilType", jdbcType=JdbcType.INTEGER),
        @Result(column="gas_price_official", property="gasPriceOfficial", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_price_gun", property="gasPriceGun", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_price_vip", property="gasPriceVip", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_price_platform", property="gasPricePlatform", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_price_cost", property="gasPriceCost", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_oil_liters", property="gasOilLiters", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_discount", property="gasDiscount", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_oil_subsidy", property="gasOilSubsidy", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_liters_preferences", property="gasLitersPreferences", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_price_preferences", property="gasPricePreferences", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_class_group_id", property="gasClassGroupId", jdbcType=JdbcType.BIGINT),
        @Result(column="gas_class_group_name", property="gasClassGroupName", jdbcType=JdbcType.VARCHAR),
        @Result(column="gas_class_group_task_id", property="gasClassGroupTaskId", jdbcType=JdbcType.BIGINT),
        @Result(column="gas_staff_id", property="gasStaffId", jdbcType=JdbcType.BIGINT),
        @Result(column="gas_staff_name", property="gasStaffName", jdbcType=JdbcType.VARCHAR),
        @Result(column="receipt_status", property="receiptStatus", jdbcType=JdbcType.INTEGER),
        @Result(column="receipt_fail_remark", property="receiptFailRemark", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER),
        @Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_channel_order_no", property="payChannelOrderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
        @Result(column="create_type", property="createType", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="refund_remarks", property="refundRemarks", jdbcType=JdbcType.VARCHAR),
        @Result(column="abnormal", property="abnormal", jdbcType=JdbcType.BIT),
        @Result(column="abnormal_content", property="abnormalContent", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_4", property="ext4", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_5", property="ext5", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_6", property="ext6", jdbcType=JdbcType.VARCHAR)
    })
    List<BsGasOrder> selectByExample(BsGasOrderExample example);

    @Select({
        "select",
        "id, order_no, order_child_no, channel_type, channel_order_no, agent_id, agent_name, ",
        "agent_staff_id, agent_staff_name, user_id, user_phone, mer_chain_brand_id, mer_chain_brand_name, ",
        "mer_id, mer_no, mer_name, mer_address, total_deduction_price, deduction_coupon_price, ",
        "deduction_oil_price, pay_integral, payable_price, actual_pay_price, gas_refuel_price, ",
        "gas_settle_price, gas_agent_settle_price, gas_service_fee_rate, gas_service_fee_price, ",
        "gas_oil_no, gas_gun_no, gas_oil_type, gas_price_official, gas_price_gun, gas_price_vip, ",
        "gas_price_platform, gas_price_cost, gas_oil_liters, gas_discount, gas_oil_subsidy, ",
        "gas_liters_preferences, gas_price_preferences, gas_class_group_id, gas_class_group_name, ",
        "gas_class_group_task_id, gas_staff_id, gas_staff_name, receipt_status, receipt_fail_remark, ",
        "pay_type, pay_serial_no, pay_channel_order_no, `status`, create_type, create_time, ",
        "cancel_time, pay_time, refund_time, refund_remarks, abnormal, abnormal_content, ",
        "ext_1, ext_2, ext_3, ext_4, ext_5, ext_6",
        "from bs_gas_order",
        "where id = #{id,jdbcType=BIGINT}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_child_no", property="orderChildNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="channel_type", property="channelType", jdbcType=JdbcType.INTEGER),
        @Result(column="channel_order_no", property="channelOrderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT),
        @Result(column="agent_name", property="agentName", jdbcType=JdbcType.VARCHAR),
        @Result(column="agent_staff_id", property="agentStaffId", jdbcType=JdbcType.BIGINT),
        @Result(column="agent_staff_name", property="agentStaffName", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
        @Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR),
        @Result(column="mer_chain_brand_id", property="merChainBrandId", jdbcType=JdbcType.BIGINT),
        @Result(column="mer_chain_brand_name", property="merChainBrandName", jdbcType=JdbcType.VARCHAR),
        @Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT),
        @Result(column="mer_no", property="merNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR),
        @Result(column="mer_address", property="merAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="deduction_coupon_price", property="deductionCouponPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="deduction_oil_price", property="deductionOilPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_integral", property="payIntegral", jdbcType=JdbcType.BIGINT),
        @Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="actual_pay_price", property="actualPayPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_refuel_price", property="gasRefuelPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_settle_price", property="gasSettlePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_agent_settle_price", property="gasAgentSettlePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_service_fee_rate", property="gasServiceFeeRate", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_service_fee_price", property="gasServiceFeePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_oil_no", property="gasOilNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="gas_gun_no", property="gasGunNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="gas_oil_type", property="gasOilType", jdbcType=JdbcType.INTEGER),
        @Result(column="gas_price_official", property="gasPriceOfficial", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_price_gun", property="gasPriceGun", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_price_vip", property="gasPriceVip", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_price_platform", property="gasPricePlatform", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_price_cost", property="gasPriceCost", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_oil_liters", property="gasOilLiters", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_discount", property="gasDiscount", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_oil_subsidy", property="gasOilSubsidy", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_liters_preferences", property="gasLitersPreferences", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_price_preferences", property="gasPricePreferences", jdbcType=JdbcType.DECIMAL),
        @Result(column="gas_class_group_id", property="gasClassGroupId", jdbcType=JdbcType.BIGINT),
        @Result(column="gas_class_group_name", property="gasClassGroupName", jdbcType=JdbcType.VARCHAR),
        @Result(column="gas_class_group_task_id", property="gasClassGroupTaskId", jdbcType=JdbcType.BIGINT),
        @Result(column="gas_staff_id", property="gasStaffId", jdbcType=JdbcType.BIGINT),
        @Result(column="gas_staff_name", property="gasStaffName", jdbcType=JdbcType.VARCHAR),
        @Result(column="receipt_status", property="receiptStatus", jdbcType=JdbcType.INTEGER),
        @Result(column="receipt_fail_remark", property="receiptFailRemark", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER),
        @Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_channel_order_no", property="payChannelOrderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
        @Result(column="create_type", property="createType", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="refund_remarks", property="refundRemarks", jdbcType=JdbcType.VARCHAR),
        @Result(column="abnormal", property="abnormal", jdbcType=JdbcType.BIT),
        @Result(column="abnormal_content", property="abnormalContent", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_4", property="ext4", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_5", property="ext5", jdbcType=JdbcType.VARCHAR),
        @Result(column="ext_6", property="ext6", jdbcType=JdbcType.VARCHAR)
    })
    BsGasOrder selectByPrimaryKey(Long id);

    @UpdateProvider(type=BsGasOrderSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") BsGasOrder record, @Param("example") BsGasOrderExample example);

    @UpdateProvider(type=BsGasOrderSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") BsGasOrder record, @Param("example") BsGasOrderExample example);

    @UpdateProvider(type=BsGasOrderSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(BsGasOrder record);

    @Update({
        "update bs_gas_order",
        "set order_no = #{orderNo,jdbcType=VARCHAR},",
          "order_child_no = #{orderChildNo,jdbcType=VARCHAR},",
          "channel_type = #{channelType,jdbcType=INTEGER},",
          "channel_order_no = #{channelOrderNo,jdbcType=VARCHAR},",
          "agent_id = #{agentId,jdbcType=BIGINT},",
          "agent_name = #{agentName,jdbcType=VARCHAR},",
          "agent_staff_id = #{agentStaffId,jdbcType=BIGINT},",
          "agent_staff_name = #{agentStaffName,jdbcType=VARCHAR},",
          "user_id = #{userId,jdbcType=BIGINT},",
          "user_phone = #{userPhone,jdbcType=VARCHAR},",
          "mer_chain_brand_id = #{merChainBrandId,jdbcType=BIGINT},",
          "mer_chain_brand_name = #{merChainBrandName,jdbcType=VARCHAR},",
          "mer_id = #{merId,jdbcType=BIGINT},",
          "mer_no = #{merNo,jdbcType=VARCHAR},",
          "mer_name = #{merName,jdbcType=VARCHAR},",
          "mer_address = #{merAddress,jdbcType=VARCHAR},",
          "total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL},",
          "deduction_coupon_price = #{deductionCouponPrice,jdbcType=DECIMAL},",
          "deduction_oil_price = #{deductionOilPrice,jdbcType=DECIMAL},",
          "pay_integral = #{payIntegral,jdbcType=BIGINT},",
          "payable_price = #{payablePrice,jdbcType=DECIMAL},",
          "actual_pay_price = #{actualPayPrice,jdbcType=DECIMAL},",
          "gas_refuel_price = #{gasRefuelPrice,jdbcType=DECIMAL},",
          "gas_settle_price = #{gasSettlePrice,jdbcType=DECIMAL},",
          "gas_agent_settle_price = #{gasAgentSettlePrice,jdbcType=DECIMAL},",
          "gas_service_fee_rate = #{gasServiceFeeRate,jdbcType=DECIMAL},",
          "gas_service_fee_price = #{gasServiceFeePrice,jdbcType=DECIMAL},",
          "gas_oil_no = #{gasOilNo,jdbcType=VARCHAR},",
          "gas_gun_no = #{gasGunNo,jdbcType=VARCHAR},",
          "gas_oil_type = #{gasOilType,jdbcType=INTEGER},",
          "gas_price_official = #{gasPriceOfficial,jdbcType=DECIMAL},",
          "gas_price_gun = #{gasPriceGun,jdbcType=DECIMAL},",
          "gas_price_vip = #{gasPriceVip,jdbcType=DECIMAL},",
          "gas_price_platform = #{gasPricePlatform,jdbcType=DECIMAL},",
          "gas_price_cost = #{gasPriceCost,jdbcType=DECIMAL},",
          "gas_oil_liters = #{gasOilLiters,jdbcType=DECIMAL},",
          "gas_discount = #{gasDiscount,jdbcType=DECIMAL},",
          "gas_oil_subsidy = #{gasOilSubsidy,jdbcType=DECIMAL},",
          "gas_liters_preferences = #{gasLitersPreferences,jdbcType=DECIMAL},",
          "gas_price_preferences = #{gasPricePreferences,jdbcType=DECIMAL},",
          "gas_class_group_id = #{gasClassGroupId,jdbcType=BIGINT},",
          "gas_class_group_name = #{gasClassGroupName,jdbcType=VARCHAR},",
          "gas_class_group_task_id = #{gasClassGroupTaskId,jdbcType=BIGINT},",
          "gas_staff_id = #{gasStaffId,jdbcType=BIGINT},",
          "gas_staff_name = #{gasStaffName,jdbcType=VARCHAR},",
          "receipt_status = #{receiptStatus,jdbcType=INTEGER},",
          "receipt_fail_remark = #{receiptFailRemark,jdbcType=VARCHAR},",
          "pay_type = #{payType,jdbcType=INTEGER},",
          "pay_serial_no = #{paySerialNo,jdbcType=VARCHAR},",
          "pay_channel_order_no = #{payChannelOrderNo,jdbcType=VARCHAR},",
          "`status` = #{status,jdbcType=INTEGER},",
          "create_type = #{createType,jdbcType=INTEGER},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "cancel_time = #{cancelTime,jdbcType=TIMESTAMP},",
          "pay_time = #{payTime,jdbcType=TIMESTAMP},",
          "refund_time = #{refundTime,jdbcType=TIMESTAMP},",
          "refund_remarks = #{refundRemarks,jdbcType=VARCHAR},",
          "abnormal = #{abnormal,jdbcType=BIT},",
          "abnormal_content = #{abnormalContent,jdbcType=VARCHAR},",
          "ext_1 = #{ext1,jdbcType=VARCHAR},",
          "ext_2 = #{ext2,jdbcType=VARCHAR},",
          "ext_3 = #{ext3,jdbcType=VARCHAR},",
          "ext_4 = #{ext4,jdbcType=VARCHAR},",
          "ext_5 = #{ext5,jdbcType=VARCHAR},",
          "ext_6 = #{ext6,jdbcType=VARCHAR}",
        "where id = #{id,jdbcType=BIGINT}"
    })
    int updateByPrimaryKey(BsGasOrder record);
}