<?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.boco.nbd.wios.manage.mapper.def.OrderInstallMapper">
  
<resultMap id="BaseResultMap" type="com.boco.nbd.wios.manage.entity.bo.OrderInstall">
  <id column="id" jdbcType="INTEGER" property="id" />
  <result column="order_id" jdbcType="VARCHAR" property="orderId" />
  <result column="third_user_id" jdbcType="VARCHAR" property="thirdUserId" />
  <result column="pay_status" jdbcType="INTEGER" property="payStatus" />
  <result column="vehicle_chassis_number" jdbcType="VARCHAR" property="vehicleChassisNumber" />
  <result column="wallbox_no" jdbcType="VARCHAR" property="wallboxNo" />
  <result column="wallbox_quantity" jdbcType="INTEGER" property="wallboxQuantity" />
  <result column="wallbox_item_id" jdbcType="VARCHAR" property="wallboxItemId" />
  <result column="house_type" jdbcType="INTEGER" property="houseType" />
  <result column="parking_type" jdbcType="INTEGER" property="parkingType" />
  <result column="address" jdbcType="VARCHAR" property="address" />
  <result column="electric_expand" jdbcType="INTEGER" property="electricExpand" />
  <result column="electric_method" jdbcType="INTEGER" property="electricMethod" />
  <result column="install_power_type" jdbcType="VARCHAR" property="installPowerType" />
  <result column="install_power_remark" jdbcType="VARCHAR" property="installPowerRemark" />
  <result column="install_power_position" jdbcType="VARCHAR" property="installPowerPosition" />
  <result column="parking_no" jdbcType="VARCHAR" property="parkingNo" />
  <result column="real_install_type" jdbcType="INTEGER" property="realInstallType" />
  <result column="real_cable_type" jdbcType="VARCHAR" property="realCableType" />
  <result column="real_cable_meter" jdbcType="VARCHAR" property="realCableMeter" />
  <result column="real_cable_install_type" jdbcType="INTEGER" property="realCableInstallType" />
  <result column="predict_over_item" jdbcType="VARCHAR" property="predictOverItem" />
  <result column="predict_total_fee" jdbcType="DECIMAL" property="predictTotalFee" />
  <result column="expand_fee" jdbcType="DECIMAL" property="expandFee" />
  <result column="debug_check" jdbcType="VARCHAR" property="debugCheck" />
  <result column="attachment" jdbcType="VARCHAR" property="attachment" />
  <result column="train_content" jdbcType="VARCHAR" property="trainContent" />
  <result column="install_remark" jdbcType="VARCHAR" property="installRemark" />
  <result column="user_wallbox_pic" jdbcType="VARCHAR" property="userWallboxPic" />
  <result column="wallbox_nameplate_pic" jdbcType="VARCHAR" property="wallboxNameplatePic" />
  <result column="void_open_pic" jdbcType="VARCHAR" property="voidOpenPic" />
  <result column="leakage_protect_pic" jdbcType="VARCHAR" property="leakageProtectPic" />
  <result column="client_rate" jdbcType="INTEGER" property="clientRate" />
  <result column="client_signature" jdbcType="VARCHAR" property="clientSignature" />
  <result column="install_attachment_files" jdbcType="VARCHAR" property="installAttachmentFiles" />
  <result column="create_account" jdbcType="VARCHAR" property="createAccount" />
  <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  <result column="modify_account" jdbcType="VARCHAR" property="modifyAccount" />
  <result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
</resultMap>

  
<sql id="Base_Column_List">
  id, order_id, third_user_id, pay_status, vehicle_chassis_number, wallbox_no, wallbox_quantity, wallbox_item_id,
  house_type, parking_type, address, electric_expand,expand_method, install_power_type,install_power_remark,install_power_position,
  parking_no, real_install_type, real_cable_type, real_cable_meter, real_cable_install_type, 
  predict_over_item, predict_total_fee, expand_fee, debug_check, attachment, train_content, 
  install_remark, user_wallbox_pic, wallbox_nameplate_pic, void_open_pic, leakage_protect_pic, 
  client_rate, client_signature, install_attachment_files, create_account, create_time, modify_account,
  modify_time
