<?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.OrderSurveyDeleteMapper" > <resultMap id="BaseResultMap" type="com.boco.nbd.wios.manage.entity.bo.OrderSurveyDelete" > <id column="id" property="id" jdbcType="INTEGER" /> <result column="order_id" property="orderId" jdbcType="VARCHAR" /> <result column="house_type" property="houseType" jdbcType="INTEGER" /> <result column="parking_type" property="parkingType" jdbcType="INTEGER" /> <result column="parking_info" property="parkingInfo" jdbcType="VARCHAR" /> <result column="parking_condition" property="parkingCondition" jdbcType="INTEGER" /> <result column="install_type" property="installType" jdbcType="INTEGER" /> <result column="type" property="type" jdbcType="BIT" /> <result column="property_company" property="propertyCompany" jdbcType="VARCHAR" /> <result column="property_contact" property="propertyContact" jdbcType="VARCHAR" /> <result column="property_phone" property="propertyPhone" jdbcType="VARCHAR" /> <result column="property_agree" property="propertyAgree" jdbcType="INTEGER" /> <result column="property_reason" property="propertyReason" jdbcType="VARCHAR" /> <result column="power_type" property="powerType" jdbcType="VARCHAR" /> <result column="upper_circuit_breaker" property="upperCircuitBreaker" jdbcType="VARCHAR" /> <result column="upper_line" property="upperLine" jdbcType="VARCHAR" /> <result column="allow_power" property="allowPower" jdbcType="VARCHAR" /> <result column="cable_type" property="cableType" jdbcType="VARCHAR" /> <result column="signal_type" property="signalType" jdbcType="INTEGER" /> <result column="signal_intensity" property="signalIntensity" jdbcType="VARCHAR" /> <result column="over_standard" property="overStandard" jdbcType="INTEGER" /> <result column="cable_meter" property="cableMeter" jdbcType="VARCHAR" /> <result column="cable_install_type" property="cableInstallType" jdbcType="INTEGER" /> <result column="prepare_info" property="prepareInfo" jdbcType="VARCHAR" /> <result column="survey_result" property="surveyResult" jdbcType="INTEGER" /> <result column="predict_over_item" property="predictOverItem" jdbcType="VARCHAR" /> <result column="survey_remark" property="surveyRemark" jdbcType="VARCHAR" /> <result column="pictures" property="pictures" jdbcType="VARCHAR" /> <result column="plan_info" property="planInfo" jdbcType="VARCHAR" /> <result column="survey_attachment" property="surveyAttachment" jdbcType="VARCHAR" /> <result column="address" property="address" jdbcType="VARCHAR" /> <result column="latitude" property="latitude" jdbcType="VARCHAR" /> <result column="longitude" property="longitude" jdbcType="VARCHAR" /> <result column="survey_date" property="surveyDate" jdbcType="DATE" /> <result column="contact_name" property="contactName" jdbcType="VARCHAR" /> <result column="contact_phone" property="contactPhone" jdbcType="VARCHAR" /> <result column="parking_position_no" property="parkingPositionNo" jdbcType="VARCHAR" /> <result column="install_position" property="installPosition" jdbcType="BIT" /> <result column="open_air" property="openAir" jdbcType="BIT" /> <result column="transformer_specific_value" property="transformerSpecificValue" jdbcType="VARCHAR" /> <result column="access_circuit_capacity" property="accessCircuitCapacity" jdbcType="VARCHAR" /> <result column="measured_phase_voltage" property="measuredPhaseVoltage" jdbcType="VARCHAR" /> <result column="measured_phase_current" property="measuredPhaseCurrent" jdbcType="VARCHAR" /> <result column="need_erect_pile" property="needErectPile" jdbcType="BIT" /> <result column="need_special_construction" property="needSpecialConstruction" jdbcType="BIT" /> <result column="create_account" property="createAccount" jdbcType="VARCHAR" /> <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> <result column="modify_account" property="modifyAccount" jdbcType="VARCHAR" /> <result column="modify_time" property="modifyTime" jdbcType="TIMESTAMP" /> </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> <insert id="insert" parameterType="com.boco.nbd.wios.manage.entity.bo.OrderSurveyDelete" > insert into t_order_survey_delete (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=BIT}, #{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=BIT}, #{openAir,jdbcType=BIT}, #{transformerSpecificValue,jdbcType=VARCHAR}, #{accessCircuitCapacity,jdbcType=VARCHAR}, #{measuredPhaseVoltage,jdbcType=VARCHAR}, #{measuredPhaseCurrent,jdbcType=VARCHAR}, #{needErectPile,jdbcType=BIT}, #{needSpecialConstruction,jdbcType=BIT}, #{createAccount,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifyAccount,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP} ) </insert> <insert id="insertSelective" parameterType="com.boco.nbd.wios.manage.entity.bo.OrderSurveyDelete" > insert into t_order_survey_delete <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=BIT}, </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=BIT}, </if> <if test="openAir != null" > #{openAir,jdbcType=BIT}, </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=BIT}, </if> <if test="needSpecialConstruction != null" > #{needSpecialConstruction,jdbcType=BIT}, </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> <insert id="batchInsert" parameterType="java.util.List"> insert into t_order_survey_delete ( 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 <foreach collection="list" item="item" separator=","> ( #{item.orderId,jdbcType=VARCHAR}, #{item.houseType,jdbcType=INTEGER}, #{item.parkingType,jdbcType=INTEGER}, #{item.parkingInfo,jdbcType=VARCHAR}, #{item.parkingCondition,jdbcType=INTEGER}, #{item.installType,jdbcType=INTEGER}, #{item.type,jdbcType=BIT}, #{item.propertyCompany,jdbcType=VARCHAR}, #{item.propertyContact,jdbcType=VARCHAR}, #{item.propertyPhone,jdbcType=VARCHAR}, #{item.propertyAgree,jdbcType=INTEGER}, #{item.propertyReason,jdbcType=VARCHAR}, #{item.powerType,jdbcType=VARCHAR}, #{item.upperCircuitBreaker,jdbcType=VARCHAR}, #{item.upperLine,jdbcType=VARCHAR}, #{item.allowPower,jdbcType=VARCHAR}, #{item.cableType,jdbcType=VARCHAR}, #{item.signalType,jdbcType=INTEGER}, #{item.signalIntensity,jdbcType=VARCHAR}, #{item.overStandard,jdbcType=INTEGER}, #{item.cableMeter,jdbcType=VARCHAR}, #{item.cableInstallType,jdbcType=INTEGER}, #{item.prepareInfo,jdbcType=VARCHAR}, #{item.surveyResult,jdbcType=INTEGER}, #{item.predictOverItem,jdbcType=VARCHAR}, #{item.surveyRemark,jdbcType=VARCHAR}, #{item.pictures,jdbcType=VARCHAR}, #{item.planInfo,jdbcType=VARCHAR}, #{item.surveyAttachment,jdbcType=VARCHAR}, #{item.address,jdbcType=VARCHAR}, #{item.latitude,jdbcType=VARCHAR}, #{item.longitude,jdbcType=VARCHAR}, #{item.surveyDate,jdbcType=DATE}, #{item.contactName,jdbcType=VARCHAR}, #{item.contactPhone,jdbcType=VARCHAR}, #{item.parkingPositionNo,jdbcType=VARCHAR}, #{item.installPosition,jdbcType=BIT}, #{item.openAir,jdbcType=BIT}, #{item.transformerSpecificValue,jdbcType=VARCHAR}, #{item.accessCircuitCapacity,jdbcType=VARCHAR}, #{item.measuredPhaseVoltage,jdbcType=VARCHAR}, #{item.measuredPhaseCurrent,jdbcType=VARCHAR}, #{item.needErectPile,jdbcType=BIT}, #{item.needSpecialConstruction,jdbcType=BIT}, #{item.createAccount,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.modifyAccount,jdbcType=VARCHAR}, #{item.modifyTime,jdbcType=TIMESTAMP} ) </foreach> </insert> </mapper>