|
@@ -0,0 +1,749 @@
|
|
|
+<?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.huaxu.zoniot.dao.CrmSyncInfoMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.huaxu.zoniot.entity.CrmSyncInfo">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ <!--@Table sc_crm_sync_info-->
|
|
|
+ <id column="crm_id" jdbcType="VARCHAR" property="crmId" />
|
|
|
+ <result column="create_org" jdbcType="VARCHAR" property="createOrg" />
|
|
|
+ <result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
|
|
+ <result column="factory_read" jdbcType="VARCHAR" property="factoryRead" />
|
|
|
+ <result column="imei2" jdbcType="VARCHAR" property="imei2" />
|
|
|
+ <result column="ship_person" jdbcType="VARCHAR" property="shipPerson" />
|
|
|
+ <result column="rate_id" jdbcType="VARCHAR" property="rateId" />
|
|
|
+ <result column="bt_size" jdbcType="VARCHAR" property="btSize" />
|
|
|
+ <result column="prod_id" jdbcType="VARCHAR" property="prodId" />
|
|
|
+ <result column="vale_id" jdbcType="VARCHAR" property="valeId" />
|
|
|
+ <result column="update_time" jdbcType="VARCHAR" property="updateTime" />
|
|
|
+ <result column="check_info" jdbcType="VARCHAR" property="checkInfo" />
|
|
|
+ <result column="operators" jdbcType="VARCHAR" property="operators" />
|
|
|
+ <result column="advance_id" jdbcType="VARCHAR" property="advanceId" />
|
|
|
+ <result column="node_no" jdbcType="VARCHAR" property="nodeNo" />
|
|
|
+ <result column="comm_type" jdbcType="VARCHAR" property="commType" />
|
|
|
+ <result column="product" jdbcType="VARCHAR" property="product" />
|
|
|
+ <result column="baud_rate" jdbcType="VARCHAR" property="baudRate" />
|
|
|
+ <result column="nccid" jdbcType="VARCHAR" property="nccid" />
|
|
|
+ <result column="address" jdbcType="VARCHAR" property="address" />
|
|
|
+ <result column="valve_status" jdbcType="VARCHAR" property="valveStatus" />
|
|
|
+ <result column="imei" jdbcType="VARCHAR" property="imei" />
|
|
|
+ <result column="meter_type" jdbcType="VARCHAR" property="meterType" />
|
|
|
+ <result column="cust_erp_id" jdbcType="VARCHAR" property="custErpId" />
|
|
|
+ <result column="pay_mode" jdbcType="VARCHAR" property="payMode" />
|
|
|
+ <result column="delivery_date" jdbcType="VARCHAR" property="deliveryDate" />
|
|
|
+ <result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
+ <result column="telphone" jdbcType="VARCHAR" property="telphone" />
|
|
|
+ <result column="meter_code" jdbcType="VARCHAR" property="meterCode" />
|
|
|
+ <result column="data_address" jdbcType="VARCHAR" property="dataAddress" />
|
|
|
+ <result column="meter_model" jdbcType="VARCHAR" property="meterModel" />
|
|
|
+ <result column="material_id" jdbcType="VARCHAR" property="materialId" />
|
|
|
+ <result column="sales_org" jdbcType="VARCHAR" property="salesOrg" />
|
|
|
+ <result column="customer_name" jdbcType="VARCHAR" property="customerName" />
|
|
|
+ <result column="paytype_id" jdbcType="VARCHAR" property="paytypeId" />
|
|
|
+ <result column="comm_protrol" jdbcType="VARCHAR" property="commProtrol" />
|
|
|
+ <result column="order_id" jdbcType="VARCHAR" property="orderId" />
|
|
|
+ <result column="water1" jdbcType="VARCHAR" property="water1" />
|
|
|
+ <result column="end3" jdbcType="VARCHAR" property="end3" />
|
|
|
+ <result column="mix3" jdbcType="VARCHAR" property="mix3" />
|
|
|
+ <result column="qwater3" jdbcType="VARCHAR" property="qwater3" />
|
|
|
+ <result column="advance_num" jdbcType="VARCHAR" property="advanceNum" />
|
|
|
+ <result column="end2" jdbcType="VARCHAR" property="end2" />
|
|
|
+ <result column="mix2" jdbcType="VARCHAR" property="mix2" />
|
|
|
+ <result column="begin3" jdbcType="VARCHAR" property="begin3" />
|
|
|
+ <result column="error2" jdbcType="VARCHAR" property="error2" />
|
|
|
+ <result column="max3" jdbcType="VARCHAR" property="max3" />
|
|
|
+ <result column="begin2" jdbcType="VARCHAR" property="begin2" />
|
|
|
+ <result column="water2" jdbcType="VARCHAR" property="water2" />
|
|
|
+ <result column="end1" jdbcType="VARCHAR" property="end1" />
|
|
|
+ <result column="max2" jdbcType="VARCHAR" property="max2" />
|
|
|
+ <result column="error1" jdbcType="VARCHAR" property="error1" />
|
|
|
+ <result column="mix1" jdbcType="VARCHAR" property="mix1" />
|
|
|
+ <result column="begin1" jdbcType="VARCHAR" property="begin1" />
|
|
|
+ <result column="max1" jdbcType="VARCHAR" property="max1" />
|
|
|
+ <result column="error3" jdbcType="VARCHAR" property="error3" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ crm_id, create_org, order_no, factory_read, imei2, ship_person, rate_id, bt_size,
|
|
|
+ prod_id, vale_id, update_time, check_info, operators, advance_id, node_no, comm_type,
|
|
|
+ product, baud_rate, nccid, address, valve_status, imei, meter_type, cust_erp_id,
|
|
|
+ pay_mode, delivery_date, user_id, telphone, meter_code, data_address, meter_model,
|
|
|
+ material_id, sales_org, customer_name, paytype_id, comm_protrol, order_id, water1,
|
|
|
+ end3, mix3, qwater3, advance_num, end2, mix2, begin3, error2, max3, begin2, water2,
|
|
|
+ end1, max2, error1, mix1, begin1, max1, error3
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from sc_crm_sync_info
|
|
|
+ where crm_id = #{crmId,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ delete from sc_crm_sync_info
|
|
|
+ where crm_id = #{crmId,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.huaxu.zoniot.entity.CrmSyncInfo">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ insert into sc_crm_sync_info (crm_id, create_org, order_no,
|
|
|
+ factory_read, imei2, ship_person,
|
|
|
+ rate_id, bt_size, prod_id,
|
|
|
+ vale_id, update_time, check_info,
|
|
|
+ operators, advance_id, node_no,
|
|
|
+ comm_type, product, baud_rate,
|
|
|
+ nccid, address, valve_status,
|
|
|
+ imei, meter_type, cust_erp_id,
|
|
|
+ pay_mode, delivery_date, user_id,
|
|
|
+ telphone, meter_code, data_address,
|
|
|
+ meter_model, material_id, sales_org,
|
|
|
+ customer_name, paytype_id, comm_protrol,
|
|
|
+ order_id, water1, end3,
|
|
|
+ mix3, qwater3, advance_num,
|
|
|
+ end2, mix2, begin3,
|
|
|
+ error2, max3, begin2,
|
|
|
+ water2, end1, max2,
|
|
|
+ error1, mix1, begin1,
|
|
|
+ max1, error3)
|
|
|
+ values (#{crmId,jdbcType=VARCHAR}, #{createOrg,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR},
|
|
|
+ #{factoryRead,jdbcType=VARCHAR}, #{imei2,jdbcType=VARCHAR}, #{shipPerson,jdbcType=VARCHAR},
|
|
|
+ #{rateId,jdbcType=VARCHAR}, #{btSize,jdbcType=VARCHAR}, #{prodId,jdbcType=VARCHAR},
|
|
|
+ #{valeId,jdbcType=VARCHAR}, #{updateTime,jdbcType=VARCHAR}, #{checkInfo,jdbcType=VARCHAR},
|
|
|
+ #{operators,jdbcType=VARCHAR}, #{advanceId,jdbcType=VARCHAR}, #{nodeNo,jdbcType=VARCHAR},
|
|
|
+ #{commType,jdbcType=VARCHAR}, #{product,jdbcType=VARCHAR}, #{baudRate,jdbcType=VARCHAR},
|
|
|
+ #{nccid,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{valveStatus,jdbcType=VARCHAR},
|
|
|
+ #{imei,jdbcType=VARCHAR}, #{meterType,jdbcType=VARCHAR}, #{custErpId,jdbcType=VARCHAR},
|
|
|
+ #{payMode,jdbcType=VARCHAR}, #{deliveryDate,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
|
|
|
+ #{telphone,jdbcType=VARCHAR}, #{meterCode,jdbcType=VARCHAR}, #{dataAddress,jdbcType=VARCHAR},
|
|
|
+ #{meterModel,jdbcType=VARCHAR}, #{materialId,jdbcType=VARCHAR}, #{salesOrg,jdbcType=VARCHAR},
|
|
|
+ #{customerName,jdbcType=VARCHAR}, #{paytypeId,jdbcType=VARCHAR}, #{commProtrol,jdbcType=VARCHAR},
|
|
|
+ #{orderId,jdbcType=VARCHAR}, #{water1,jdbcType=VARCHAR}, #{end3,jdbcType=VARCHAR},
|
|
|
+ #{mix3,jdbcType=VARCHAR}, #{qwater3,jdbcType=VARCHAR}, #{advanceNum,jdbcType=VARCHAR},
|
|
|
+ #{end2,jdbcType=VARCHAR}, #{mix2,jdbcType=VARCHAR}, #{begin3,jdbcType=VARCHAR},
|
|
|
+ #{error2,jdbcType=VARCHAR}, #{max3,jdbcType=VARCHAR}, #{begin2,jdbcType=VARCHAR},
|
|
|
+ #{water2,jdbcType=VARCHAR}, #{end1,jdbcType=VARCHAR}, #{max2,jdbcType=VARCHAR},
|
|
|
+ #{error1,jdbcType=VARCHAR}, #{mix1,jdbcType=VARCHAR}, #{begin1,jdbcType=VARCHAR},
|
|
|
+ #{max1,jdbcType=VARCHAR}, #{error3,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.huaxu.zoniot.entity.CrmSyncInfo">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ insert into sc_crm_sync_info
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="crmId != null">
|
|
|
+ crm_id,
|
|
|
+ </if>
|
|
|
+ <if test="createOrg != null">
|
|
|
+ create_org,
|
|
|
+ </if>
|
|
|
+ <if test="orderNo != null">
|
|
|
+ order_no,
|
|
|
+ </if>
|
|
|
+ <if test="factoryRead != null">
|
|
|
+ factory_read,
|
|
|
+ </if>
|
|
|
+ <if test="imei2 != null">
|
|
|
+ imei2,
|
|
|
+ </if>
|
|
|
+ <if test="shipPerson != null">
|
|
|
+ ship_person,
|
|
|
+ </if>
|
|
|
+ <if test="rateId != null">
|
|
|
+ rate_id,
|
|
|
+ </if>
|
|
|
+ <if test="btSize != null">
|
|
|
+ bt_size,
|
|
|
+ </if>
|
|
|
+ <if test="prodId != null">
|
|
|
+ prod_id,
|
|
|
+ </if>
|
|
|
+ <if test="valeId != null">
|
|
|
+ vale_id,
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time,
|
|
|
+ </if>
|
|
|
+ <if test="checkInfo != null">
|
|
|
+ check_info,
|
|
|
+ </if>
|
|
|
+ <if test="operators != null">
|
|
|
+ operators,
|
|
|
+ </if>
|
|
|
+ <if test="advanceId != null">
|
|
|
+ advance_id,
|
|
|
+ </if>
|
|
|
+ <if test="nodeNo != null">
|
|
|
+ node_no,
|
|
|
+ </if>
|
|
|
+ <if test="commType != null">
|
|
|
+ comm_type,
|
|
|
+ </if>
|
|
|
+ <if test="product != null">
|
|
|
+ product,
|
|
|
+ </if>
|
|
|
+ <if test="baudRate != null">
|
|
|
+ baud_rate,
|
|
|
+ </if>
|
|
|
+ <if test="nccid != null">
|
|
|
+ nccid,
|
|
|
+ </if>
|
|
|
+ <if test="address != null">
|
|
|
+ address,
|
|
|
+ </if>
|
|
|
+ <if test="valveStatus != null">
|
|
|
+ valve_status,
|
|
|
+ </if>
|
|
|
+ <if test="imei != null">
|
|
|
+ imei,
|
|
|
+ </if>
|
|
|
+ <if test="meterType != null">
|
|
|
+ meter_type,
|
|
|
+ </if>
|
|
|
+ <if test="custErpId != null">
|
|
|
+ cust_erp_id,
|
|
|
+ </if>
|
|
|
+ <if test="payMode != null">
|
|
|
+ pay_mode,
|
|
|
+ </if>
|
|
|
+ <if test="deliveryDate != null">
|
|
|
+ delivery_date,
|
|
|
+ </if>
|
|
|
+ <if test="userId != null">
|
|
|
+ user_id,
|
|
|
+ </if>
|
|
|
+ <if test="telphone != null">
|
|
|
+ telphone,
|
|
|
+ </if>
|
|
|
+ <if test="meterCode != null">
|
|
|
+ meter_code,
|
|
|
+ </if>
|
|
|
+ <if test="dataAddress != null">
|
|
|
+ data_address,
|
|
|
+ </if>
|
|
|
+ <if test="meterModel != null">
|
|
|
+ meter_model,
|
|
|
+ </if>
|
|
|
+ <if test="materialId != null">
|
|
|
+ material_id,
|
|
|
+ </if>
|
|
|
+ <if test="salesOrg != null">
|
|
|
+ sales_org,
|
|
|
+ </if>
|
|
|
+ <if test="customerName != null">
|
|
|
+ customer_name,
|
|
|
+ </if>
|
|
|
+ <if test="paytypeId != null">
|
|
|
+ paytype_id,
|
|
|
+ </if>
|
|
|
+ <if test="commProtrol != null">
|
|
|
+ comm_protrol,
|
|
|
+ </if>
|
|
|
+ <if test="orderId != null">
|
|
|
+ order_id,
|
|
|
+ </if>
|
|
|
+ <if test="water1 != null">
|
|
|
+ water1,
|
|
|
+ </if>
|
|
|
+ <if test="end3 != null">
|
|
|
+ end3,
|
|
|
+ </if>
|
|
|
+ <if test="mix3 != null">
|
|
|
+ mix3,
|
|
|
+ </if>
|
|
|
+ <if test="qwater3 != null">
|
|
|
+ qwater3,
|
|
|
+ </if>
|
|
|
+ <if test="advanceNum != null">
|
|
|
+ advance_num,
|
|
|
+ </if>
|
|
|
+ <if test="end2 != null">
|
|
|
+ end2,
|
|
|
+ </if>
|
|
|
+ <if test="mix2 != null">
|
|
|
+ mix2,
|
|
|
+ </if>
|
|
|
+ <if test="begin3 != null">
|
|
|
+ begin3,
|
|
|
+ </if>
|
|
|
+ <if test="error2 != null">
|
|
|
+ error2,
|
|
|
+ </if>
|
|
|
+ <if test="max3 != null">
|
|
|
+ max3,
|
|
|
+ </if>
|
|
|
+ <if test="begin2 != null">
|
|
|
+ begin2,
|
|
|
+ </if>
|
|
|
+ <if test="water2 != null">
|
|
|
+ water2,
|
|
|
+ </if>
|
|
|
+ <if test="end1 != null">
|
|
|
+ end1,
|
|
|
+ </if>
|
|
|
+ <if test="max2 != null">
|
|
|
+ max2,
|
|
|
+ </if>
|
|
|
+ <if test="error1 != null">
|
|
|
+ error1,
|
|
|
+ </if>
|
|
|
+ <if test="mix1 != null">
|
|
|
+ mix1,
|
|
|
+ </if>
|
|
|
+ <if test="begin1 != null">
|
|
|
+ begin1,
|
|
|
+ </if>
|
|
|
+ <if test="max1 != null">
|
|
|
+ max1,
|
|
|
+ </if>
|
|
|
+ <if test="error3 != null">
|
|
|
+ error3,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="crmId != null">
|
|
|
+ #{crmId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createOrg != null">
|
|
|
+ #{createOrg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orderNo != null">
|
|
|
+ #{orderNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="factoryRead != null">
|
|
|
+ #{factoryRead,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="imei2 != null">
|
|
|
+ #{imei2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="shipPerson != null">
|
|
|
+ #{shipPerson,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="rateId != null">
|
|
|
+ #{rateId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="btSize != null">
|
|
|
+ #{btSize,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="prodId != null">
|
|
|
+ #{prodId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="valeId != null">
|
|
|
+ #{valeId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ #{updateTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="checkInfo != null">
|
|
|
+ #{checkInfo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="operators != null">
|
|
|
+ #{operators,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="advanceId != null">
|
|
|
+ #{advanceId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="nodeNo != null">
|
|
|
+ #{nodeNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="commType != null">
|
|
|
+ #{commType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="product != null">
|
|
|
+ #{product,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="baudRate != null">
|
|
|
+ #{baudRate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="nccid != null">
|
|
|
+ #{nccid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="address != null">
|
|
|
+ #{address,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="valveStatus != null">
|
|
|
+ #{valveStatus,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="imei != null">
|
|
|
+ #{imei,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="meterType != null">
|
|
|
+ #{meterType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="custErpId != null">
|
|
|
+ #{custErpId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="payMode != null">
|
|
|
+ #{payMode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deliveryDate != null">
|
|
|
+ #{deliveryDate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="userId != null">
|
|
|
+ #{userId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="telphone != null">
|
|
|
+ #{telphone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="meterCode != null">
|
|
|
+ #{meterCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dataAddress != null">
|
|
|
+ #{dataAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="meterModel != null">
|
|
|
+ #{meterModel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="materialId != null">
|
|
|
+ #{materialId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="salesOrg != null">
|
|
|
+ #{salesOrg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="customerName != null">
|
|
|
+ #{customerName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="paytypeId != null">
|
|
|
+ #{paytypeId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="commProtrol != null">
|
|
|
+ #{commProtrol,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orderId != null">
|
|
|
+ #{orderId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="water1 != null">
|
|
|
+ #{water1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="end3 != null">
|
|
|
+ #{end3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mix3 != null">
|
|
|
+ #{mix3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qwater3 != null">
|
|
|
+ #{qwater3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="advanceNum != null">
|
|
|
+ #{advanceNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="end2 != null">
|
|
|
+ #{end2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mix2 != null">
|
|
|
+ #{mix2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="begin3 != null">
|
|
|
+ #{begin3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="error2 != null">
|
|
|
+ #{error2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="max3 != null">
|
|
|
+ #{max3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="begin2 != null">
|
|
|
+ #{begin2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="water2 != null">
|
|
|
+ #{water2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="end1 != null">
|
|
|
+ #{end1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="max2 != null">
|
|
|
+ #{max2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="error1 != null">
|
|
|
+ #{error1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mix1 != null">
|
|
|
+ #{mix1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="begin1 != null">
|
|
|
+ #{begin1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="max1 != null">
|
|
|
+ #{max1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="error3 != null">
|
|
|
+ #{error3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.huaxu.zoniot.entity.CrmSyncInfo">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ update sc_crm_sync_info
|
|
|
+ <set>
|
|
|
+ <if test="createOrg != null">
|
|
|
+ create_org = #{createOrg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orderNo != null">
|
|
|
+ order_no = #{orderNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="factoryRead != null">
|
|
|
+ factory_read = #{factoryRead,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="imei2 != null">
|
|
|
+ imei2 = #{imei2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="shipPerson != null">
|
|
|
+ ship_person = #{shipPerson,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="rateId != null">
|
|
|
+ rate_id = #{rateId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="btSize != null">
|
|
|
+ bt_size = #{btSize,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="prodId != null">
|
|
|
+ prod_id = #{prodId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="valeId != null">
|
|
|
+ vale_id = #{valeId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time = #{updateTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="checkInfo != null">
|
|
|
+ check_info = #{checkInfo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="operators != null">
|
|
|
+ operators = #{operators,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="advanceId != null">
|
|
|
+ advance_id = #{advanceId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="nodeNo != null">
|
|
|
+ node_no = #{nodeNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="commType != null">
|
|
|
+ comm_type = #{commType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="product != null">
|
|
|
+ product = #{product,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="baudRate != null">
|
|
|
+ baud_rate = #{baudRate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="nccid != null">
|
|
|
+ nccid = #{nccid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="address != null">
|
|
|
+ address = #{address,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="valveStatus != null">
|
|
|
+ valve_status = #{valveStatus,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="imei != null">
|
|
|
+ imei = #{imei,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="meterType != null">
|
|
|
+ meter_type = #{meterType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="custErpId != null">
|
|
|
+ cust_erp_id = #{custErpId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="payMode != null">
|
|
|
+ pay_mode = #{payMode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deliveryDate != null">
|
|
|
+ delivery_date = #{deliveryDate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="userId != null">
|
|
|
+ user_id = #{userId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="telphone != null">
|
|
|
+ telphone = #{telphone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="meterCode != null">
|
|
|
+ meter_code = #{meterCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dataAddress != null">
|
|
|
+ data_address = #{dataAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="meterModel != null">
|
|
|
+ meter_model = #{meterModel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="materialId != null">
|
|
|
+ material_id = #{materialId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="salesOrg != null">
|
|
|
+ sales_org = #{salesOrg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="customerName != null">
|
|
|
+ customer_name = #{customerName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="paytypeId != null">
|
|
|
+ paytype_id = #{paytypeId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="commProtrol != null">
|
|
|
+ comm_protrol = #{commProtrol,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orderId != null">
|
|
|
+ order_id = #{orderId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="water1 != null">
|
|
|
+ water1 = #{water1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="end3 != null">
|
|
|
+ end3 = #{end3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mix3 != null">
|
|
|
+ mix3 = #{mix3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qwater3 != null">
|
|
|
+ qwater3 = #{qwater3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="advanceNum != null">
|
|
|
+ advance_num = #{advanceNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="end2 != null">
|
|
|
+ end2 = #{end2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mix2 != null">
|
|
|
+ mix2 = #{mix2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="begin3 != null">
|
|
|
+ begin3 = #{begin3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="error2 != null">
|
|
|
+ error2 = #{error2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="max3 != null">
|
|
|
+ max3 = #{max3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="begin2 != null">
|
|
|
+ begin2 = #{begin2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="water2 != null">
|
|
|
+ water2 = #{water2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="end1 != null">
|
|
|
+ end1 = #{end1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="max2 != null">
|
|
|
+ max2 = #{max2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="error1 != null">
|
|
|
+ error1 = #{error1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mix1 != null">
|
|
|
+ mix1 = #{mix1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="begin1 != null">
|
|
|
+ begin1 = #{begin1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="max1 != null">
|
|
|
+ max1 = #{max1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="error3 != null">
|
|
|
+ error3 = #{error3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where crm_id = #{crmId,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.huaxu.zoniot.entity.CrmSyncInfo">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ update sc_crm_sync_info
|
|
|
+ set create_org = #{createOrg,jdbcType=VARCHAR},
|
|
|
+ order_no = #{orderNo,jdbcType=VARCHAR},
|
|
|
+ factory_read = #{factoryRead,jdbcType=VARCHAR},
|
|
|
+ imei2 = #{imei2,jdbcType=VARCHAR},
|
|
|
+ ship_person = #{shipPerson,jdbcType=VARCHAR},
|
|
|
+ rate_id = #{rateId,jdbcType=VARCHAR},
|
|
|
+ bt_size = #{btSize,jdbcType=VARCHAR},
|
|
|
+ prod_id = #{prodId,jdbcType=VARCHAR},
|
|
|
+ vale_id = #{valeId,jdbcType=VARCHAR},
|
|
|
+ update_time = #{updateTime,jdbcType=VARCHAR},
|
|
|
+ check_info = #{checkInfo,jdbcType=VARCHAR},
|
|
|
+ operators = #{operators,jdbcType=VARCHAR},
|
|
|
+ advance_id = #{advanceId,jdbcType=VARCHAR},
|
|
|
+ node_no = #{nodeNo,jdbcType=VARCHAR},
|
|
|
+ comm_type = #{commType,jdbcType=VARCHAR},
|
|
|
+ product = #{product,jdbcType=VARCHAR},
|
|
|
+ baud_rate = #{baudRate,jdbcType=VARCHAR},
|
|
|
+ nccid = #{nccid,jdbcType=VARCHAR},
|
|
|
+ address = #{address,jdbcType=VARCHAR},
|
|
|
+ valve_status = #{valveStatus,jdbcType=VARCHAR},
|
|
|
+ imei = #{imei,jdbcType=VARCHAR},
|
|
|
+ meter_type = #{meterType,jdbcType=VARCHAR},
|
|
|
+ cust_erp_id = #{custErpId,jdbcType=VARCHAR},
|
|
|
+ pay_mode = #{payMode,jdbcType=VARCHAR},
|
|
|
+ delivery_date = #{deliveryDate,jdbcType=VARCHAR},
|
|
|
+ user_id = #{userId,jdbcType=VARCHAR},
|
|
|
+ telphone = #{telphone,jdbcType=VARCHAR},
|
|
|
+ meter_code = #{meterCode,jdbcType=VARCHAR},
|
|
|
+ data_address = #{dataAddress,jdbcType=VARCHAR},
|
|
|
+ meter_model = #{meterModel,jdbcType=VARCHAR},
|
|
|
+ material_id = #{materialId,jdbcType=VARCHAR},
|
|
|
+ sales_org = #{salesOrg,jdbcType=VARCHAR},
|
|
|
+ customer_name = #{customerName,jdbcType=VARCHAR},
|
|
|
+ paytype_id = #{paytypeId,jdbcType=VARCHAR},
|
|
|
+ comm_protrol = #{commProtrol,jdbcType=VARCHAR},
|
|
|
+ order_id = #{orderId,jdbcType=VARCHAR},
|
|
|
+ water1 = #{water1,jdbcType=VARCHAR},
|
|
|
+ end3 = #{end3,jdbcType=VARCHAR},
|
|
|
+ mix3 = #{mix3,jdbcType=VARCHAR},
|
|
|
+ qwater3 = #{qwater3,jdbcType=VARCHAR},
|
|
|
+ advance_num = #{advanceNum,jdbcType=VARCHAR},
|
|
|
+ end2 = #{end2,jdbcType=VARCHAR},
|
|
|
+ mix2 = #{mix2,jdbcType=VARCHAR},
|
|
|
+ begin3 = #{begin3,jdbcType=VARCHAR},
|
|
|
+ error2 = #{error2,jdbcType=VARCHAR},
|
|
|
+ max3 = #{max3,jdbcType=VARCHAR},
|
|
|
+ begin2 = #{begin2,jdbcType=VARCHAR},
|
|
|
+ water2 = #{water2,jdbcType=VARCHAR},
|
|
|
+ end1 = #{end1,jdbcType=VARCHAR},
|
|
|
+ max2 = #{max2,jdbcType=VARCHAR},
|
|
|
+ error1 = #{error1,jdbcType=VARCHAR},
|
|
|
+ mix1 = #{mix1,jdbcType=VARCHAR},
|
|
|
+ begin1 = #{begin1,jdbcType=VARCHAR},
|
|
|
+ max1 = #{max1,jdbcType=VARCHAR},
|
|
|
+ error3 = #{error3,jdbcType=VARCHAR}
|
|
|
+ where crm_id = #{crmId,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <insert id="batchInsert" parameterType="map">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ insert into sc_crm_sync_info
|
|
|
+ (crm_id, create_org, order_no, factory_read, imei2, ship_person, rate_id, bt_size,
|
|
|
+ prod_id, vale_id, update_time, check_info, operators, advance_id, node_no, comm_type,
|
|
|
+ product, baud_rate, nccid, address, valve_status, imei, meter_type, cust_erp_id,
|
|
|
+ pay_mode, delivery_date, user_id, telphone, meter_code, data_address, meter_model,
|
|
|
+ material_id, sales_org, customer_name, paytype_id, comm_protrol, order_id, water1,
|
|
|
+ end3, mix3, qwater3, advance_num, end2, mix2, begin3, error2, max3, begin2, water2,
|
|
|
+ end1, max2, error1, mix1, begin1, max1, error3)
|
|
|
+ values
|
|
|
+ <foreach collection="list" item="item" separator=",">
|
|
|
+ (#{item.crmId,jdbcType=VARCHAR}, #{item.createOrg,jdbcType=VARCHAR}, #{item.orderNo,jdbcType=VARCHAR},
|
|
|
+ #{item.factoryRead,jdbcType=VARCHAR}, #{item.imei2,jdbcType=VARCHAR}, #{item.shipPerson,jdbcType=VARCHAR},
|
|
|
+ #{item.rateId,jdbcType=VARCHAR}, #{item.btSize,jdbcType=VARCHAR}, #{item.prodId,jdbcType=VARCHAR},
|
|
|
+ #{item.valeId,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=VARCHAR}, #{item.checkInfo,jdbcType=VARCHAR},
|
|
|
+ #{item.operators,jdbcType=VARCHAR}, #{item.advanceId,jdbcType=VARCHAR}, #{item.nodeNo,jdbcType=VARCHAR},
|
|
|
+ #{item.commType,jdbcType=VARCHAR}, #{item.product,jdbcType=VARCHAR}, #{item.baudRate,jdbcType=VARCHAR},
|
|
|
+ #{item.nccid,jdbcType=VARCHAR}, #{item.address,jdbcType=VARCHAR}, #{item.valveStatus,jdbcType=VARCHAR},
|
|
|
+ #{item.imei,jdbcType=VARCHAR}, #{item.meterType,jdbcType=VARCHAR}, #{item.custErpId,jdbcType=VARCHAR},
|
|
|
+ #{item.payMode,jdbcType=VARCHAR}, #{item.deliveryDate,jdbcType=VARCHAR}, #{item.userId,jdbcType=VARCHAR},
|
|
|
+ #{item.telphone,jdbcType=VARCHAR}, #{item.meterCode,jdbcType=VARCHAR}, #{item.dataAddress,jdbcType=VARCHAR},
|
|
|
+ #{item.meterModel,jdbcType=VARCHAR}, #{item.materialId,jdbcType=VARCHAR}, #{item.salesOrg,jdbcType=VARCHAR},
|
|
|
+ #{item.customerName,jdbcType=VARCHAR}, #{item.paytypeId,jdbcType=VARCHAR}, #{item.commProtrol,jdbcType=VARCHAR},
|
|
|
+ #{item.orderId,jdbcType=VARCHAR}, #{item.water1,jdbcType=VARCHAR}, #{item.end3,jdbcType=VARCHAR},
|
|
|
+ #{item.mix3,jdbcType=VARCHAR}, #{item.qwater3,jdbcType=VARCHAR}, #{item.advanceNum,jdbcType=VARCHAR},
|
|
|
+ #{item.end2,jdbcType=VARCHAR}, #{item.mix2,jdbcType=VARCHAR}, #{item.begin3,jdbcType=VARCHAR},
|
|
|
+ #{item.error2,jdbcType=VARCHAR}, #{item.max3,jdbcType=VARCHAR}, #{item.begin2,jdbcType=VARCHAR},
|
|
|
+ #{item.water2,jdbcType=VARCHAR}, #{item.end1,jdbcType=VARCHAR}, #{item.max2,jdbcType=VARCHAR},
|
|
|
+ #{item.error1,jdbcType=VARCHAR}, #{item.mix1,jdbcType=VARCHAR}, #{item.begin1,jdbcType=VARCHAR},
|
|
|
+ #{item.max1,jdbcType=VARCHAR}, #{item.error3,jdbcType=VARCHAR})
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+ <select id="findByNccid" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from sc_crm_sync_info
|
|
|
+ where nccid = #{nccid,jdbcType=VARCHAR}
|
|
|
+ limit 1
|
|
|
+ </select>
|
|
|
+ <select id="findByMeterCode" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from sc_crm_sync_info
|
|
|
+ where meter_code = #{meterCode,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+</mapper>
|