</sql>

  
<delete id="delete" parameterType="java.lang.Integer">
  delete from t_order_install
  where id = #{id,jdbcType=INTEGER}
</delete>

  
<insert id="insert" parameterType="com.boco.nbd.wios.manage.entity.bo.OrderInstall"
useGeneratedKeys="true" keyProperty="id" >
  insert into t_order_install (id, order_id, third_user_id, pay_status,
    vehicle_chassis_number, wallbox_no, wallbox_quantity, 
    wallbox_item_id, house_type, parking_type, 
    address, electric_expand,expand_method, install_power_type, install_power_remark,
    install_power_position, parking_no, real_install_type, 
    real_cable_type, real_cable_meter, real_cable_install_type, 
    predict_over_item, predict_total_fee, expand_fee, 
    debug_check, attachment, train_content, 
    install_remark, user_wallbox_pic, wallbox_nameplate_pic, 
    void_open_pic, leakage_protect_pic, client_rate, client_signature,
    install_attachment_files, create_account, 
    create_time, modify_account, modify_time
    )
  values (#{id,jdbcType=INTEGER}, #{orderId,jdbcType=VARCHAR}, #{thirdUserId,jdbcType=VARCHAR}, #{payStatus,jdbcType=INTEGER},
    #{vehicleChassisNumber,jdbcType=VARCHAR}, #{wallboxNo,jdbcType=VARCHAR}, #{wallboxQuantity,jdbcType=INTEGER}, 
    #{wallboxItemId,jdbcType=VARCHAR}, #{houseType,jdbcType=INTEGER}, #{parkingType,jdbcType=INTEGER}, 
    #{address,jdbcType=VARCHAR}, #{electricExpand,jdbcType=INTEGER}, #{expandMethod,jdbcType=INTEGER}, #{installPowerType,jdbcType=VARCHAR}, 
    #{installPowerRemark,jdbcType=VARCHAR}, #{installPowerPosition,jdbcType=VARCHAR}, #{parkingNo,jdbcType=VARCHAR}, #{realInstallType,jdbcType=INTEGER},
    #{realCableType,jdbcType=VARCHAR}, #{realCableMeter,jdbcType=VARCHAR}, #{realCableInstallType,jdbcType=INTEGER}, 
    #{predictOverItem,jdbcType=VARCHAR}, #{predictTotalFee,jdbcType=DECIMAL}, #{expandFee,jdbcType=DECIMAL}, 
    #{debugCheck,jdbcType=VARCHAR}, #{attachment,jdbcType=VARCHAR}, #{trainContent,jdbcType=VARCHAR}, 
    #{installRemark,jdbcType=VARCHAR}, #{userWallboxPic,jdbcType=VARCHAR}, #{wallboxNameplatePic,jdbcType=VARCHAR}, 
    #{voidOpenPic,jdbcType=VARCHAR}, #{leakageProtectPic,jdbcType=VARCHAR}, #{clientRate,jdbcType=INTEGER}, #{clientSignature,jdbcType=VARCHAR},
    #{installAttachmentFiles,jdbcType=VARCHAR}, #{createAccount,jdbcType=VARCHAR}, 
    #{createTime,jdbcType=TIMESTAMP}, #{modifyAccount,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}
    )
