<?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.chinaitop.depot.intelligent.basicdata.mapper.OrgInfoMapper" >
  <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.basicdata.model.OrgInfo" >
    <id column="org_id" property="orgId" jdbcType="INTEGER" />
    <result column="org_name" property="orgName" jdbcType="VARCHAR" />
    <result column="short_name" property="shortName" jdbcType="VARCHAR" />
    <result column="org_code" property="orgCode" jdbcType="VARCHAR" />
    <result column="org_class_id" property="orgClassId" jdbcType="INTEGER" />
    <result column="company_nature" property="companyNature" jdbcType="INTEGER" />
    <result column="busi_type" property="busiType" jdbcType="INTEGER" />
    <result column="address" property="address" jdbcType="VARCHAR" />
    <result column="contact" property="contact" jdbcType="VARCHAR" />
    <result column="fax" property="fax" jdbcType="VARCHAR" />
    <result column="charge_person" property="chargePerson" jdbcType="VARCHAR" />
    <result column="longitude" property="longitude" jdbcType="VARCHAR" />
    <result column="latitude" property="latitude" jdbcType="VARCHAR" />
    <result column="regist_capital" property="registCapital" jdbcType="INTEGER" />
    <result column="work_number" property="workNumber" jdbcType="INTEGER" />
    <result column="area_code" property="areaCode" jdbcType="INTEGER" />
    <result column="area_name" property="areaName" jdbcType="VARCHAR" />
    <result column="post" property="post" jdbcType="INTEGER" />
    <result column="depot_class" property="depotClass" jdbcType="INTEGER" />
    <result column="design_capacity" property="designCapacity" jdbcType="INTEGER" />
    <result column="effective_capacity" property="effectiveCapacity" jdbcType="INTEGER" />
    <result column="depot_area" property="depotArea" jdbcType="REAL" />
    <result column="complete_date" property="completeDate" jdbcType="TIMESTAMP" />
    <result column="use_date" property="useDate" jdbcType="TIMESTAMP" />
    <result column="company_org_code" property="companyOrgCode" jdbcType="VARCHAR" />
    <result column="credit_code" property="creditCode" jdbcType="VARCHAR" />
    <result column="regist_type" property="registType" jdbcType="INTEGER" />
    <result column="qualification" property="qualification" jdbcType="INTEGER" />
    <result column="independent_corporation" property="independentCorporation" jdbcType="INTEGER" />
    <result column="legal_person" property="legalPerson" jdbcType="VARCHAR" />
    <result column="whether_rent" property="whetherRent" jdbcType="INTEGER" />
    <result column="info_regist" property="infoRegist" jdbcType="VARCHAR" />
    <result column="regist_date" property="registDate" jdbcType="TIMESTAMP" />
    <result column="remark" property="remark" jdbcType="VARCHAR" />
    <result column="parent_id" property="parentId" jdbcType="INTEGER" />
    <result column="status" property="status" jdbcType="INTEGER" />
    <result column="del_flag" property="delFlag" jdbcType="INTEGER" />
    <result column="birds_eye" property="birdsEye" jdbcType="VARCHAR" />
    <result column="birds_Remote" property="birdsRemote" jdbcType="VARCHAR" />
    <result column="brief_introduction" property="briefIntroduction" jdbcType="VARCHAR" />
    <result column="invoice_title" property="invoiceTitle" jdbcType="VARCHAR" />
    <result column="regist_number" property="registNumber" jdbcType="VARCHAR" />
    <result column="bank_name" property="bankName" jdbcType="VARCHAR" />
    <result column="account_name" property="accountName" jdbcType="VARCHAR" />
    <result column="account_number" property="accountNumber" jdbcType="VARCHAR" />
  </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="Update_By_Example_Where_Clause" >
    <where >
      <foreach collection="example.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" >
    org_id, org_name, short_name, org_code, org_class_id, company_nature, busi_type, 
    address, contact, fax, charge_person, longitude, latitude, regist_capital, work_number, 
    area_code, area_name, post, depot_class, design_capacity, effective_capacity, depot_area, 
    complete_date, use_date, company_org_code, credit_code, regist_type, qualification, 
    independent_corporation, legal_person, whether_rent, info_regist, regist_date, remark, 
    parent_id, status, del_flag, birds_eye, birds_Remote, brief_introduction, invoice_title, 
    regist_number, bank_name, account_name, account_number
  </sql>
  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.intelligent.basicdata.model.OrgInfoExample" >
    select
    <if test="distinct" >
      distinct
    </if>
    <include refid="Base_Column_List" />
    from org_info
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null" >
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    from org_info
    where org_id = #{orgId,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from org_info
    where org_id = #{orgId,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.chinaitop.depot.intelligent.basicdata.model.OrgInfoExample" >
    delete from org_info
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.chinaitop.depot.intelligent.basicdata.model.OrgInfo" >
    insert into org_info (org_id, org_name, short_name, 
      org_code, org_class_id, company_nature, 
      busi_type, address, contact, 
      fax, charge_person, longitude, 
      latitude, regist_capital, work_number, 
      area_code, area_name, post, 
      depot_class, design_capacity, effective_capacity, 
      depot_area, complete_date, use_date, 
      company_org_code, credit_code, regist_type, 
      qualification, independent_corporation, 
      legal_person, whether_rent, info_regist, 
      regist_date, remark, parent_id, 
      status, del_flag, birds_eye, 
      birds_Remote, brief_introduction, invoice_title, 
      regist_number, bank_name, account_name, 
      account_number)
    values (#{orgId,jdbcType=INTEGER}, #{orgName,jdbcType=VARCHAR}, #{shortName,jdbcType=VARCHAR}, 
      #{orgCode,jdbcType=VARCHAR}, #{orgClassId,jdbcType=INTEGER}, #{companyNature,jdbcType=INTEGER}, 
      #{busiType,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR}, 
      #{fax,jdbcType=VARCHAR}, #{chargePerson,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, 
      #{latitude,jdbcType=VARCHAR}, #{registCapital,jdbcType=INTEGER}, #{workNumber,jdbcType=INTEGER}, 
      #{areaCode,jdbcType=INTEGER}, #{areaName,jdbcType=VARCHAR}, #{post,jdbcType=INTEGER}, 
      #{depotClass,jdbcType=INTEGER}, #{designCapacity,jdbcType=INTEGER}, #{effectiveCapacity,jdbcType=INTEGER}, 
      #{depotArea,jdbcType=REAL}, #{completeDate,jdbcType=TIMESTAMP}, #{useDate,jdbcType=TIMESTAMP}, 
      #{companyOrgCode,jdbcType=VARCHAR}, #{creditCode,jdbcType=VARCHAR}, #{registType,jdbcType=INTEGER}, 
      #{qualification,jdbcType=INTEGER}, #{independentCorporation,jdbcType=INTEGER}, 
      #{legalPerson,jdbcType=VARCHAR}, #{whetherRent,jdbcType=INTEGER}, #{infoRegist,jdbcType=VARCHAR}, 
      #{registDate,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER}, 
      #{status,jdbcType=INTEGER}, #{delFlag,jdbcType=INTEGER}, #{birdsEye,jdbcType=VARCHAR}, 
      #{birdsRemote,jdbcType=VARCHAR}, #{briefIntroduction,jdbcType=VARCHAR}, #{invoiceTitle,jdbcType=VARCHAR}, 
      #{registNumber,jdbcType=VARCHAR}, #{bankName,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, 
      #{accountNumber,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.chinaitop.depot.intelligent.basicdata.model.OrgInfo" >
    insert into org_info
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="orgId != null" >
        org_id,
      </if>
      <if test="orgName != null" >
        org_name,
      </if>
      <if test="shortName != null" >
        short_name,
      </if>
      <if test="orgCode != null" >
        org_code,
      </if>
      <if test="orgClassId != null" >
        org_class_id,
      </if>
      <if test="companyNature != null" >
        company_nature,
      </if>
      <if test="busiType != null" >
        busi_type,
      </if>
      <if test="address != null" >
        address,
      </if>
      <if test="contact != null" >
        contact,
      </if>
      <if test="fax != null" >
        fax,
      </if>
      <if test="chargePerson != null" >
        charge_person,
      </if>
      <if test="longitude != null" >
        longitude,
      </if>
      <if test="latitude != null" >
        latitude,
      </if>
      <if test="registCapital != null" >
        regist_capital,
      </if>
      <if test="workNumber != null" >
        work_number,
      </if>
      <if test="areaCode != null" >
        area_code,
      </if>
      <if test="areaName != null" >
        area_name,
      </if>
      <if test="post != null" >
        post,
      </if>
      <if test="depotClass != null" >
        depot_class,
      </if>
      <if test="designCapacity != null" >
        design_capacity,
      </if>
      <if test="effectiveCapacity != null" >
        effective_capacity,
      </if>
      <if test="depotArea != null" >
        depot_area,
      </if>
      <if test="completeDate != null" >
        complete_date,
      </if>
      <if test="useDate != null" >
        use_date,
      </if>
      <if test="companyOrgCode != null" >
        company_org_code,
      </if>
      <if test="creditCode != null" >
        credit_code,
      </if>
      <if test="registType != null" >
        regist_type,
      </if>
      <if test="qualification != null" >
        qualification,
      </if>
      <if test="independentCorporation != null" >
        independent_corporation,
      </if>
      <if test="legalPerson != null" >
        legal_person,
      </if>
      <if test="whetherRent != null" >
        whether_rent,
      </if>
      <if test="infoRegist != null" >
        info_regist,
      </if>
      <if test="registDate != null" >
        regist_date,
      </if>
      <if test="remark != null" >
        remark,
      </if>
      <if test="parentId != null" >
        parent_id,
      </if>
      <if test="status != null" >
        status,
      </if>
      <if test="delFlag != null" >
        del_flag,
      </if>
      <if test="birdsEye != null" >
        birds_eye,
      </if>
      <if test="birdsRemote != null" >
        birds_Remote,
      </if>
      <if test="briefIntroduction != null" >
        brief_introduction,
      </if>
      <if test="invoiceTitle != null" >
        invoice_title,
      </if>
      <if test="registNumber != null" >
        regist_number,
      </if>
      <if test="bankName != null" >
        bank_name,
      </if>
      <if test="accountName != null" >
        account_name,
      </if>
      <if test="accountNumber != null" >
        account_number,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="orgId != null" >
        #{orgId,jdbcType=INTEGER},
      </if>
      <if test="orgName != null" >
        #{orgName,jdbcType=VARCHAR},
      </if>
      <if test="shortName != null" >
        #{shortName,jdbcType=VARCHAR},
      </if>
      <if test="orgCode != null" >
        #{orgCode,jdbcType=VARCHAR},
      </if>
      <if test="orgClassId != null" >
        #{orgClassId,jdbcType=INTEGER},
      </if>
      <if test="companyNature != null" >
        #{companyNature,jdbcType=INTEGER},
      </if>
      <if test="busiType != null" >
        #{busiType,jdbcType=INTEGER},
      </if>
      <if test="address != null" >
        #{address,jdbcType=VARCHAR},
      </if>
      <if test="contact != null" >
        #{contact,jdbcType=VARCHAR},
      </if>
      <if test="fax != null" >
        #{fax,jdbcType=VARCHAR},
      </if>
      <if test="chargePerson != null" >
        #{chargePerson,jdbcType=VARCHAR},
      </if>
      <if test="longitude != null" >
        #{longitude,jdbcType=VARCHAR},
      </if>
      <if test="latitude != null" >
        #{latitude,jdbcType=VARCHAR},
      </if>
      <if test="registCapital != null" >
        #{registCapital,jdbcType=INTEGER},
      </if>
      <if test="workNumber != null" >
        #{workNumber,jdbcType=INTEGER},
      </if>
      <if test="areaCode != null" >
        #{areaCode,jdbcType=INTEGER},
      </if>
      <if test="areaName != null" >
        #{areaName,jdbcType=VARCHAR},
      </if>
      <if test="post != null" >
        #{post,jdbcType=INTEGER},
      </if>
      <if test="depotClass != null" >
        #{depotClass,jdbcType=INTEGER},
      </if>
      <if test="designCapacity != null" >
        #{designCapacity,jdbcType=INTEGER},
      </if>
      <if test="effectiveCapacity != null" >
        #{effectiveCapacity,jdbcType=INTEGER},
      </if>
      <if test="depotArea != null" >
        #{depotArea,jdbcType=REAL},
      </if>
      <if test="completeDate != null" >
        #{completeDate,jdbcType=TIMESTAMP},
      </if>
      <if test="useDate != null" >
        #{useDate,jdbcType=TIMESTAMP},
      </if>
      <if test="companyOrgCode != null" >
        #{companyOrgCode,jdbcType=VARCHAR},
      </if>
      <if test="creditCode != null" >
        #{creditCode,jdbcType=VARCHAR},
      </if>
      <if test="registType != null" >
        #{registType,jdbcType=INTEGER},
      </if>
      <if test="qualification != null" >
        #{qualification,jdbcType=INTEGER},
      </if>
      <if test="independentCorporation != null" >
        #{independentCorporation,jdbcType=INTEGER},
      </if>
      <if test="legalPerson != null" >
        #{legalPerson,jdbcType=VARCHAR},
      </if>
      <if test="whetherRent != null" >
        #{whetherRent,jdbcType=INTEGER},
      </if>
      <if test="infoRegist != null" >
        #{infoRegist,jdbcType=VARCHAR},
      </if>
      <if test="registDate != null" >
        #{registDate,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null" >
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="parentId != null" >
        #{parentId,jdbcType=INTEGER},
      </if>
      <if test="status != null" >
        #{status,jdbcType=INTEGER},
      </if>
      <if test="delFlag != null" >
        #{delFlag,jdbcType=INTEGER},
      </if>
      <if test="birdsEye != null" >
        #{birdsEye,jdbcType=VARCHAR},
      </if>
      <if test="birdsRemote != null" >
        #{birdsRemote,jdbcType=VARCHAR},
      </if>
      <if test="briefIntroduction != null" >
        #{briefIntroduction,jdbcType=VARCHAR},
      </if>
      <if test="invoiceTitle != null" >
        #{invoiceTitle,jdbcType=VARCHAR},
      </if>
      <if test="registNumber != null" >
        #{registNumber,jdbcType=VARCHAR},
      </if>
      <if test="bankName != null" >
        #{bankName,jdbcType=VARCHAR},
      </if>
      <if test="accountName != null" >
        #{accountName,jdbcType=VARCHAR},
      </if>
      <if test="accountNumber != null" >
        #{accountNumber,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.chinaitop.depot.intelligent.basicdata.model.OrgInfoExample" resultType="java.lang.Integer" >
    select count(*) from org_info
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map" >
    update org_info
    <set >
      <if test="record.orgId != null" >
        org_id = #{record.orgId,jdbcType=INTEGER},
      </if>
      <if test="record.orgName != null" >
        org_name = #{record.orgName,jdbcType=VARCHAR},
      </if>
      <if test="record.shortName != null" >
        short_name = #{record.shortName,jdbcType=VARCHAR},
      </if>
      <if test="record.orgCode != null" >
        org_code = #{record.orgCode,jdbcType=VARCHAR},
      </if>
      <if test="record.orgClassId != null" >
        org_class_id = #{record.orgClassId,jdbcType=INTEGER},
      </if>
      <if test="record.companyNature != null" >
        company_nature = #{record.companyNature,jdbcType=INTEGER},
      </if>
      <if test="record.busiType != null" >
        busi_type = #{record.busiType,jdbcType=INTEGER},
      </if>
      <if test="record.address != null" >
        address = #{record.address,jdbcType=VARCHAR},
      </if>
      <if test="record.contact != null" >
        contact = #{record.contact,jdbcType=VARCHAR},
      </if>
      <if test="record.fax != null" >
        fax = #{record.fax,jdbcType=VARCHAR},
      </if>
      <if test="record.chargePerson != null" >
        charge_person = #{record.chargePerson,jdbcType=VARCHAR},
      </if>
      <if test="record.longitude != null" >
        longitude = #{record.longitude,jdbcType=VARCHAR},
      </if>
      <if test="record.latitude != null" >
        latitude = #{record.latitude,jdbcType=VARCHAR},
      </if>
      <if test="record.registCapital != null" >
        regist_capital = #{record.registCapital,jdbcType=INTEGER},
      </if>
      <if test="record.workNumber != null" >
        work_number = #{record.workNumber,jdbcType=INTEGER},
      </if>
      <if test="record.areaCode != null" >
        area_code = #{record.areaCode,jdbcType=INTEGER},
      </if>
      <if test="record.areaName != null" >
        area_name = #{record.areaName,jdbcType=VARCHAR},
      </if>
      <if test="record.post != null" >
        post = #{record.post,jdbcType=INTEGER},
      </if>
      <if test="record.depotClass != null" >
        depot_class = #{record.depotClass,jdbcType=INTEGER},
      </if>
      <if test="record.designCapacity != null" >
        design_capacity = #{record.designCapacity,jdbcType=INTEGER},
      </if>
      <if test="record.effectiveCapacity != null" >
        effective_capacity = #{record.effectiveCapacity,jdbcType=INTEGER},
      </if>
      <if test="record.depotArea != null" >
        depot_area = #{record.depotArea,jdbcType=REAL},
      </if>
      <if test="record.completeDate != null" >
        complete_date = #{record.completeDate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.useDate != null" >
        use_date = #{record.useDate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.companyOrgCode != null" >
        company_org_code = #{record.companyOrgCode,jdbcType=VARCHAR},
      </if>
      <if test="record.creditCode != null" >
        credit_code = #{record.creditCode,jdbcType=VARCHAR},
      </if>
      <if test="record.registType != null" >
        regist_type = #{record.registType,jdbcType=INTEGER},
      </if>
      <if test="record.qualification != null" >
        qualification = #{record.qualification,jdbcType=INTEGER},
      </if>
      <if test="record.independentCorporation != null" >
        independent_corporation = #{record.independentCorporation,jdbcType=INTEGER},
      </if>
      <if test="record.legalPerson != null" >
        legal_person = #{record.legalPerson,jdbcType=VARCHAR},
      </if>
      <if test="record.whetherRent != null" >
        whether_rent = #{record.whetherRent,jdbcType=INTEGER},
      </if>
      <if test="record.infoRegist != null" >
        info_regist = #{record.infoRegist,jdbcType=VARCHAR},
      </if>
      <if test="record.registDate != null" >
        regist_date = #{record.registDate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.remark != null" >
        remark = #{record.remark,jdbcType=VARCHAR},
      </if>
      <if test="record.parentId != null" >
        parent_id = #{record.parentId,jdbcType=INTEGER},
      </if>
      <if test="record.status != null" >
        status = #{record.status,jdbcType=INTEGER},
      </if>
      <if test="record.delFlag != null" >
        del_flag = #{record.delFlag,jdbcType=INTEGER},
      </if>
      <if test="record.birdsEye != null" >
        birds_eye = #{record.birdsEye,jdbcType=VARCHAR},
      </if>
      <if test="record.birdsRemote != null" >
        birds_Remote = #{record.birdsRemote,jdbcType=VARCHAR},
      </if>
      <if test="record.briefIntroduction != null" >
        brief_introduction = #{record.briefIntroduction,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceTitle != null" >
        invoice_title = #{record.invoiceTitle,jdbcType=VARCHAR},
      </if>
      <if test="record.registNumber != null" >
        regist_number = #{record.registNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.bankName != null" >
        bank_name = #{record.bankName,jdbcType=VARCHAR},
      </if>
      <if test="record.accountName != null" >
        account_name = #{record.accountName,jdbcType=VARCHAR},
      </if>
      <if test="record.accountNumber != null" >
        account_number = #{record.accountNumber,jdbcType=VARCHAR},
      </if>
    </set>
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map" >
    update org_info
    set org_id = #{record.orgId,jdbcType=INTEGER},
      org_name = #{record.orgName,jdbcType=VARCHAR},
      short_name = #{record.shortName,jdbcType=VARCHAR},
      org_code = #{record.orgCode,jdbcType=VARCHAR},
      org_class_id = #{record.orgClassId,jdbcType=INTEGER},
      company_nature = #{record.companyNature,jdbcType=INTEGER},
      busi_type = #{record.busiType,jdbcType=INTEGER},
      address = #{record.address,jdbcType=VARCHAR},
      contact = #{record.contact,jdbcType=VARCHAR},
      fax = #{record.fax,jdbcType=VARCHAR},
      charge_person = #{record.chargePerson,jdbcType=VARCHAR},
      longitude = #{record.longitude,jdbcType=VARCHAR},
      latitude = #{record.latitude,jdbcType=VARCHAR},
      regist_capital = #{record.registCapital,jdbcType=INTEGER},
      work_number = #{record.workNumber,jdbcType=INTEGER},
      area_code = #{record.areaCode,jdbcType=INTEGER},
      area_name = #{record.areaName,jdbcType=VARCHAR},
      post = #{record.post,jdbcType=INTEGER},
      depot_class = #{record.depotClass,jdbcType=INTEGER},
      design_capacity = #{record.designCapacity,jdbcType=INTEGER},
      effective_capacity = #{record.effectiveCapacity,jdbcType=INTEGER},
      depot_area = #{record.depotArea,jdbcType=REAL},
      complete_date = #{record.completeDate,jdbcType=TIMESTAMP},
      use_date = #{record.useDate,jdbcType=TIMESTAMP},
      company_org_code = #{record.companyOrgCode,jdbcType=VARCHAR},
      credit_code = #{record.creditCode,jdbcType=VARCHAR},
      regist_type = #{record.registType,jdbcType=INTEGER},
      qualification = #{record.qualification,jdbcType=INTEGER},
      independent_corporation = #{record.independentCorporation,jdbcType=INTEGER},
      legal_person = #{record.legalPerson,jdbcType=VARCHAR},
      whether_rent = #{record.whetherRent,jdbcType=INTEGER},
      info_regist = #{record.infoRegist,jdbcType=VARCHAR},
      regist_date = #{record.registDate,jdbcType=TIMESTAMP},
      remark = #{record.remark,jdbcType=VARCHAR},
      parent_id = #{record.parentId,jdbcType=INTEGER},
      status = #{record.status,jdbcType=INTEGER},
      del_flag = #{record.delFlag,jdbcType=INTEGER},
      birds_eye = #{record.birdsEye,jdbcType=VARCHAR},
      birds_Remote = #{record.birdsRemote,jdbcType=VARCHAR},
      brief_introduction = #{record.briefIntroduction,jdbcType=VARCHAR},
      invoice_title = #{record.invoiceTitle,jdbcType=VARCHAR},
      regist_number = #{record.registNumber,jdbcType=VARCHAR},
      bank_name = #{record.bankName,jdbcType=VARCHAR},
      account_name = #{record.accountName,jdbcType=VARCHAR},
      account_number = #{record.accountNumber,jdbcType=VARCHAR}
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.intelligent.basicdata.model.OrgInfo" >
    update org_info
    <set >
      <if test="orgName != null" >
        org_name = #{orgName,jdbcType=VARCHAR},
      </if>
      <if test="shortName != null" >
        short_name = #{shortName,jdbcType=VARCHAR},
      </if>
      <if test="orgCode != null" >
        org_code = #{orgCode,jdbcType=VARCHAR},
      </if>
      <if test="orgClassId != null" >
        org_class_id = #{orgClassId,jdbcType=INTEGER},
      </if>
      <if test="companyNature != null" >
        company_nature = #{companyNature,jdbcType=INTEGER},
      </if>
      <if test="busiType != null" >
        busi_type = #{busiType,jdbcType=INTEGER},
      </if>
      <if test="address != null" >
        address = #{address,jdbcType=VARCHAR},
      </if>
      <if test="contact != null" >
        contact = #{contact,jdbcType=VARCHAR},
      </if>
      <if test="fax != null" >
        fax = #{fax,jdbcType=VARCHAR},
      </if>
      <if test="chargePerson != null" >
        charge_person = #{chargePerson,jdbcType=VARCHAR},
      </if>
      <if test="longitude != null" >
        longitude = #{longitude,jdbcType=VARCHAR},
      </if>
      <if test="latitude != null" >
        latitude = #{latitude,jdbcType=VARCHAR},
      </if>
      <if test="registCapital != null" >
        regist_capital = #{registCapital,jdbcType=INTEGER},
      </if>
      <if test="workNumber != null" >
        work_number = #{workNumber,jdbcType=INTEGER},
      </if>
      <if test="areaCode != null" >
        area_code = #{areaCode,jdbcType=INTEGER},
      </if>
      <if test="areaName != null" >
        area_name = #{areaName,jdbcType=VARCHAR},
      </if>
      <if test="post != null" >
        post = #{post,jdbcType=INTEGER},
      </if>
      <if test="depotClass != null" >
        depot_class = #{depotClass,jdbcType=INTEGER},
      </if>
      <if test="designCapacity != null" >
        design_capacity = #{designCapacity,jdbcType=INTEGER},
      </if>
      <if test="effectiveCapacity != null" >
        effective_capacity = #{effectiveCapacity,jdbcType=INTEGER},
      </if>
      <if test="depotArea != null" >
        depot_area = #{depotArea,jdbcType=REAL},
      </if>
      <if test="completeDate != null" >
        complete_date = #{completeDate,jdbcType=TIMESTAMP},
      </if>
      <if test="useDate != null" >
        use_date = #{useDate,jdbcType=TIMESTAMP},
      </if>
      <if test="companyOrgCode != null" >
        company_org_code = #{companyOrgCode,jdbcType=VARCHAR},
      </if>
      <if test="creditCode != null" >
        credit_code = #{creditCode,jdbcType=VARCHAR},
      </if>
      <if test="registType != null" >
        regist_type = #{registType,jdbcType=INTEGER},
      </if>
      <if test="qualification != null" >
        qualification = #{qualification,jdbcType=INTEGER},
      </if>
      <if test="independentCorporation != null" >
        independent_corporation = #{independentCorporation,jdbcType=INTEGER},
      </if>
      <if test="legalPerson != null" >
        legal_person = #{legalPerson,jdbcType=VARCHAR},
      </if>
      <if test="whetherRent != null" >
        whether_rent = #{whetherRent,jdbcType=INTEGER},
      </if>
      <if test="infoRegist != null" >
        info_regist = #{infoRegist,jdbcType=VARCHAR},
      </if>
      <if test="registDate != null" >
        regist_date = #{registDate,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null" >
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="parentId != null" >
        parent_id = #{parentId,jdbcType=INTEGER},
      </if>
      <if test="status != null" >
        status = #{status,jdbcType=INTEGER},
      </if>
      <if test="delFlag != null" >
        del_flag = #{delFlag,jdbcType=INTEGER},
      </if>
      <if test="birdsEye != null" >
        birds_eye = #{birdsEye,jdbcType=VARCHAR},
      </if>
      <if test="birdsRemote != null" >
        birds_Remote = #{birdsRemote,jdbcType=VARCHAR},
      </if>
      <if test="briefIntroduction != null" >
        brief_introduction = #{briefIntroduction,jdbcType=VARCHAR},
      </if>
      <if test="invoiceTitle != null" >
        invoice_title = #{invoiceTitle,jdbcType=VARCHAR},
      </if>
      <if test="registNumber != null" >
        regist_number = #{registNumber,jdbcType=VARCHAR},
      </if>
      <if test="bankName != null" >
        bank_name = #{bankName,jdbcType=VARCHAR},
      </if>
      <if test="accountName != null" >
        account_name = #{accountName,jdbcType=VARCHAR},
      </if>
      <if test="accountNumber != null" >
        account_number = #{accountNumber,jdbcType=VARCHAR},
      </if>
    </set>
    where org_id = #{orgId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.intelligent.basicdata.model.OrgInfo" >
    update org_info
    set org_name = #{orgName,jdbcType=VARCHAR},
      short_name = #{shortName,jdbcType=VARCHAR},
      org_code = #{orgCode,jdbcType=VARCHAR},
      org_class_id = #{orgClassId,jdbcType=INTEGER},
      company_nature = #{companyNature,jdbcType=INTEGER},
      busi_type = #{busiType,jdbcType=INTEGER},
      address = #{address,jdbcType=VARCHAR},
      contact = #{contact,jdbcType=VARCHAR},
      fax = #{fax,jdbcType=VARCHAR},
      charge_person = #{chargePerson,jdbcType=VARCHAR},
      longitude = #{longitude,jdbcType=VARCHAR},
      latitude = #{latitude,jdbcType=VARCHAR},
      regist_capital = #{registCapital,jdbcType=INTEGER},
      work_number = #{workNumber,jdbcType=INTEGER},
      area_code = #{areaCode,jdbcType=INTEGER},
      area_name = #{areaName,jdbcType=VARCHAR},
      post = #{post,jdbcType=INTEGER},
      depot_class = #{depotClass,jdbcType=INTEGER},
      design_capacity = #{designCapacity,jdbcType=INTEGER},
      effective_capacity = #{effectiveCapacity,jdbcType=INTEGER},
      depot_area = #{depotArea,jdbcType=REAL},
      complete_date = #{completeDate,jdbcType=TIMESTAMP},
      use_date = #{useDate,jdbcType=TIMESTAMP},
      company_org_code = #{companyOrgCode,jdbcType=VARCHAR},
      credit_code = #{creditCode,jdbcType=VARCHAR},
      regist_type = #{registType,jdbcType=INTEGER},
      qualification = #{qualification,jdbcType=INTEGER},
      independent_corporation = #{independentCorporation,jdbcType=INTEGER},
      legal_person = #{legalPerson,jdbcType=VARCHAR},
      whether_rent = #{whetherRent,jdbcType=INTEGER},
      info_regist = #{infoRegist,jdbcType=VARCHAR},
      regist_date = #{registDate,jdbcType=TIMESTAMP},
      remark = #{remark,jdbcType=VARCHAR},
      parent_id = #{parentId,jdbcType=INTEGER},
      status = #{status,jdbcType=INTEGER},
      del_flag = #{delFlag,jdbcType=INTEGER},
      birds_eye = #{birdsEye,jdbcType=VARCHAR},
      birds_Remote = #{birdsRemote,jdbcType=VARCHAR},
      brief_introduction = #{briefIntroduction,jdbcType=VARCHAR},
      invoice_title = #{invoiceTitle,jdbcType=VARCHAR},
      regist_number = #{registNumber,jdbcType=VARCHAR},
      bank_name = #{bankName,jdbcType=VARCHAR},
      account_name = #{accountName,jdbcType=VARCHAR},
      account_number = #{accountNumber,jdbcType=VARCHAR}
    where org_id = #{orgId,jdbcType=INTEGER}
  </update>
</mapper>