<?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.OrderSurveyMapper">

<resultMap id="BaseResultMap" type="com.boco.nbd.wios.manage.entity.bo.OrderSurvey">
  <id column="id" jdbcType="INTEGER" property="id" />
  <result column="order_id" jdbcType="VARCHAR" property="orderId" />
  <result column="house_type" jdbcType="INTEGER" property="houseType" />
  <result column="parking_type" jdbcType="INTEGER" property="parkingType" />
  <result column="parking_info" jdbcType="VARCHAR" property="parkingInfo" />
  <result column="parking_condition" jdbcType="INTEGER" property="parkingCondition" />
  <result column="install_type" jdbcType="INTEGER" property="installType" />
  <result column="type" jdbcType="INTEGER" property="type" />
  <result column="property_company" jdbcType="VARCHAR" property="propertyCompany" />
  <result column="property_contact" jdbcType="VARCHAR" property="propertyContact" />
  <result column="property_phone" jdbcType="VARCHAR" property="propertyPhone" />
  <result column="property_agree" jdbcType="INTEGER" property="propertyAgree" />
  <result column="property_reason" jdbcType="VARCHAR" property="propertyReason" />
  <result column="power_type" jdbcType="VARCHAR" property="powerType" />
  <result column="upper_circuit_breaker" jdbcType="VARCHAR" property="upperCircuitBreaker" />
  <result column="upper_line" jdbcType="VARCHAR" property="upperLine" />
  <result column="allow_power" jdbcType="VARCHAR" property="allowPower" />
  <result column="cable_type" jdbcType="VARCHAR" property="cableType" />
  <result column="signal_type" jdbcType="INTEGER" property="signalType" />
  <result column="signal_intensity" jdbcType="VARCHAR" property="signalIntensity" />
  <result column="over_standard" jdbcType="INTEGER" property="overStandard" />
  <result column="cable_meter" jdbcType="VARCHAR" property="cableMeter" />
  <result column="cable_install_type" jdbcType="INTEGER" property="cableInstallType" />
  <result column="prepare_info" jdbcType="VARCHAR" property="prepareInfo" />
  <result column="survey_result" jdbcType="INTEGER" property="surveyResult" />
  <result column="predict_over_item" jdbcType="VARCHAR" property="predictOverItem" />
  <result column="survey_remark" jdbcType="VARCHAR" property="surveyRemark" />
  <result column="pictures" jdbcType="VARCHAR" property="pictures" />
  <result column="plan_info" jdbcType="VARCHAR" property="planInfo" />
  <result column="survey_attachment" jdbcType="VARCHAR" property="surveyAttachment" />
  <result column="address" jdbcType="VARCHAR" property="address" />
  <result column="latitude" jdbcType="VARCHAR" property="latitude" />
  <result column="longitude" jdbcType="VARCHAR" property="longitude" />
  <result column="survey_date" jdbcType="DATE" property="surveyDate" />
  <result column="contact_name" jdbcType="VARCHAR" property="contactName" />
  <result column="contact_phone" jdbcType="VARCHAR" property="contactPhone" />
  <result column="parking_position_no" jdbcType="VARCHAR" property="parkingPositionNo" />
  <result column="install_position" jdbcType="INTEGER" property="installPosition" />
  <result column="open_air" jdbcType="INTEGER" property="openAir" />
  <result column="transformer_specific_value" jdbcType="VARCHAR" property="transformerSpecificValue" />
  <result column="access_circuit_capacity" jdbcType="VARCHAR" property="accessCircuitCapacity" />
  <result column="measured_phase_voltage" jdbcType="VARCHAR" property="measuredPhaseVoltage" />
  <result column="measured_phase_current" jdbcType="VARCHAR" property="measuredPhaseCurrent" />
  <result column="need_erect_pile" jdbcType="INTEGER" property="needErectPile" />
  <result column="need_special_construction" jdbcType="INTEGER" property="needSpecialConstruction" />
  <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, house_type, parking_type, parking_info, parking_condition, install_type,
  type, property_company, property_contact, property_phone, property_agree, property_reason,
  power_type, upper_circuit_breaker, upper_line, allow_power, cable_type, signal_type,
  signal_intensity, over_standard, cable_meter, cable_install_type, prepare_info, survey_result,
  predict_over_item, survey_remark, pictures, plan_info, survey_attachment, address,
  latitude, longitude, survey_date, contact_name, contact_phone, parking_position_no,
  install_position, open_air, transformer_specific_value, access_circuit_capacity,
  measured_phase_voltage, measured_phase_current, need_erect_pile, need_special_construction,
  create_account, create_time, modify_account, modify_time