</insert>

  
<insert id="insertDynamic" parameterType="com.boco.nbd.wios.manage.entity.bo.OrderInstall">
  insert into t_order_install
  <trim prefix="(" suffix=")" suffixOverrides=",">
    <if test="id != null">
      id,
    </if>
    <if test="orderId != null">
      order_id,
    </if>
    <if test="thirdUserId != null">
      third_user_id,
    </if>
    <if test="payStatus != null">
      pay_status,
    </if>
    <if test="vehicleChassisNumber != null">
      vehicle_chassis_number,
    </if>
    <if test="wallboxNo != null">
      wallbox_no,
    </if>
    <if test="wallboxQuantity != null">
      wallbox_quantity,
    </if>
    <if test="wallboxItemId != null">
      wallbox_item_id,
    </if>
    <if test="houseType != null">
      house_type,
    </if>
    <if test="parkingType != null">
      parking_type,
    </if>
    <if test="address != null">
      address,
    </if>
    <if test="electricExpand != null">
      electric_expand,
    </if>
    <if test="expandMethod != null">
      expand_method,
    </if>
    <if test="installPowerType != null">
      install_power_type,
    </if>
    <if test="installPowerRemark != null">
      install_power_remark,
    </if>
    <if test="installPowerPosition != null">
      install_power_position,
    </if>
    <if test="parkingNo != null">
      parking_no,
    </if>
    <if test="realInstallType != null">
      real_install_type,
    </if>
    <if test="realCableType != null">
      real_cable_type,
    </if>
    <if test="realCableMeter != null">
      real_cable_meter,
    </if>
    <if test="realCableInstallType != null">
      real_cable_install_type,
    </if>
    <if test="predictOverItem != null">
      predict_over_item,
    </if>
    <if test="predictTotalFee != null">
      predict_total_fee,
    </if>
    <if test="expandFee != null">
      expand_fee,
    </if>
    <if test="debugCheck != null">
      debug_check,
    </if>
    <if test="attachment != null">
      attachment,
    </if>
    <if test="trainContent != null">
      train_content,
    </if>
    <if test="installRemark != null">
      install_remark,
    </if>
    <if test="userWallboxPic != null">
      user_wallbox_pic,
    </if>
    <if test="wallboxNameplatePic != null">
      wallbox_nameplate_pic,
    </if>
    <if test="voidOpenPic != null">
      void_open_pic,
    </if>
    <if test="leakageProtectPic != null">
      leakage_protect_pic,
    </if>
    <if test="clientRate != null">
      client_rate,
    </if>
    <if test="clientSignature != null">
      client_signature,
    </if>
    <if test="installAttachmentFiles != null">
      install_attachment_files,
    </if>
    <if test="createAccount != null">
      create_account,
    </if>
    <if test="createTime != null">
      create_time,
    </if>
    <if test="modifyAccount != null">
      modify_account,
    </if>
    <if test="modifyTime != null">
      modify_time,
    </if>
  </trim>
  <trim prefix="values (" suffix=")" suffixOverrides=",">
    <if test="id != null">
      #{id,jdbcType=INTEGER},
    </if>
    <if test="orderId != null">
      #{orderId,jdbcType=VARCHAR},
    </if>
    <if test="thirdUserId != null">
      #{thirdUserId,jdbcType=VARCHAR},
    </if>
    <if test="payStatus != null">
      #{payStatus,jdbcType=INTEGER},
    </if>
    <if test="vehicleChassisNumber != null">
      #{vehicleChassisNumber,jdbcType=VARCHAR},
    </if>
    <if test="wallboxNo != null">
      #{wallboxNo,jdbcType=VARCHAR},
    </if>
    <if test="wallboxQuantity != null">
      #{wallboxQuantity,jdbcType=INTEGER},
    </if>
    <if test="wallboxItemId != null">
      #{wallboxItemId,jdbcType=VARCHAR},
    </if>
    <if test="houseType != null">
      #{houseType,jdbcType=INTEGER},
    </if>
    <if test="parkingType != null">
      #{parkingType,jdbcType=INTEGER},
    </if>
    <if test="address != null">
      #{address,jdbcType=VARCHAR},
    </if>
    <if test="electricExpand != null">
      #{electricExpand,jdbcType=INTEGER},
    </if>
    <if test="expandMethod != null">
      #{expandMethod,jdbcType=INTEGER},
    </if>
    <if test="installPowerType != null">
      #{installPowerType,jdbcType=VARCHAR},
    </if>
    <if test="installPowerRemark != null">
      #{installPowerRemark,jdbcType=VARCHAR},
    </if>
    <if test="installPowerPosition != null">
      #{installPowerPosition,jdbcType=VARCHAR},
    </if>
    <if test="parkingNo != null">
      #{parkingNo,jdbcType=VARCHAR},
    </if>
    <if test="realInstallType != null">
      #{realInstallType,jdbcType=INTEGER},
    </if>
    <if test="realCableType != null">
      #{realCableType,jdbcType=VARCHAR},
    </if>
    <if test="realCableMeter != null">
      #{realCableMeter,jdbcType=VARCHAR},
    </if>
    <if test="realCableInstallType != null">
      #{realCableInstallType,jdbcType=INTEGER},
    </if>
    <if test="predictOverItem != null">
      #{predictOverItem,jdbcType=VARCHAR},
    </if>
    <if test="predictTotalFee != null">
      #{predictTotalFee,jdbcType=DECIMAL},
    </if>
    <if test="expandFee != null">
      #{expandFee,jdbcType=DECIMAL},
    </if>
    <if test="debugCheck != null">
      #{debugCheck,jdbcType=VARCHAR},
    </if>
    <if test="attachment != null">
      #{attachment,jdbcType=VARCHAR},
    </if>
    <if test="trainContent != null">
      #{trainContent,jdbcType=VARCHAR},
    </if>
    <if test="installRemark != null">
      #{installRemark,jdbcType=VARCHAR},
    </if>
    <if test="userWallboxPic != null">
      #{userWallboxPic,jdbcType=VARCHAR},
    </if>
    <if test="wallboxNameplatePic != null">
      #{wallboxNameplatePic,jdbcType=VARCHAR},
    </if>
    <if test="voidOpenPic != null">
      #{voidOpenPic,jdbcType=VARCHAR},
    </if>
    <if test="leakageProtectPic != null">
      #{leakageProtectPic,jdbcType=VARCHAR},
    </if>
    <if test="clientRate != null">
      #{clientRate,jdbcType=INTEGER},
    </if>
    <if test="clientSignature != null">
      #{clientSignature,jdbcType=VARCHAR},
    </if>
    <if test="installAttachmentFiles != null">
      #{installAttachmentFiles,jdbcType=VARCHAR},
    </if>
    <if test="createAccount != null">
      #{createAccount,jdbcType=VARCHAR},
    </if>
    <if test="createTime != null">
      #{createTime,jdbcType=TIMESTAMP},
    </if>
    <if test="modifyAccount != null">
      #{modifyAccount,jdbcType=VARCHAR},
    </if>
    <if test="modifyTime != null">
      #{modifyTime,jdbcType=TIMESTAMP},
    </if>
  </trim>
