<?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.weiqi.mis.mapper.WxXrPemsOrderMapper" >
  <resultMap id="BaseResultMap" type="com.weiqi.mis.domain.WxXrPemsOrder" >
    <id column="ID" property="id" jdbcType="INTEGER" />
    <result column="OrderNo" property="orderno" jdbcType="VARCHAR" />
    <result column="MID" property="mid" jdbcType="INTEGER" />
    <result column="MName" property="mname" jdbcType="VARCHAR" />
    <result column="OrderUserId" property="orderuserid" jdbcType="INTEGER" />
    <result column="OrderUserName" property="orderusername" jdbcType="VARCHAR" />
    <result column="AdmissionTime" property="admissiontime" jdbcType="TIMESTAMP" />
    <result column="ConstructionStartTime" property="constructionstarttime" jdbcType="TIMESTAMP" />
    <result column="PlateNumber" property="platenumber" jdbcType="VARCHAR" />
    <result column="VIN" property="vin" jdbcType="VARCHAR" />
    <result column="RegisterTime" property="registertime" jdbcType="VARCHAR" />
    <result column="Kilometers" property="kilometers" jdbcType="REAL" />
    <result column="DrivingLicenseSrc" property="drivinglicensesrc" jdbcType="VARCHAR" />
    <result column="VehicleSrc" property="vehiclesrc" jdbcType="VARCHAR" />
    <result column="VehicleType" property="vehicletype" jdbcType="VARCHAR" />
    <result column="LinkName" property="linkname" jdbcType="VARCHAR" />
    <result column="LinkTel" property="linktel" jdbcType="VARCHAR" />
    <result column="GaugingSchemeID" property="gaugingschemeid" jdbcType="INTEGER" />
    <result column="GaugingSchemeName" property="gaugingschemename" jdbcType="VARCHAR" />
    <result column="MaintenanceSchemeID" property="maintenanceschemeid" jdbcType="INTEGER" />
    <result column="MaintenanceSchemeName" property="maintenanceschemename" jdbcType="VARCHAR" />
    <result column="BrandId" property="brandid" jdbcType="INTEGER" />
    <result column="BrandName" property="brandname" jdbcType="VARCHAR" />
    <result column="SeriesId" property="seriesid" jdbcType="INTEGER" />
    <result column="SeriesName" property="seriesname" jdbcType="VARCHAR" />
    <result column="ProductionYear" property="productionyear" jdbcType="VARCHAR" />
    <result column="EngineStructure" property="enginestructure" jdbcType="VARCHAR" />
    <result column="EngineStructureNumber" property="enginestructurenumber" jdbcType="INTEGER" />
    <result column="ElectronicFuelType" property="electronicfueltype" jdbcType="VARCHAR" />
    <result column="TransmissionCase" property="transmissioncase" jdbcType="VARCHAR" />
    <result column="DriveType" property="drivetype" jdbcType="VARCHAR" />
    <result column="EmissionStandard" property="emissionstandard" jdbcType="VARCHAR" />
    <result column="Status" property="status" jdbcType="INTEGER" />
    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
    <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
    <result column="wx_xr_pems_user_id" property="wxXrPemsUserId" jdbcType="INTEGER" />
    <result column="check_up_result" property="checkUpResult" jdbcType="INTEGER" />
    <result column="wx_xr_pems_user_name" property="wxXrPemsUserName" jdbcType="VARCHAR" />
    <result column="ExhaustStructure" property="exhauststructure" jdbcType="VARCHAR" />
    <result column="FactoryId" property="factoryid" jdbcType="INTEGER" />
    <result column="FactoryName" property="factoryname" jdbcType="VARCHAR" />
    <result column="img_url" property="imgUrl" jdbcType="VARCHAR" />
    <result column="pdf_url" property="pdfUrl" jdbcType="VARCHAR" />
    <result column="sync_status" property="syncStatus" jdbcType="INTEGER" />
    <result column="sync_response" property="syncResponse" jdbcType="VARCHAR" />
  </resultMap>
  <resultMap id="ResultMapWithBLOBs" type="com.weiqi.mis.domain.WxXrPemsOrder" extends="BaseResultMap" >
    <result column="vin_content" property="vinContent" jdbcType="LONGVARCHAR" />
  </resultMap>
  <sql id="Example_Where_Clause" >
    <where >
      <foreach collection="oredCriteria" item="criteria" separator="or" >
        <if test="criteria.valid" >
          <trim prefix="(" suffix=")" prefixOverrides="and" >
            <foreach collection="criteria.criteria" item="criterion" >
              <choose >
                <when test="criterion.noValue" >
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue" >
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue" >
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue" >
                  and ${criterion.condition}
                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List" >
    ID, OrderNo, MID, MName, OrderUserId, OrderUserName, AdmissionTime, ConstructionStartTime, 
    PlateNumber, VIN, RegisterTime, Kilometers, DrivingLicenseSrc, VehicleSrc, VehicleType, 
    LinkName, LinkTel, GaugingSchemeID, GaugingSchemeName, MaintenanceSchemeID, MaintenanceSchemeName, 
    BrandId, BrandName, SeriesId, SeriesName, ProductionYear, EngineStructure, EngineStructureNumber, 
    ElectronicFuelType, TransmissionCase, DriveType, EmissionStandard, Status, create_time, 
    update_time, wx_xr_pems_user_id, check_up_result, wx_xr_pems_user_name, ExhaustStructure, 
    FactoryId, FactoryName, img_url, pdf_url, sync_status, sync_response
  </sql>
  <sql id="Blob_Column_List" >
    vin_content
  </sql>
  <select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.weiqi.mis.domain.WxXrPemsOrderExample" >
    select
    <if test="distinct" >
      distinct
    </if>
    'true' as QUERYID,
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from wx_xr_pems_order
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null" >
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.weiqi.mis.domain.WxXrPemsOrderExample" >
    select
    <if test="distinct" >
      distinct
    </if>
    'true' as QUERYID,
    <include refid="Base_Column_List" />
    from wx_xr_pems_order
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null" >
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from wx_xr_pems_order
    where ID = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from wx_xr_pems_order
    where ID = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.weiqi.mis.domain.WxXrPemsOrder" >
    insert into wx_xr_pems_order (ID, OrderNo, MID, 
      MName, OrderUserId, OrderUserName, 
      AdmissionTime, ConstructionStartTime, 
      PlateNumber, VIN, RegisterTime, 
      Kilometers, DrivingLicenseSrc, VehicleSrc, 
      VehicleType, LinkName, LinkTel, 
      GaugingSchemeID, GaugingSchemeName, MaintenanceSchemeID, 
      MaintenanceSchemeName, BrandId, BrandName, 
      SeriesId, SeriesName, ProductionYear, 
      EngineStructure, EngineStructureNumber, 
      ElectronicFuelType, TransmissionCase, DriveType, 
      EmissionStandard, Status, create_time, 
      update_time, wx_xr_pems_user_id, check_up_result, 
      wx_xr_pems_user_name, ExhaustStructure, FactoryId, 
      FactoryName, img_url, pdf_url, 
      sync_status, sync_response, vin_content
      )
    values (#{id,jdbcType=INTEGER}, #{orderno,jdbcType=VARCHAR}, #{mid,jdbcType=INTEGER}, 
      #{mname,jdbcType=VARCHAR}, #{orderuserid,jdbcType=INTEGER}, #{orderusername,jdbcType=VARCHAR}, 
      #{admissiontime,jdbcType=TIMESTAMP}, #{constructionstarttime,jdbcType=TIMESTAMP}, 
      #{platenumber,jdbcType=VARCHAR}, #{vin,jdbcType=VARCHAR}, #{registertime,jdbcType=VARCHAR}, 
      #{kilometers,jdbcType=REAL}, #{drivinglicensesrc,jdbcType=VARCHAR}, #{vehiclesrc,jdbcType=VARCHAR}, 
      #{vehicletype,jdbcType=VARCHAR}, #{linkname,jdbcType=VARCHAR}, #{linktel,jdbcType=VARCHAR}, 
      #{gaugingschemeid,jdbcType=INTEGER}, #{gaugingschemename,jdbcType=VARCHAR}, #{maintenanceschemeid,jdbcType=INTEGER}, 
      #{maintenanceschemename,jdbcType=VARCHAR}, #{brandid,jdbcType=INTEGER}, #{brandname,jdbcType=VARCHAR}, 
      #{seriesid,jdbcType=INTEGER}, #{seriesname,jdbcType=VARCHAR}, #{productionyear,jdbcType=VARCHAR}, 
      #{enginestructure,jdbcType=VARCHAR}, #{enginestructurenumber,jdbcType=INTEGER}, 
      #{electronicfueltype,jdbcType=VARCHAR}, #{transmissioncase,jdbcType=VARCHAR}, #{drivetype,jdbcType=VARCHAR}, 
      #{emissionstandard,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{wxXrPemsUserId,jdbcType=INTEGER}, #{checkUpResult,jdbcType=INTEGER}, 
      #{wxXrPemsUserName,jdbcType=VARCHAR}, #{exhauststructure,jdbcType=VARCHAR}, #{factoryid,jdbcType=INTEGER}, 
      #{factoryname,jdbcType=VARCHAR}, #{imgUrl,jdbcType=VARCHAR}, #{pdfUrl,jdbcType=VARCHAR}, 
      #{syncStatus,jdbcType=INTEGER}, #{syncResponse,jdbcType=VARCHAR}, #{vinContent,jdbcType=LONGVARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.weiqi.mis.domain.WxXrPemsOrder" >
    insert into wx_xr_pems_order
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        ID,
      </if>
      <if test="orderno != null" >
        OrderNo,
      </if>
      <if test="mid != null" >
        MID,
      </if>
      <if test="mname != null" >
        MName,
      </if>
      <if test="orderuserid != null" >
        OrderUserId,
      </if>
      <if test="orderusername != null" >
        OrderUserName,
      </if>
      <if test="admissiontime != null" >
        AdmissionTime,
      </if>
      <if test="constructionstarttime != null" >
        ConstructionStartTime,
      </if>
      <if test="platenumber != null" >
        PlateNumber,
      </if>
      <if test="vin != null" >
        VIN,
      </if>
      <if test="registertime != null" >
        RegisterTime,
      </if>
      <if test="kilometers != null" >
        Kilometers,
      </if>
      <if test="drivinglicensesrc != null" >
        DrivingLicenseSrc,
      </if>
      <if test="vehiclesrc != null" >
        VehicleSrc,
      </if>
      <if test="vehicletype != null" >
        VehicleType,
      </if>
      <if test="linkname != null" >
        LinkName,
      </if>
      <if test="linktel != null" >
        LinkTel,
      </if>
      <if test="gaugingschemeid != null" >
        GaugingSchemeID,
      </if>
      <if test="gaugingschemename != null" >
        GaugingSchemeName,
      </if>
      <if test="maintenanceschemeid != null" >
        MaintenanceSchemeID,
      </if>
      <if test="maintenanceschemename != null" >
        MaintenanceSchemeName,
      </if>
      <if test="brandid != null" >
        BrandId,
      </if>
      <if test="brandname != null" >
        BrandName,
      </if>
      <if test="seriesid != null" >
        SeriesId,
      </if>
      <if test="seriesname != null" >
        SeriesName,
      </if>
      <if test="productionyear != null" >
        ProductionYear,
      </if>
      <if test="enginestructure != null" >
        EngineStructure,
      </if>
      <if test="enginestructurenumber != null" >
        EngineStructureNumber,
      </if>
      <if test="electronicfueltype != null" >
        ElectronicFuelType,
      </if>
      <if test="transmissioncase != null" >
        TransmissionCase,
      </if>
      <if test="drivetype != null" >
        DriveType,
      </if>
      <if test="emissionstandard != null" >
        EmissionStandard,
      </if>
      <if test="status != null" >
        Status,
      </if>
      <if test="createTime != null" >
        create_time,
      </if>
      <if test="updateTime != null" >
        update_time,
      </if>
      <if test="wxXrPemsUserId != null" >
        wx_xr_pems_user_id,
      </if>
      <if test="checkUpResult != null" >
        check_up_result,
      </if>
      <if test="wxXrPemsUserName != null" >
        wx_xr_pems_user_name,
      </if>
      <if test="exhauststructure != null" >
        ExhaustStructure,
      </if>
      <if test="factoryid != null" >
        FactoryId,
      </if>
      <if test="factoryname != null" >
        FactoryName,
      </if>
      <if test="imgUrl != null" >
        img_url,
      </if>
      <if test="pdfUrl != null" >
        pdf_url,
      </if>
      <if test="syncStatus != null" >
        sync_status,
      </if>
      <if test="syncResponse != null" >
        sync_response,
      </if>
      <if test="vinContent != null" >
        vin_content,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=INTEGER},
      </if>
      <if test="orderno != null" >
        #{orderno,jdbcType=VARCHAR},
      </if>
      <if test="mid != null" >
        #{mid,jdbcType=INTEGER},
      </if>
      <if test="mname != null" >
        #{mname,jdbcType=VARCHAR},
      </if>
      <if test="orderuserid != null" >
        #{orderuserid,jdbcType=INTEGER},
      </if>
      <if test="orderusername != null" >
        #{orderusername,jdbcType=VARCHAR},
      </if>
      <if test="admissiontime != null" >
        #{admissiontime,jdbcType=TIMESTAMP},
      </if>
      <if test="constructionstarttime != null" >
        #{constructionstarttime,jdbcType=TIMESTAMP},
      </if>
      <if test="platenumber != null" >
        #{platenumber,jdbcType=VARCHAR},
      </if>
      <if test="vin != null" >
        #{vin,jdbcType=VARCHAR},
      </if>
      <if test="registertime != null" >
        #{registertime,jdbcType=VARCHAR},
      </if>
      <if test="kilometers != null" >
        #{kilometers,jdbcType=REAL},
      </if>
      <if test="drivinglicensesrc != null" >
        #{drivinglicensesrc,jdbcType=VARCHAR},
      </if>
      <if test="vehiclesrc != null" >
        #{vehiclesrc,jdbcType=VARCHAR},
      </if>
      <if test="vehicletype != null" >
        #{vehicletype,jdbcType=VARCHAR},
      </if>
      <if test="linkname != null" >
        #{linkname,jdbcType=VARCHAR},
      </if>
      <if test="linktel != null" >
        #{linktel,jdbcType=VARCHAR},
      </if>
      <if test="gaugingschemeid != null" >
        #{gaugingschemeid,jdbcType=INTEGER},
      </if>
      <if test="gaugingschemename != null" >
        #{gaugingschemename,jdbcType=VARCHAR},
      </if>
      <if test="maintenanceschemeid != null" >
        #{maintenanceschemeid,jdbcType=INTEGER},
      </if>
      <if test="maintenanceschemename != null" >
        #{maintenanceschemename,jdbcType=VARCHAR},
      </if>
      <if test="brandid != null" >
        #{brandid,jdbcType=INTEGER},
      </if>
      <if test="brandname != null" >
        #{brandname,jdbcType=VARCHAR},
      </if>
      <if test="seriesid != null" >
        #{seriesid,jdbcType=INTEGER},
      </if>
      <if test="seriesname != null" >
        #{seriesname,jdbcType=VARCHAR},
      </if>
      <if test="productionyear != null" >
        #{productionyear,jdbcType=VARCHAR},
      </if>
      <if test="enginestructure != null" >
        #{enginestructure,jdbcType=VARCHAR},
      </if>
      <if test="enginestructurenumber != null" >
        #{enginestructurenumber,jdbcType=INTEGER},
      </if>
      <if test="electronicfueltype != null" >
        #{electronicfueltype,jdbcType=VARCHAR},
      </if>
      <if test="transmissioncase != null" >
        #{transmissioncase,jdbcType=VARCHAR},
      </if>
      <if test="drivetype != null" >
        #{drivetype,jdbcType=VARCHAR},
      </if>
      <if test="emissionstandard != null" >
        #{emissionstandard,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        #{status,jdbcType=INTEGER},
      </if>
      <if test="createTime != null" >
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null" >
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="wxXrPemsUserId != null" >
        #{wxXrPemsUserId,jdbcType=INTEGER},
      </if>
      <if test="checkUpResult != null" >
        #{checkUpResult,jdbcType=INTEGER},
      </if>
      <if test="wxXrPemsUserName != null" >
        #{wxXrPemsUserName,jdbcType=VARCHAR},
      </if>
      <if test="exhauststructure != null" >
        #{exhauststructure,jdbcType=VARCHAR},
      </if>
      <if test="factoryid != null" >
        #{factoryid,jdbcType=INTEGER},
      </if>
      <if test="factoryname != null" >
        #{factoryname,jdbcType=VARCHAR},
      </if>
      <if test="imgUrl != null" >
        #{imgUrl,jdbcType=VARCHAR},
      </if>
      <if test="pdfUrl != null" >
        #{pdfUrl,jdbcType=VARCHAR},
      </if>
      <if test="syncStatus != null" >
        #{syncStatus,jdbcType=INTEGER},
      </if>
      <if test="syncResponse != null" >
        #{syncResponse,jdbcType=VARCHAR},
      </if>
      <if test="vinContent != null" >
        #{vinContent,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.weiqi.mis.domain.WxXrPemsOrderExample" resultType="java.lang.Integer" >
    select count(*) from wx_xr_pems_order
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByPrimaryKeySelective" parameterType="com.weiqi.mis.domain.WxXrPemsOrder" >
    update wx_xr_pems_order
    <set >
      <if test="orderno != null" >
        OrderNo = #{orderno,jdbcType=VARCHAR},
      </if>
      <if test="mid != null" >
        MID = #{mid,jdbcType=INTEGER},
      </if>
      <if test="mname != null" >
        MName = #{mname,jdbcType=VARCHAR},
      </if>
      <if test="orderuserid != null" >
        OrderUserId = #{orderuserid,jdbcType=INTEGER},
      </if>
      <if test="orderusername != null" >
        OrderUserName = #{orderusername,jdbcType=VARCHAR},
      </if>
      <if test="admissiontime != null" >
        AdmissionTime = #{admissiontime,jdbcType=TIMESTAMP},
      </if>
      <if test="constructionstarttime != null" >
        ConstructionStartTime = #{constructionstarttime,jdbcType=TIMESTAMP},
      </if>
      <if test="platenumber != null" >
        PlateNumber = #{platenumber,jdbcType=VARCHAR},
      </if>
      <if test="vin != null" >
        VIN = #{vin,jdbcType=VARCHAR},
      </if>
      <if test="registertime != null" >
        RegisterTime = #{registertime,jdbcType=VARCHAR},
      </if>
      <if test="kilometers != null" >
        Kilometers = #{kilometers,jdbcType=REAL},
      </if>
      <if test="drivinglicensesrc != null" >
        DrivingLicenseSrc = #{drivinglicensesrc,jdbcType=VARCHAR},
      </if>
      <if test="vehiclesrc != null" >
        VehicleSrc = #{vehiclesrc,jdbcType=VARCHAR},
      </if>
      <if test="vehicletype != null" >
        VehicleType = #{vehicletype,jdbcType=VARCHAR},
      </if>
      <if test="linkname != null" >
        LinkName = #{linkname,jdbcType=VARCHAR},
      </if>
      <if test="linktel != null" >
        LinkTel = #{linktel,jdbcType=VARCHAR},
      </if>
      <if test="gaugingschemeid != null" >
        GaugingSchemeID = #{gaugingschemeid,jdbcType=INTEGER},
      </if>
      <if test="gaugingschemename != null" >
        GaugingSchemeName = #{gaugingschemename,jdbcType=VARCHAR},
      </if>
      <if test="maintenanceschemeid != null" >
        MaintenanceSchemeID = #{maintenanceschemeid,jdbcType=INTEGER},
      </if>
      <if test="maintenanceschemename != null" >
        MaintenanceSchemeName = #{maintenanceschemename,jdbcType=VARCHAR},
      </if>
      <if test="brandid != null" >
        BrandId = #{brandid,jdbcType=INTEGER},
      </if>
      <if test="brandname != null" >
        BrandName = #{brandname,jdbcType=VARCHAR},
      </if>
      <if test="seriesid != null" >
        SeriesId = #{seriesid,jdbcType=INTEGER},
      </if>
      <if test="seriesname != null" >
        SeriesName = #{seriesname,jdbcType=VARCHAR},
      </if>
      <if test="productionyear != null" >
        ProductionYear = #{productionyear,jdbcType=VARCHAR},
      </if>
      <if test="enginestructure != null" >
        EngineStructure = #{enginestructure,jdbcType=VARCHAR},
      </if>
      <if test="enginestructurenumber != null" >
        EngineStructureNumber = #{enginestructurenumber,jdbcType=INTEGER},
      </if>
      <if test="electronicfueltype != null" >
        ElectronicFuelType = #{electronicfueltype,jdbcType=VARCHAR},
      </if>
      <if test="transmissioncase != null" >
        TransmissionCase = #{transmissioncase,jdbcType=VARCHAR},
      </if>
      <if test="drivetype != null" >
        DriveType = #{drivetype,jdbcType=VARCHAR},
      </if>
      <if test="emissionstandard != null" >
        EmissionStandard = #{emissionstandard,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        Status = #{status,jdbcType=INTEGER},
      </if>
      <if test="createTime != null" >
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null" >
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="wxXrPemsUserId != null" >
        wx_xr_pems_user_id = #{wxXrPemsUserId,jdbcType=INTEGER},
      </if>
      <if test="checkUpResult != null" >
        check_up_result = #{checkUpResult,jdbcType=INTEGER},
      </if>
      <if test="wxXrPemsUserName != null" >
        wx_xr_pems_user_name = #{wxXrPemsUserName,jdbcType=VARCHAR},
      </if>
      <if test="exhauststructure != null" >
        ExhaustStructure = #{exhauststructure,jdbcType=VARCHAR},
      </if>
      <if test="factoryid != null" >
        FactoryId = #{factoryid,jdbcType=INTEGER},
      </if>
      <if test="factoryname != null" >
        FactoryName = #{factoryname,jdbcType=VARCHAR},
      </if>
      <if test="imgUrl != null" >
        img_url = #{imgUrl,jdbcType=VARCHAR},
      </if>
      <if test="pdfUrl != null" >
        pdf_url = #{pdfUrl,jdbcType=VARCHAR},
      </if>
      <if test="syncStatus != null" >
        sync_status = #{syncStatus,jdbcType=INTEGER},
      </if>
      <if test="syncResponse != null" >
        sync_response = #{syncResponse,jdbcType=VARCHAR},
      </if>
      <if test="vinContent != null" >
        vin_content = #{vinContent,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where ID = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.weiqi.mis.domain.WxXrPemsOrder" >
    update wx_xr_pems_order
    set OrderNo = #{orderno,jdbcType=VARCHAR},
      MID = #{mid,jdbcType=INTEGER},
      MName = #{mname,jdbcType=VARCHAR},
      OrderUserId = #{orderuserid,jdbcType=INTEGER},
      OrderUserName = #{orderusername,jdbcType=VARCHAR},
      AdmissionTime = #{admissiontime,jdbcType=TIMESTAMP},
      ConstructionStartTime = #{constructionstarttime,jdbcType=TIMESTAMP},
      PlateNumber = #{platenumber,jdbcType=VARCHAR},
      VIN = #{vin,jdbcType=VARCHAR},
      RegisterTime = #{registertime,jdbcType=VARCHAR},
      Kilometers = #{kilometers,jdbcType=REAL},
      DrivingLicenseSrc = #{drivinglicensesrc,jdbcType=VARCHAR},
      VehicleSrc = #{vehiclesrc,jdbcType=VARCHAR},
      VehicleType = #{vehicletype,jdbcType=VARCHAR},
      LinkName = #{linkname,jdbcType=VARCHAR},
      LinkTel = #{linktel,jdbcType=VARCHAR},
      GaugingSchemeID = #{gaugingschemeid,jdbcType=INTEGER},
      GaugingSchemeName = #{gaugingschemename,jdbcType=VARCHAR},
      MaintenanceSchemeID = #{maintenanceschemeid,jdbcType=INTEGER},
      MaintenanceSchemeName = #{maintenanceschemename,jdbcType=VARCHAR},
      BrandId = #{brandid,jdbcType=INTEGER},
      BrandName = #{brandname,jdbcType=VARCHAR},
      SeriesId = #{seriesid,jdbcType=INTEGER},
      SeriesName = #{seriesname,jdbcType=VARCHAR},
      ProductionYear = #{productionyear,jdbcType=VARCHAR},
      EngineStructure = #{enginestructure,jdbcType=VARCHAR},
      EngineStructureNumber = #{enginestructurenumber,jdbcType=INTEGER},
      ElectronicFuelType = #{electronicfueltype,jdbcType=VARCHAR},
      TransmissionCase = #{transmissioncase,jdbcType=VARCHAR},
      DriveType = #{drivetype,jdbcType=VARCHAR},
      EmissionStandard = #{emissionstandard,jdbcType=VARCHAR},
      Status = #{status,jdbcType=INTEGER},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      wx_xr_pems_user_id = #{wxXrPemsUserId,jdbcType=INTEGER},
      check_up_result = #{checkUpResult,jdbcType=INTEGER},
      wx_xr_pems_user_name = #{wxXrPemsUserName,jdbcType=VARCHAR},
      ExhaustStructure = #{exhauststructure,jdbcType=VARCHAR},
      FactoryId = #{factoryid,jdbcType=INTEGER},
      FactoryName = #{factoryname,jdbcType=VARCHAR},
      img_url = #{imgUrl,jdbcType=VARCHAR},
      pdf_url = #{pdfUrl,jdbcType=VARCHAR},
      sync_status = #{syncStatus,jdbcType=INTEGER},
      sync_response = #{syncResponse,jdbcType=VARCHAR},
      vin_content = #{vinContent,jdbcType=LONGVARCHAR}
    where ID = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.weiqi.mis.domain.WxXrPemsOrder" >
    update wx_xr_pems_order
    set OrderNo = #{orderno,jdbcType=VARCHAR},
      MID = #{mid,jdbcType=INTEGER},
      MName = #{mname,jdbcType=VARCHAR},
      OrderUserId = #{orderuserid,jdbcType=INTEGER},
      OrderUserName = #{orderusername,jdbcType=VARCHAR},
      AdmissionTime = #{admissiontime,jdbcType=TIMESTAMP},
      ConstructionStartTime = #{constructionstarttime,jdbcType=TIMESTAMP},
      PlateNumber = #{platenumber,jdbcType=VARCHAR},
      VIN = #{vin,jdbcType=VARCHAR},
      RegisterTime = #{registertime,jdbcType=VARCHAR},
      Kilometers = #{kilometers,jdbcType=REAL},
      DrivingLicenseSrc = #{drivinglicensesrc,jdbcType=VARCHAR},
      VehicleSrc = #{vehiclesrc,jdbcType=VARCHAR},
      VehicleType = #{vehicletype,jdbcType=VARCHAR},
      LinkName = #{linkname,jdbcType=VARCHAR},
      LinkTel = #{linktel,jdbcType=VARCHAR},
      GaugingSchemeID = #{gaugingschemeid,jdbcType=INTEGER},
      GaugingSchemeName = #{gaugingschemename,jdbcType=VARCHAR},
      MaintenanceSchemeID = #{maintenanceschemeid,jdbcType=INTEGER},
      MaintenanceSchemeName = #{maintenanceschemename,jdbcType=VARCHAR},
      BrandId = #{brandid,jdbcType=INTEGER},
      BrandName = #{brandname,jdbcType=VARCHAR},
      SeriesId = #{seriesid,jdbcType=INTEGER},
      SeriesName = #{seriesname,jdbcType=VARCHAR},
      ProductionYear = #{productionyear,jdbcType=VARCHAR},
      EngineStructure = #{enginestructure,jdbcType=VARCHAR},
      EngineStructureNumber = #{enginestructurenumber,jdbcType=INTEGER},
      ElectronicFuelType = #{electronicfueltype,jdbcType=VARCHAR},
      TransmissionCase = #{transmissioncase,jdbcType=VARCHAR},
      DriveType = #{drivetype,jdbcType=VARCHAR},
      EmissionStandard = #{emissionstandard,jdbcType=VARCHAR},
      Status = #{status,jdbcType=INTEGER},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      wx_xr_pems_user_id = #{wxXrPemsUserId,jdbcType=INTEGER},
      check_up_result = #{checkUpResult,jdbcType=INTEGER},
      wx_xr_pems_user_name = #{wxXrPemsUserName,jdbcType=VARCHAR},
      ExhaustStructure = #{exhauststructure,jdbcType=VARCHAR},
      FactoryId = #{factoryid,jdbcType=INTEGER},
      FactoryName = #{factoryname,jdbcType=VARCHAR},
      img_url = #{imgUrl,jdbcType=VARCHAR},
      pdf_url = #{pdfUrl,jdbcType=VARCHAR},
      sync_status = #{syncStatus,jdbcType=INTEGER},
      sync_response = #{syncResponse,jdbcType=VARCHAR}
    where ID = #{id,jdbcType=INTEGER}
  </update>
</mapper>