</sql>


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


<insert id="insert" parameterType="com.boco.nbd.wios.manage.entity.bo.OrderSurvey"
useGeneratedKeys="true" keyProperty="id">
  insert into t_order_survey (id, order_id, house_type,
    parking_type, parking_info, parking_condition,
    install_type, type, property_company,
    property_contact, property_phone, property_agree,
    property_reason, power_type, upper_circuit_breaker,
    upper_line, allow_power, cable_type,
    signal_type, signal_intensity, over_standard,
    cable_meter, cable_install_type, prepare_info,
    survey_result, predict_over_item, survey_remark,
    pictures, plan_info, survey_attachment,
    address, latitude, longitude,
    survey_date, contact_name, contact_phone,
    parking_position_no, install_position, open_air,
    transformer_specific_value, access_circuit_capacity,
    measured_phase_voltage, measured_phase_current,
    need_erect_pile, need_special_construction,
    create_account, create_time, modify_account,
    modify_time)
  values (#{id,jdbcType=INTEGER}, #{orderId,jdbcType=VARCHAR}, #{houseType,jdbcType=INTEGER},
    #{parkingType,jdbcType=INTEGER}, #{parkingInfo,jdbcType=VARCHAR}, #{parkingCondition,jdbcType=INTEGER},
    #{installType,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{propertyCompany,jdbcType=VARCHAR},
    #{propertyContact,jdbcType=VARCHAR}, #{propertyPhone,jdbcType=VARCHAR}, #{propertyAgree,jdbcType=INTEGER},
    #{propertyReason,jdbcType=VARCHAR}, #{powerType,jdbcType=VARCHAR}, #{upperCircuitBreaker,jdbcType=VARCHAR},
    #{upperLine,jdbcType=VARCHAR}, #{allowPower,jdbcType=VARCHAR}, #{cableType,jdbcType=VARCHAR},
    #{signalType,jdbcType=INTEGER}, #{signalIntensity,jdbcType=VARCHAR}, #{overStandard,jdbcType=INTEGER},
    #{cableMeter,jdbcType=VARCHAR}, #{cableInstallType,jdbcType=INTEGER}, #{prepareInfo,jdbcType=VARCHAR},
    #{surveyResult,jdbcType=INTEGER}, #{predictOverItem,jdbcType=VARCHAR}, #{surveyRemark,jdbcType=VARCHAR},
    #{pictures,jdbcType=VARCHAR}, #{planInfo,jdbcType=VARCHAR}, #{surveyAttachment,jdbcType=VARCHAR},
    #{address,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR},
    #{surveyDate,jdbcType=DATE}, #{contactName,jdbcType=VARCHAR}, #{contactPhone,jdbcType=VARCHAR},
    #{parkingPositionNo,jdbcType=VARCHAR}, #{installPosition,jdbcType=INTEGER}, #{openAir,jdbcType=INTEGER},
    #{transformerSpecificValue,jdbcType=VARCHAR}, #{accessCircuitCapacity,jdbcType=VARCHAR},
    #{measuredPhaseVoltage,jdbcType=VARCHAR}, #{measuredPhaseCurrent,jdbcType=VARCHAR},
    #{needErectPile,jdbcType=INTEGER}, #{needSpecialConstruction,jdbcType=INTEGER},
    #{createAccount,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifyAccount,jdbcType=VARCHAR},
    #{modifyTime,jdbcType=TIMESTAMP})
</insert>


<insert id="insertDynamic" parameterType="com.boco.nbd.wios.manage.entity.bo.OrderSurvey">
  insert into t_order_survey
  <trim prefix="(" suffix=")" suffixOverrides=",">
    <if test="id != null">
      id,
    </if>
    <if test="orderId != null">
      order_id,
    </if>
    <if test="houseType != null">
      house_type,
    </if>
    <if test="parkingType != null">
      parking_type,
    </if>
    <if test="parkingInfo != null">
      parking_info,
    </if>
    <if test="parkingCondition != null">
      parking_condition,
    </if>
    <if test="installType != null">
      install_type,
    </if>
    <if test="type != null">
      type,
    </if>
    <if test="propertyCompany != null">
      property_company,
    </if>
    <if test="propertyContact != null">
      property_contact,
    </if>
    <if test="propertyPhone != null">
      property_phone,
    </if>
    <if test="propertyAgree != null">
      property_agree,
    </if>
    <if test="propertyReason != null">
      property_reason,
    </if>
    <if test="powerType != null">
      power_type,
    </if>
    <if test="upperCircuitBreaker != null">
      upper_circuit_breaker,
    </if>
    <if test="upperLine != null">
      upper_line,
    </if>
    <if test="allowPower != null">
      allow_power,
    </if>
    <if test="cableType != null">
      cable_type,
    </if>
    <if test="signalType != null">
      signal_type,
    </if>
    <if test="signalIntensity != null">
      signal_intensity,
    </if>
    <if test="overStandard != null">
      over_standard,
    </if>
    <if test="cableMeter != null">
      cable_meter,
    </if>
    <if test="cableInstallType != null">
      cable_install_type,
    </if>
    <if test="prepareInfo != null">
      prepare_info,
    </if>
    <if test="surveyResult != null">
      survey_result,
    </if>
    <if test="predictOverItem != null">
      predict_over_item,
    </if>
    <if test="surveyRemark != null">
      survey_remark,
    </if>
    <if test="pictures != null">
      pictures,
    </if>
    <if test="planInfo != null">
      plan_info,
    </if>
    <if test="surveyAttachment != null">
      survey_attachment,
    </if>
    <if test="address != null">
      address,
    </if>
    <if test="latitude != null">
      latitude,
    </if>
    <if test="longitude != null">
      longitude,
    </if>
    <if test="surveyDate != null">
      survey_date,
    </if>
    <if test="contactName != null">
      contact_name,
    </if>
    <if test="contactPhone != null">
      contact_phone,
    </if>
    <if test="parkingPositionNo != null">
      parking_position_no,
    </if>
    <if test="installPosition != null">
      install_position,
    </if>
    <if test="openAir != null">
      open_air,
    </if>
    <if test="transformerSpecificValue != null">
      transformer_specific_value,
    </if>
    <if test="accessCircuitCapacity != null">
      access_circuit_capacity,
    </if>
    <if test="measuredPhaseVoltage != null">
      measured_phase_voltage,
    </if>
    <if test="measuredPhaseCurrent != null">
      measured_phase_current,
    </if>
    <if test="needErectPile != null">
      need_erect_pile,
    </if>
    <if test="needSpecialConstruction != null">
      need_special_construction,
    </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="houseType != null">
      #{houseType,jdbcType=INTEGER},
    </if>
    <if test="parkingType != null">
      #{parkingType,jdbcType=INTEGER},
    </if>
    <if test="parkingInfo != null">
      #{parkingInfo,jdbcType=VARCHAR},
    </if>
    <if test="parkingCondition != null">
      #{parkingCondition,jdbcType=INTEGER},
    </if>
    <if test="installType != null">
      #{installType,jdbcType=INTEGER},
    </if>
    <if test="type != null">
      #{type,jdbcType=INTEGER},
    </if>
    <if test="propertyCompany != null">
      #{propertyCompany,jdbcType=VARCHAR},
    </if>
    <if test="propertyContact != null">
      #{propertyContact,jdbcType=VARCHAR},
    </if>
    <if test="propertyPhone != null">
      #{propertyPhone,jdbcType=VARCHAR},
    </if>
    <if test="propertyAgree != null">
      #{propertyAgree,jdbcType=INTEGER},
    </if>
    <if test="propertyReason != null">
      #{propertyReason,jdbcType=VARCHAR},
    </if>
    <if test="powerType != null">
      #{powerType,jdbcType=VARCHAR},
    </if>
    <if test="upperCircuitBreaker != null">
      #{upperCircuitBreaker,jdbcType=VARCHAR},
    </if>
    <if test="upperLine != null">
      #{upperLine,jdbcType=VARCHAR},
    </if>
    <if test="allowPower != null">
      #{allowPower,jdbcType=VARCHAR},
    </if>
    <if test="cableType != null">
      #{cableType,jdbcType=VARCHAR},
    </if>
    <if test="signalType != null">
      #{signalType,jdbcType=INTEGER},
    </if>
    <if test="signalIntensity != null">
      #{signalIntensity,jdbcType=VARCHAR},
    </if>
    <if test="overStandard != null">
      #{overStandard,jdbcType=INTEGER},
    </if>
    <if test="cableMeter != null">
      #{cableMeter,jdbcType=VARCHAR},
    </if>
    <if test="cableInstallType != null">
      #{cableInstallType,jdbcType=INTEGER},
    </if>
    <if test="prepareInfo != null">
      #{prepareInfo,jdbcType=VARCHAR},
    </if>
    <if test="surveyResult != null">
      #{surveyResult,jdbcType=INTEGER},
    </if>
    <if test="predictOverItem != null">
      #{predictOverItem,jdbcType=VARCHAR},
    </if>
    <if test="surveyRemark != null">
      #{surveyRemark,jdbcType=VARCHAR},
    </if>
    <if test="pictures != null">
      #{pictures,jdbcType=VARCHAR},
    </if>
    <if test="planInfo != null">
      #{planInfo,jdbcType=VARCHAR},
    </if>
    <if test="surveyAttachment != null">
      #{surveyAttachment,jdbcType=VARCHAR},
    </if>
    <if test="address != null">
      #{address,jdbcType=VARCHAR},
    </if>
    <if test="latitude != null">
      #{latitude,jdbcType=VARCHAR},
    </if>
    <if test="longitude != null">
      #{longitude,jdbcType=VARCHAR},
    </if>
    <if test="surveyDate != null">
      #{surveyDate,jdbcType=DATE},
    </if>
    <if test="contactName != null">
      #{contactName,jdbcType=VARCHAR},
    </if>
    <if test="contactPhone != null">
      #{contactPhone,jdbcType=VARCHAR},
    </if>
    <if test="parkingPositionNo != null">
      #{parkingPositionNo,jdbcType=VARCHAR},
    </if>
    <if test="installPosition != null">
      #{installPosition,jdbcType=INTEGER},
    </if>
    <if test="openAir != null">
      #{openAir,jdbcType=INTEGER},
    </if>
    <if test="transformerSpecificValue != null">
      #{transformerSpecificValue,jdbcType=VARCHAR},
    </if>
    <if test="accessCircuitCapacity != null">
      #{accessCircuitCapacity,jdbcType=VARCHAR},
    </if>
    <if test="measuredPhaseVoltage != null">
      #{measuredPhaseVoltage,jdbcType=VARCHAR},
    </if>
    <if test="measuredPhaseCurrent != null">
      #{measuredPhaseCurrent,jdbcType=VARCHAR},
    </if>
    <if test="needErectPile != null">
      #{needErectPile,jdbcType=INTEGER},
    </if>
    <if test="needSpecialConstruction != null">
      #{needSpecialConstruction,jdbcType=INTEGER},
    </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.OrderSurvey">
  update t_order_survey
  <set>
    <if test="orderId != null">
      order_id = #{orderId,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="parkingInfo != null">
      parking_info = #{parkingInfo,jdbcType=VARCHAR},
    </if>
    <if test="parkingCondition != null">
      parking_condition = #{parkingCondition,jdbcType=INTEGER},
    </if>
    <if test="installType != null">
      install_type = #{installType,jdbcType=INTEGER},
    </if>
    <if test="type != null">
      type = #{type,jdbcType=INTEGER},
    </if>
    <if test="propertyCompany != null">
      property_company = #{propertyCompany,jdbcType=VARCHAR},
    </if>
    <if test="propertyContact != null">
      property_contact = #{propertyContact,jdbcType=VARCHAR},
    </if>
    <if test="propertyPhone != null">
      property_phone = #{propertyPhone,jdbcType=VARCHAR},
    </if>
    <if test="propertyAgree != null">
      property_agree = #{propertyAgree,jdbcType=INTEGER},
    </if>
    <if test="propertyReason != null">
      property_reason = #{propertyReason,jdbcType=VARCHAR},
    </if>
    <if test="powerType != null">
      power_type = #{powerType,jdbcType=VARCHAR},
    </if>
    <if test="upperCircuitBreaker != null">
      upper_circuit_breaker = #{upperCircuitBreaker,jdbcType=VARCHAR},
    </if>
    <if test="upperLine != null">
      upper_line = #{upperLine,jdbcType=VARCHAR},
    </if>
    <if test="allowPower != null">
      allow_power = #{allowPower,jdbcType=VARCHAR},
    </if>
    <if test="cableType != null">
      cable_type = #{cableType,jdbcType=VARCHAR},
    </if>
    <if test="signalType != null">
      signal_type = #{signalType,jdbcType=INTEGER},
    </if>
    <if test="signalIntensity != null">
      signal_intensity = #{signalIntensity,jdbcType=VARCHAR},
    </if>
    <if test="overStandard != null">
      over_standard = #{overStandard,jdbcType=INTEGER},
    </if>
    <if test="cableMeter != null">
      cable_meter = #{cableMeter,jdbcType=VARCHAR},
    </if>
    <if test="cableInstallType != null">
      cable_install_type = #{cableInstallType,jdbcType=INTEGER},
    </if>
    <if test="prepareInfo != null">
      prepare_info = #{prepareInfo,jdbcType=VARCHAR},
    </if>
    <if test="surveyResult != null">
      survey_result = #{surveyResult,jdbcType=INTEGER},
    </if>
    <if test="predictOverItem != null">
      predict_over_item = #{predictOverItem,jdbcType=VARCHAR},
    </if>
    <if test="surveyRemark != null">
      survey_remark = #{surveyRemark,jdbcType=VARCHAR},
    </if>
    <if test="pictures != null">
      pictures = #{pictures,jdbcType=VARCHAR},
    </if>
    <if test="planInfo != null">
      plan_info = #{planInfo,jdbcType=VARCHAR},
    </if>
    <if test="surveyAttachment != null">
      survey_attachment = #{surveyAttachment,jdbcType=VARCHAR},
    </if>
    <if test="address != null">
      address = #{address,jdbcType=VARCHAR},
    </if>
    <if test="latitude != null">
      latitude = #{latitude,jdbcType=VARCHAR},
    </if>
    <if test="longitude != null">
      longitude = #{longitude,jdbcType=VARCHAR},
    </if>
    <if test="surveyDate != null">
      survey_date = #{surveyDate,jdbcType=DATE},
    </if>
    <if test="contactName != null">
      contact_name = #{contactName,jdbcType=VARCHAR},
    </if>
    <if test="contactPhone != null">
      contact_phone = #{contactPhone,jdbcType=VARCHAR},
    </if>
    <if test="parkingPositionNo != null">
      parking_position_no = #{parkingPositionNo,jdbcType=VARCHAR},
    </if>
    <if test="installPosition != null">
      install_position = #{installPosition,jdbcType=INTEGER},
    </if>
    <if test="openAir != null">
      open_air = #{openAir,jdbcType=INTEGER},
    </if>
    <if test="transformerSpecificValue != null">
      transformer_specific_value = #{transformerSpecificValue,jdbcType=VARCHAR},
    </if>
    <if test="accessCircuitCapacity != null">
      access_circuit_capacity = #{accessCircuitCapacity,jdbcType=VARCHAR},
    </if>
    <if test="measuredPhaseVoltage != null">
      measured_phase_voltage = #{measuredPhaseVoltage,jdbcType=VARCHAR},
    </if>
    <if test="measuredPhaseCurrent != null">
      measured_phase_current = #{measuredPhaseCurrent,jdbcType=VARCHAR},
    </if>
    <if test="needErectPile != null">
      need_erect_pile = #{needErectPile,jdbcType=INTEGER},
    </if>
    <if test="needSpecialConstruction != null">
      need_special_construction = #{needSpecialConstruction,jdbcType=INTEGER},
    </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.OrderSurvey">
  update t_order_survey
  set order_id = #{orderId,jdbcType=VARCHAR},
    house_type = #{houseType,jdbcType=INTEGER},
    parking_type = #{parkingType,jdbcType=INTEGER},
    parking_info = #{parkingInfo,jdbcType=VARCHAR},
    parking_condition = #{parkingCondition,jdbcType=INTEGER},
    install_type = #{installType,jdbcType=INTEGER},
    type = #{type,jdbcType=INTEGER},
    property_company = #{propertyCompany,jdbcType=VARCHAR},
    property_contact = #{propertyContact,jdbcType=VARCHAR},
    property_phone = #{propertyPhone,jdbcType=VARCHAR},
    property_agree = #{propertyAgree,jdbcType=INTEGER},
    property_reason = #{propertyReason,jdbcType=VARCHAR},
    power_type = #{powerType,jdbcType=VARCHAR},
    upper_circuit_breaker = #{upperCircuitBreaker,jdbcType=VARCHAR},
    upper_line = #{upperLine,jdbcType=VARCHAR},
    allow_power = #{allowPower,jdbcType=VARCHAR},
    cable_type = #{cableType,jdbcType=VARCHAR},
    signal_type = #{signalType,jdbcType=INTEGER},
    signal_intensity = #{signalIntensity,jdbcType=VARCHAR},
    over_standard = #{overStandard,jdbcType=INTEGER},
    cable_meter = #{cableMeter,jdbcType=VARCHAR},
    cable_install_type = #{cableInstallType,jdbcType=INTEGER},
    prepare_info = #{prepareInfo,jdbcType=VARCHAR},
    survey_result = #{surveyResult,jdbcType=INTEGER},
    predict_over_item = #{predictOverItem,jdbcType=VARCHAR},
    survey_remark = #{surveyRemark,jdbcType=VARCHAR},
    pictures = #{pictures,jdbcType=VARCHAR},
    plan_info = #{planInfo,jdbcType=VARCHAR},
    survey_attachment = #{surveyAttachment,jdbcType=VARCHAR},
    address = #{address,jdbcType=VARCHAR},
    latitude = #{latitude,jdbcType=VARCHAR},
    longitude = #{longitude,jdbcType=VARCHAR},
    survey_date = #{surveyDate,jdbcType=DATE},
    contact_name = #{contactName,jdbcType=VARCHAR},
    contact_phone = #{contactPhone,jdbcType=VARCHAR},
    parking_position_no = #{parkingPositionNo,jdbcType=VARCHAR},
    install_position = #{installPosition,jdbcType=INTEGER},
    open_air = #{openAir,jdbcType=INTEGER},
    transformer_specific_value = #{transformerSpecificValue,jdbcType=VARCHAR},
    access_circuit_capacity = #{accessCircuitCapacity,jdbcType=VARCHAR},
    measured_phase_voltage = #{measuredPhaseVoltage,jdbcType=VARCHAR},
    measured_phase_current = #{measuredPhaseCurrent,jdbcType=VARCHAR},
    need_erect_pile = #{needErectPile,jdbcType=INTEGER},
    need_special_construction = #{needSpecialConstruction,jdbcType=INTEGER},
    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_survey
  where id = #{id,jdbcType=INTEGER}
</select>

<select id="selectByOrderId" resultMap="BaseResultMap">
  select *
  from  t_order_survey
  where order_id = #{orderId} and type = #{type}
</select>

<select id="selectListByOrderId" resultType="com.boco.nbd.wios.manage.entity.bo.OrderSurvey">
  select
  <include refid="Base_Column_List" />
  from  t_order_survey
  where order_id = #{orderId}
</select>

</mapper>