</insert>

  
<update id="updateDynamic" parameterType="com.boco.nbd.wios.manage.entity.bo.OrderInstall">
  update t_order_install
  <set>
    <if test="orderId != null">
      order_id = #{orderId,jdbcType=VARCHAR},
    </if>
    <if test="thirdUserId != null">
      third_user_id = #{thirdUserId,jdbcType=VARCHAR},
    </if>
    <if test="payStatus != null">
      pay_status = #{payStatus,jdbcType=INTEGER},
    </if>
    <if test="vehicleChassisNumber != null">
      vehicle_chassis_number = #{vehicleChassisNumber,jdbcType=VARCHAR},
    </if>
    <if test="wallboxNo != null">
      wallbox_no = #{wallboxNo,jdbcType=VARCHAR},
    </if>
    <if test="wallboxQuantity != null">
      wallbox_quantity = #{wallboxQuantity,jdbcType=INTEGER},
    </if>
    <if test="wallboxItemId != null">
      wallbox_item_id = #{wallboxItemId,jdbcType=VARCHAR},
    </if>
    <if test="houseType != null">
      house_type = #{houseType,jdbcType=INTEGER},
    </if>
    <if test="parkingType != null">
      parking_type = #{parkingType,jdbcType=INTEGER},
    </if>
    <if test="address != null">
      address = #{address,jdbcType=VARCHAR},
    </if>
    <if test="electricExpand != null">
      electric_expand = #{electricExpand,jdbcType=INTEGER},
    </if>
    <if test="expandMethod != null">
      expand_method = #{expandMethod,jdbcType=INTEGER},
    </if>
    <if test="installPowerType != null">
      install_power_type = #{installPowerType,jdbcType=VARCHAR},
    </if>
    <if test="installPowerRemark != null">
      install_power_remark = #{installPowerRemark,jdbcType=VARCHAR},
    </if>
    <if test="installPowerPosition != null">
      install_power_position = #{installPowerPosition,jdbcType=VARCHAR},
    </if>
    <if test="parkingNo != null">
      parking_no = #{parkingNo,jdbcType=VARCHAR},
    </if>
    <if test="realInstallType != null">
      real_install_type = #{realInstallType,jdbcType=INTEGER},
    </if>
    <if test="realCableType != null">
      real_cable_type = #{realCableType,jdbcType=VARCHAR},
    </if>
    <if test="realCableMeter != null">
      real_cable_meter = #{realCableMeter,jdbcType=VARCHAR},
    </if>
    <if test="realCableInstallType != null">
      real_cable_install_type = #{realCableInstallType,jdbcType=INTEGER},
    </if>
    <if test="predictOverItem != null">
      predict_over_item = #{predictOverItem,jdbcType=VARCHAR},
    </if>
    <if test="predictTotalFee != null">
      predict_total_fee = #{predictTotalFee,jdbcType=DECIMAL},
    </if>
    <if test="expandFee != null">
      expand_fee = #{expandFee,jdbcType=DECIMAL},
    </if>
    <if test="debugCheck != null">
      debug_check = #{debugCheck,jdbcType=VARCHAR},
    </if>
    <if test="attachment != null">
      attachment = #{attachment,jdbcType=VARCHAR},
    </if>
    <if test="trainContent != null">
      train_content = #{trainContent,jdbcType=VARCHAR},
    </if>
    <if test="installRemark != null">
      install_remark = #{installRemark,jdbcType=VARCHAR},
    </if>
    <if test="userWallboxPic != null">
      user_wallbox_pic = #{userWallboxPic,jdbcType=VARCHAR},
    </if>
    <if test="wallboxNameplatePic != null">
      wallbox_nameplate_pic = #{wallboxNameplatePic,jdbcType=VARCHAR},
    </if>
    <if test="voidOpenPic != null">
      void_open_pic = #{voidOpenPic,jdbcType=VARCHAR},
    </if>
    <if test="leakageProtectPic != null">
      leakage_protect_pic = #{leakageProtectPic,jdbcType=VARCHAR},
    </if>
    <if test="clientRate != null">
      client_rate = #{clientRate,jdbcType=INTEGER},
    </if>
    <if test="clientSignature != null">
      client_signature = #{clientSignature,jdbcType=VARCHAR},
    </if>
    <if test="installAttachmentFiles != null">
      install_attachment_files = #{installAttachmentFiles,jdbcType=VARCHAR},
    </if>
    <if test="createAccount != null">
      create_account = #{createAccount,jdbcType=VARCHAR},
    </if>
    <if test="createTime != null">
      create_time = #{createTime,jdbcType=TIMESTAMP},
    </if>
    <if test="modifyAccount != null">
      modify_account = #{modifyAccount,jdbcType=VARCHAR},
    </if>
    <if test="modifyTime != null">
      modify_time = #{modifyTime,jdbcType=TIMESTAMP},
    </if>
  </set>
  where id = #{id,jdbcType=INTEGER}
</update>

  
<update id="update" parameterType="com.boco.nbd.wios.manage.entity.bo.OrderInstall">
  update t_order_install
  set order_id = #{orderId,jdbcType=VARCHAR},
    third_user_id = #{thirdUserId,jdbcType=VARCHAR},
    pay_status = #{payStatus,jdbcType=INTEGER},
    vehicle_chassis_number = #{vehicleChassisNumber,jdbcType=VARCHAR},
    wallbox_no = #{wallboxNo,jdbcType=VARCHAR},
    wallbox_quantity = #{wallboxQuantity,jdbcType=INTEGER},
    wallbox_item_id = #{wallboxItemId,jdbcType=VARCHAR},
    house_type = #{houseType,jdbcType=INTEGER},
    parking_type = #{parkingType,jdbcType=INTEGER},
    address = #{address,jdbcType=VARCHAR},
    electric_expand = #{electricExpand,jdbcType=INTEGER},
    expand_method = #{expandMethod,jdbcType=INTEGER},
    install_power_type = #{installPowerType,jdbcType=VARCHAR},
    install_power_remark = #{installPowerRemark,jdbcType=VARCHAR},
    install_power_position = #{installPowerPosition,jdbcType=VARCHAR},
    parking_no = #{parkingNo,jdbcType=VARCHAR},
    real_install_type = #{realInstallType,jdbcType=INTEGER},
    real_cable_type = #{realCableType,jdbcType=VARCHAR},
    real_cable_meter = #{realCableMeter,jdbcType=VARCHAR},
    real_cable_install_type = #{realCableInstallType,jdbcType=INTEGER},
    predict_over_item = #{predictOverItem,jdbcType=VARCHAR},
    predict_total_fee = #{predictTotalFee,jdbcType=DECIMAL},
    expand_fee = #{expandFee,jdbcType=DECIMAL},
    debug_check = #{debugCheck,jdbcType=VARCHAR},
    attachment = #{attachment,jdbcType=VARCHAR},
    train_content = #{trainContent,jdbcType=VARCHAR},
    install_remark = #{installRemark,jdbcType=VARCHAR},
    user_wallbox_pic = #{userWallboxPic,jdbcType=VARCHAR},
    wallbox_nameplate_pic = #{wallboxNameplatePic,jdbcType=VARCHAR},
    void_open_pic = #{voidOpenPic,jdbcType=VARCHAR},
    leakage_protect_pic = #{leakageProtectPic,jdbcType=VARCHAR},
    client_rate = #{clientRate,jdbcType=INTEGER},
    client_signature = #{clientSignature,jdbcType=VARCHAR},
    install_attachment_files = #{installAttachmentFiles,jdbcType=VARCHAR},
    create_account = #{createAccount,jdbcType=VARCHAR},
    create_time = #{createTime,jdbcType=TIMESTAMP},
    modify_account = #{modifyAccount,jdbcType=VARCHAR},
    modify_time = #{modifyTime,jdbcType=TIMESTAMP}
  where id = #{id,jdbcType=INTEGER}
</update>

  
<select id="selectById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  select
	<include refid="Base_Column_List" />
  from  t_order_install
  where id = #{id,jdbcType=INTEGER}
</select>

<select id="selectByOrderId" parameterType="java.lang.String" resultMap="BaseResultMap">
  select *
  from  t_order_install
  where order_id = #{orderId}
</select>

<select id="selectByOrderIds" resultType="com.boco.nbd.wios.manage.entity.bo.OrderInstallVo">
  select t.*,o.user_name as userName,o.user_phone as userPhone,
  o.install_finish_time as installFinishTime,o.region_id as regionId
  from  t_order_install t
  left join t_order o on o.id=t.order_id
  where
  t.order_id in
  <foreach collection="orderIds" item="item" index="index" open="(" close=")" separator=",">
	#{item}
  </foreach>
</select>

<update id="updateByOrderId" parameterType="com.boco.nbd.wios.manage.entity.bo.OrderInstall">
  update t_order_install
  <set>
    <if test="thirdUserId != null">
      third_user_id = #{thirdUserId,jdbcType=VARCHAR},
    </if>
    <if test="payStatus != null">
      pay_status = #{payStatus,jdbcType=INTEGER},
    </if>
    <if test="vehicleChassisNumber != null">
      vehicle_chassis_number = #{vehicleChassisNumber,jdbcType=VARCHAR},
    </if>
    <if test="wallboxNo != null">
      wallbox_no = #{wallboxNo,jdbcType=VARCHAR},
    </if>
    <if test="wallboxQuantity != null">
      wallbox_quantity = #{wallboxQuantity,jdbcType=INTEGER},
    </if>
    <if test="wallboxItemId != null">
      wallbox_item_id = #{wallboxItemId,jdbcType=VARCHAR},
    </if>
    <if test="houseType != null">
      house_type = #{houseType,jdbcType=INTEGER},
    </if>
    <if test="parkingType != null">
      parking_type = #{parkingType,jdbcType=INTEGER},
    </if>
    <if test="address != null">
      address = #{address,jdbcType=VARCHAR},
    </if>
    <if test="electricExpand != null">
      electric_expand = #{electricExpand,jdbcType=INTEGER},
    </if>
    <if test="expandMethod != null">
      expand_method = #{expandMethod,jdbcType=INTEGER},
    </if>
    <if test="installPowerType != null">
      install_power_type = #{installPowerType,jdbcType=VARCHAR},
    </if>
    <if test="installPowerRemark != null">
      install_power_remark = #{installPowerRemark,jdbcType=VARCHAR},
    </if>
    <if test="installPowerPosition != null">
      install_power_position = #{installPowerPosition,jdbcType=VARCHAR},
    </if>
    <if test="parkingNo != null">
      parking_no = #{parkingNo,jdbcType=VARCHAR},
    </if>
    <if test="realInstallType != null">
      real_install_type = #{realInstallType,jdbcType=INTEGER},
    </if>
    <if test="realCableType != null">
      real_cable_type = #{realCableType,jdbcType=VARCHAR},
    </if>
    <if test="realCableMeter != null">
      real_cable_meter = #{realCableMeter,jdbcType=VARCHAR},
    </if>
    <if test="realCableInstallType != null">
      real_cable_install_type = #{realCableInstallType,jdbcType=INTEGER},
    </if>
    <if test="predictOverItem != null">
      predict_over_item = #{predictOverItem,jdbcType=VARCHAR},
    </if>
    <if test="predictTotalFee != null">
      predict_total_fee = #{predictTotalFee,jdbcType=DECIMAL},
    </if>
    <if test="debugCheck != null">
      debug_check = #{debugCheck,jdbcType=VARCHAR},
    </if>
    <if test="attachment != null">
      attachment = #{attachment,jdbcType=VARCHAR},
    </if>
    <if test="trainContent != null">
      train_content = #{trainContent,jdbcType=VARCHAR},
    </if>
    <if test="installRemark != null">
      install_remark = #{installRemark,jdbcType=VARCHAR},
    </if>
    <if test="userWallboxPic != null">
      user_wallbox_pic = #{userWallboxPic,jdbcType=VARCHAR},
    </if>
    <if test="wallboxNameplatePic != null">
      wallbox_nameplate_pic = #{wallboxNameplatePic,jdbcType=VARCHAR},
    </if>
    <if test="voidOpenPic != null">
      void_open_pic = #{voidOpenPic,jdbcType=VARCHAR},
    </if>
    <if test="leakageProtectPic != null">
      leakage_protect_pic = #{leakageProtectPic,jdbcType=VARCHAR},
    </if>
    <if test="clientRate != null">
      client_rate = #{clientRate,jdbcType=INTEGER},
    </if>
    <if test="clientSignature != null">
      client_signature = #{clientSignature,jdbcType=VARCHAR},
    </if>
    <if test="installAttachmentFiles != null">
      install_attachment_files = #{installAttachmentFiles,jdbcType=VARCHAR},
    </if>
    <if test="modifyAccount != null">
      modify_account = #{modifyAccount,jdbcType=VARCHAR},
    </if>
    <if test="modifyTime != null">
      modify_time = #{modifyTime,jdbcType=TIMESTAMP},
    </if>
  </set>
  where order_id = #{orderId}
</update>
  
</mapper>