|
@@ -0,0 +1,809 @@
|
|
|
+<?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.gyee.frame.mapper.auto.CompaniesMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Companies">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <id column="ID" jdbcType="NUMERIC" property="id" />
|
|
|
+ <result column="COMPANY" jdbcType="NVARCHAR" property="company" />
|
|
|
+ <result column="PARENT" jdbcType="NVARCHAR" property="parent" />
|
|
|
+ <result column="TYPE" jdbcType="NVARCHAR" property="type" />
|
|
|
+ <result column="REGFUND" jdbcType="NVARCHAR" property="regfund" />
|
|
|
+ <result column="COMPTYPE" jdbcType="NVARCHAR" property="comptype" />
|
|
|
+ <result column="DELEGATE" jdbcType="NVARCHAR" property="delegate" />
|
|
|
+ <result column="REGNUM" jdbcType="NVARCHAR" property="regnum" />
|
|
|
+ <result column="TAXNUM" jdbcType="NVARCHAR" property="taxnum" />
|
|
|
+ <result column="MAINPROD" jdbcType="NVARCHAR" property="mainprod" />
|
|
|
+ <result column="DEALIN" jdbcType="NVARCHAR" property="dealin" />
|
|
|
+ <result column="ADDRESS" jdbcType="NVARCHAR" property="address" />
|
|
|
+ <result column="POSTNUM" jdbcType="NVARCHAR" property="postnum" />
|
|
|
+ <result column="PROVINCE" jdbcType="NVARCHAR" property="province" />
|
|
|
+ <result column="CITY" jdbcType="NVARCHAR" property="city" />
|
|
|
+ <result column="CONTACT" jdbcType="NVARCHAR" property="contact" />
|
|
|
+ <result column="PHONE" jdbcType="NVARCHAR" property="phone" />
|
|
|
+ <result column="FAX" jdbcType="NVARCHAR" property="fax" />
|
|
|
+ <result column="CONTACTMP" jdbcType="NVARCHAR" property="contactmp" />
|
|
|
+ <result column="CONTACTMAIL" jdbcType="NVARCHAR" property="contactmail" />
|
|
|
+ <result column="FOB" jdbcType="NVARCHAR" property="fob" />
|
|
|
+ <result column="FREIGHTTERMS" jdbcType="NVARCHAR" property="freightterms" />
|
|
|
+ <result column="SHIPVIA" jdbcType="NVARCHAR" property="shipvia" />
|
|
|
+ <result column="PAYMENTTERMS" jdbcType="NVARCHAR" property="paymentterms" />
|
|
|
+ <result column="EBSNUM" jdbcType="NVARCHAR" property="ebsnum" />
|
|
|
+ <result column="EBSISSYNC" jdbcType="NVARCHAR" property="ebsissync" />
|
|
|
+ <result column="CHANGEBY" jdbcType="NVARCHAR" property="changeby" />
|
|
|
+ <result column="CHANGEDATE" jdbcType="TIMESTAMP" property="changedate" />
|
|
|
+ <result column="PAYVENDOR" jdbcType="NVARCHAR" property="payvendor" />
|
|
|
+ <result column="BANKNAME" jdbcType="NVARCHAR" property="bankname" />
|
|
|
+ <result column="BANKACCOUNT" jdbcType="NVARCHAR" property="bankaccount" />
|
|
|
+ <result column="DISABLED" jdbcType="NVARCHAR" property="disabled" />
|
|
|
+ <result column="REMITADDR" jdbcType="NVARCHAR" property="remitaddr" />
|
|
|
+ <result column="REMITPOSTNUM" jdbcType="NVARCHAR" property="remitpostnum" />
|
|
|
+ <result column="REMITPHONE" jdbcType="NVARCHAR" property="remitphone" />
|
|
|
+ <result column="REMITTO" jdbcType="NVARCHAR" property="remitto" />
|
|
|
+ <result column="HOMEPAGE" jdbcType="NVARCHAR" property="homepage" />
|
|
|
+ <result column="DEFWAREHOUSE" jdbcType="NVARCHAR" property="defwarehouse" />
|
|
|
+ <result column="DESCRIPTION" jdbcType="NVARCHAR" property="description" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <where>
|
|
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <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 close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <where>
|
|
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <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 close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ ID, COMPANY, PARENT, TYPE, REGFUND, COMPTYPE, DELEGATE, REGNUM, TAXNUM, MAINPROD,
|
|
|
+ DEALIN, ADDRESS, POSTNUM, PROVINCE, CITY, CONTACT, PHONE, FAX, CONTACTMP, CONTACTMAIL,
|
|
|
+ FOB, FREIGHTTERMS, SHIPVIA, PAYMENTTERMS, EBSNUM, EBSISSYNC, CHANGEBY, CHANGEDATE,
|
|
|
+ PAYVENDOR, BANKNAME, BANKACCOUNT, DISABLED, REMITADDR, REMITPOSTNUM, REMITPHONE,
|
|
|
+ REMITTO, HOMEPAGE, DEFWAREHOUSE, DESCRIPTION
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.gyee.frame.model.auto.CompaniesExample" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from COMPANIES
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from COMPANIES
|
|
|
+ where ID = #{id,jdbcType=NUMERIC}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ delete from COMPANIES
|
|
|
+ where ID = #{id,jdbcType=NUMERIC}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.CompaniesExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ delete from COMPANIES
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.gyee.frame.model.auto.Companies">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into COMPANIES (ID, COMPANY, PARENT,
|
|
|
+ TYPE, REGFUND, COMPTYPE,
|
|
|
+ DELEGATE, REGNUM, TAXNUM,
|
|
|
+ MAINPROD, DEALIN, ADDRESS,
|
|
|
+ POSTNUM, PROVINCE, CITY,
|
|
|
+ CONTACT, PHONE, FAX,
|
|
|
+ CONTACTMP, CONTACTMAIL, FOB,
|
|
|
+ FREIGHTTERMS, SHIPVIA, PAYMENTTERMS,
|
|
|
+ EBSNUM, EBSISSYNC, CHANGEBY,
|
|
|
+ CHANGEDATE, PAYVENDOR, BANKNAME,
|
|
|
+ BANKACCOUNT, DISABLED, REMITADDR,
|
|
|
+ REMITPOSTNUM, REMITPHONE, REMITTO,
|
|
|
+ HOMEPAGE, DEFWAREHOUSE, DESCRIPTION
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=NUMERIC}, #{company,jdbcType=NVARCHAR}, #{parent,jdbcType=NVARCHAR},
|
|
|
+ #{type,jdbcType=NVARCHAR}, #{regfund,jdbcType=NVARCHAR}, #{comptype,jdbcType=NVARCHAR},
|
|
|
+ #{delegate,jdbcType=NVARCHAR}, #{regnum,jdbcType=NVARCHAR}, #{taxnum,jdbcType=NVARCHAR},
|
|
|
+ #{mainprod,jdbcType=NVARCHAR}, #{dealin,jdbcType=NVARCHAR}, #{address,jdbcType=NVARCHAR},
|
|
|
+ #{postnum,jdbcType=NVARCHAR}, #{province,jdbcType=NVARCHAR}, #{city,jdbcType=NVARCHAR},
|
|
|
+ #{contact,jdbcType=NVARCHAR}, #{phone,jdbcType=NVARCHAR}, #{fax,jdbcType=NVARCHAR},
|
|
|
+ #{contactmp,jdbcType=NVARCHAR}, #{contactmail,jdbcType=NVARCHAR}, #{fob,jdbcType=NVARCHAR},
|
|
|
+ #{freightterms,jdbcType=NVARCHAR}, #{shipvia,jdbcType=NVARCHAR}, #{paymentterms,jdbcType=NVARCHAR},
|
|
|
+ #{ebsnum,jdbcType=NVARCHAR}, #{ebsissync,jdbcType=NVARCHAR}, #{changeby,jdbcType=NVARCHAR},
|
|
|
+ #{changedate,jdbcType=TIMESTAMP}, #{payvendor,jdbcType=NVARCHAR}, #{bankname,jdbcType=NVARCHAR},
|
|
|
+ #{bankaccount,jdbcType=NVARCHAR}, #{disabled,jdbcType=NVARCHAR}, #{remitaddr,jdbcType=NVARCHAR},
|
|
|
+ #{remitpostnum,jdbcType=NVARCHAR}, #{remitphone,jdbcType=NVARCHAR}, #{remitto,jdbcType=NVARCHAR},
|
|
|
+ #{homepage,jdbcType=NVARCHAR}, #{defwarehouse,jdbcType=NVARCHAR}, #{description,jdbcType=NVARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Companies">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into COMPANIES
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ ID,
|
|
|
+ </if>
|
|
|
+ <if test="company != null">
|
|
|
+ COMPANY,
|
|
|
+ </if>
|
|
|
+ <if test="parent != null">
|
|
|
+ PARENT,
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="regfund != null">
|
|
|
+ REGFUND,
|
|
|
+ </if>
|
|
|
+ <if test="comptype != null">
|
|
|
+ COMPTYPE,
|
|
|
+ </if>
|
|
|
+ <if test="delegate != null">
|
|
|
+ DELEGATE,
|
|
|
+ </if>
|
|
|
+ <if test="regnum != null">
|
|
|
+ REGNUM,
|
|
|
+ </if>
|
|
|
+ <if test="taxnum != null">
|
|
|
+ TAXNUM,
|
|
|
+ </if>
|
|
|
+ <if test="mainprod != null">
|
|
|
+ MAINPROD,
|
|
|
+ </if>
|
|
|
+ <if test="dealin != null">
|
|
|
+ DEALIN,
|
|
|
+ </if>
|
|
|
+ <if test="address != null">
|
|
|
+ ADDRESS,
|
|
|
+ </if>
|
|
|
+ <if test="postnum != null">
|
|
|
+ POSTNUM,
|
|
|
+ </if>
|
|
|
+ <if test="province != null">
|
|
|
+ PROVINCE,
|
|
|
+ </if>
|
|
|
+ <if test="city != null">
|
|
|
+ CITY,
|
|
|
+ </if>
|
|
|
+ <if test="contact != null">
|
|
|
+ CONTACT,
|
|
|
+ </if>
|
|
|
+ <if test="phone != null">
|
|
|
+ PHONE,
|
|
|
+ </if>
|
|
|
+ <if test="fax != null">
|
|
|
+ FAX,
|
|
|
+ </if>
|
|
|
+ <if test="contactmp != null">
|
|
|
+ CONTACTMP,
|
|
|
+ </if>
|
|
|
+ <if test="contactmail != null">
|
|
|
+ CONTACTMAIL,
|
|
|
+ </if>
|
|
|
+ <if test="fob != null">
|
|
|
+ FOB,
|
|
|
+ </if>
|
|
|
+ <if test="freightterms != null">
|
|
|
+ FREIGHTTERMS,
|
|
|
+ </if>
|
|
|
+ <if test="shipvia != null">
|
|
|
+ SHIPVIA,
|
|
|
+ </if>
|
|
|
+ <if test="paymentterms != null">
|
|
|
+ PAYMENTTERMS,
|
|
|
+ </if>
|
|
|
+ <if test="ebsnum != null">
|
|
|
+ EBSNUM,
|
|
|
+ </if>
|
|
|
+ <if test="ebsissync != null">
|
|
|
+ EBSISSYNC,
|
|
|
+ </if>
|
|
|
+ <if test="changeby != null">
|
|
|
+ CHANGEBY,
|
|
|
+ </if>
|
|
|
+ <if test="changedate != null">
|
|
|
+ CHANGEDATE,
|
|
|
+ </if>
|
|
|
+ <if test="payvendor != null">
|
|
|
+ PAYVENDOR,
|
|
|
+ </if>
|
|
|
+ <if test="bankname != null">
|
|
|
+ BANKNAME,
|
|
|
+ </if>
|
|
|
+ <if test="bankaccount != null">
|
|
|
+ BANKACCOUNT,
|
|
|
+ </if>
|
|
|
+ <if test="disabled != null">
|
|
|
+ DISABLED,
|
|
|
+ </if>
|
|
|
+ <if test="remitaddr != null">
|
|
|
+ REMITADDR,
|
|
|
+ </if>
|
|
|
+ <if test="remitpostnum != null">
|
|
|
+ REMITPOSTNUM,
|
|
|
+ </if>
|
|
|
+ <if test="remitphone != null">
|
|
|
+ REMITPHONE,
|
|
|
+ </if>
|
|
|
+ <if test="remitto != null">
|
|
|
+ REMITTO,
|
|
|
+ </if>
|
|
|
+ <if test="homepage != null">
|
|
|
+ HOMEPAGE,
|
|
|
+ </if>
|
|
|
+ <if test="defwarehouse != null">
|
|
|
+ DEFWAREHOUSE,
|
|
|
+ </if>
|
|
|
+ <if test="description != null">
|
|
|
+ DESCRIPTION,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="company != null">
|
|
|
+ #{company,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parent != null">
|
|
|
+ #{parent,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ #{type,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="regfund != null">
|
|
|
+ #{regfund,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="comptype != null">
|
|
|
+ #{comptype,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="delegate != null">
|
|
|
+ #{delegate,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="regnum != null">
|
|
|
+ #{regnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="taxnum != null">
|
|
|
+ #{taxnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mainprod != null">
|
|
|
+ #{mainprod,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dealin != null">
|
|
|
+ #{dealin,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="address != null">
|
|
|
+ #{address,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="postnum != null">
|
|
|
+ #{postnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="province != null">
|
|
|
+ #{province,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="city != null">
|
|
|
+ #{city,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contact != null">
|
|
|
+ #{contact,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="phone != null">
|
|
|
+ #{phone,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fax != null">
|
|
|
+ #{fax,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contactmp != null">
|
|
|
+ #{contactmp,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contactmail != null">
|
|
|
+ #{contactmail,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fob != null">
|
|
|
+ #{fob,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="freightterms != null">
|
|
|
+ #{freightterms,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="shipvia != null">
|
|
|
+ #{shipvia,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="paymentterms != null">
|
|
|
+ #{paymentterms,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ebsnum != null">
|
|
|
+ #{ebsnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ebsissync != null">
|
|
|
+ #{ebsissync,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="changeby != null">
|
|
|
+ #{changeby,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="changedate != null">
|
|
|
+ #{changedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="payvendor != null">
|
|
|
+ #{payvendor,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankname != null">
|
|
|
+ #{bankname,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankaccount != null">
|
|
|
+ #{bankaccount,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="disabled != null">
|
|
|
+ #{disabled,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remitaddr != null">
|
|
|
+ #{remitaddr,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remitpostnum != null">
|
|
|
+ #{remitpostnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remitphone != null">
|
|
|
+ #{remitphone,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remitto != null">
|
|
|
+ #{remitto,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="homepage != null">
|
|
|
+ #{homepage,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="defwarehouse != null">
|
|
|
+ #{defwarehouse,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="description != null">
|
|
|
+ #{description,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.gyee.frame.model.auto.CompaniesExample" resultType="java.lang.Long">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select count(*) from COMPANIES
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update COMPANIES
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ ID = #{record.id,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.company != null">
|
|
|
+ COMPANY = #{record.company,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.parent != null">
|
|
|
+ PARENT = #{record.parent,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.type != null">
|
|
|
+ TYPE = #{record.type,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.regfund != null">
|
|
|
+ REGFUND = #{record.regfund,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.comptype != null">
|
|
|
+ COMPTYPE = #{record.comptype,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.delegate != null">
|
|
|
+ DELEGATE = #{record.delegate,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.regnum != null">
|
|
|
+ REGNUM = #{record.regnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.taxnum != null">
|
|
|
+ TAXNUM = #{record.taxnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.mainprod != null">
|
|
|
+ MAINPROD = #{record.mainprod,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.dealin != null">
|
|
|
+ DEALIN = #{record.dealin,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.address != null">
|
|
|
+ ADDRESS = #{record.address,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.postnum != null">
|
|
|
+ POSTNUM = #{record.postnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.province != null">
|
|
|
+ PROVINCE = #{record.province,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.city != null">
|
|
|
+ CITY = #{record.city,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.contact != null">
|
|
|
+ CONTACT = #{record.contact,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.phone != null">
|
|
|
+ PHONE = #{record.phone,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.fax != null">
|
|
|
+ FAX = #{record.fax,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.contactmp != null">
|
|
|
+ CONTACTMP = #{record.contactmp,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.contactmail != null">
|
|
|
+ CONTACTMAIL = #{record.contactmail,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.fob != null">
|
|
|
+ FOB = #{record.fob,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.freightterms != null">
|
|
|
+ FREIGHTTERMS = #{record.freightterms,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.shipvia != null">
|
|
|
+ SHIPVIA = #{record.shipvia,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.paymentterms != null">
|
|
|
+ PAYMENTTERMS = #{record.paymentterms,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.ebsnum != null">
|
|
|
+ EBSNUM = #{record.ebsnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.ebsissync != null">
|
|
|
+ EBSISSYNC = #{record.ebsissync,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.changeby != null">
|
|
|
+ CHANGEBY = #{record.changeby,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.changedate != null">
|
|
|
+ CHANGEDATE = #{record.changedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.payvendor != null">
|
|
|
+ PAYVENDOR = #{record.payvendor,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bankname != null">
|
|
|
+ BANKNAME = #{record.bankname,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bankaccount != null">
|
|
|
+ BANKACCOUNT = #{record.bankaccount,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.disabled != null">
|
|
|
+ DISABLED = #{record.disabled,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.remitaddr != null">
|
|
|
+ REMITADDR = #{record.remitaddr,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.remitpostnum != null">
|
|
|
+ REMITPOSTNUM = #{record.remitpostnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.remitphone != null">
|
|
|
+ REMITPHONE = #{record.remitphone,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.remitto != null">
|
|
|
+ REMITTO = #{record.remitto,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.homepage != null">
|
|
|
+ HOMEPAGE = #{record.homepage,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.defwarehouse != null">
|
|
|
+ DEFWAREHOUSE = #{record.defwarehouse,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.description != null">
|
|
|
+ DESCRIPTION = #{record.description,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update COMPANIES
|
|
|
+ set ID = #{record.id,jdbcType=NUMERIC},
|
|
|
+ COMPANY = #{record.company,jdbcType=NVARCHAR},
|
|
|
+ PARENT = #{record.parent,jdbcType=NVARCHAR},
|
|
|
+ TYPE = #{record.type,jdbcType=NVARCHAR},
|
|
|
+ REGFUND = #{record.regfund,jdbcType=NVARCHAR},
|
|
|
+ COMPTYPE = #{record.comptype,jdbcType=NVARCHAR},
|
|
|
+ DELEGATE = #{record.delegate,jdbcType=NVARCHAR},
|
|
|
+ REGNUM = #{record.regnum,jdbcType=NVARCHAR},
|
|
|
+ TAXNUM = #{record.taxnum,jdbcType=NVARCHAR},
|
|
|
+ MAINPROD = #{record.mainprod,jdbcType=NVARCHAR},
|
|
|
+ DEALIN = #{record.dealin,jdbcType=NVARCHAR},
|
|
|
+ ADDRESS = #{record.address,jdbcType=NVARCHAR},
|
|
|
+ POSTNUM = #{record.postnum,jdbcType=NVARCHAR},
|
|
|
+ PROVINCE = #{record.province,jdbcType=NVARCHAR},
|
|
|
+ CITY = #{record.city,jdbcType=NVARCHAR},
|
|
|
+ CONTACT = #{record.contact,jdbcType=NVARCHAR},
|
|
|
+ PHONE = #{record.phone,jdbcType=NVARCHAR},
|
|
|
+ FAX = #{record.fax,jdbcType=NVARCHAR},
|
|
|
+ CONTACTMP = #{record.contactmp,jdbcType=NVARCHAR},
|
|
|
+ CONTACTMAIL = #{record.contactmail,jdbcType=NVARCHAR},
|
|
|
+ FOB = #{record.fob,jdbcType=NVARCHAR},
|
|
|
+ FREIGHTTERMS = #{record.freightterms,jdbcType=NVARCHAR},
|
|
|
+ SHIPVIA = #{record.shipvia,jdbcType=NVARCHAR},
|
|
|
+ PAYMENTTERMS = #{record.paymentterms,jdbcType=NVARCHAR},
|
|
|
+ EBSNUM = #{record.ebsnum,jdbcType=NVARCHAR},
|
|
|
+ EBSISSYNC = #{record.ebsissync,jdbcType=NVARCHAR},
|
|
|
+ CHANGEBY = #{record.changeby,jdbcType=NVARCHAR},
|
|
|
+ CHANGEDATE = #{record.changedate,jdbcType=TIMESTAMP},
|
|
|
+ PAYVENDOR = #{record.payvendor,jdbcType=NVARCHAR},
|
|
|
+ BANKNAME = #{record.bankname,jdbcType=NVARCHAR},
|
|
|
+ BANKACCOUNT = #{record.bankaccount,jdbcType=NVARCHAR},
|
|
|
+ DISABLED = #{record.disabled,jdbcType=NVARCHAR},
|
|
|
+ REMITADDR = #{record.remitaddr,jdbcType=NVARCHAR},
|
|
|
+ REMITPOSTNUM = #{record.remitpostnum,jdbcType=NVARCHAR},
|
|
|
+ REMITPHONE = #{record.remitphone,jdbcType=NVARCHAR},
|
|
|
+ REMITTO = #{record.remitto,jdbcType=NVARCHAR},
|
|
|
+ HOMEPAGE = #{record.homepage,jdbcType=NVARCHAR},
|
|
|
+ DEFWAREHOUSE = #{record.defwarehouse,jdbcType=NVARCHAR},
|
|
|
+ DESCRIPTION = #{record.description,jdbcType=NVARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Companies">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update COMPANIES
|
|
|
+ <set>
|
|
|
+ <if test="company != null">
|
|
|
+ COMPANY = #{company,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parent != null">
|
|
|
+ PARENT = #{parent,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ TYPE = #{type,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="regfund != null">
|
|
|
+ REGFUND = #{regfund,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="comptype != null">
|
|
|
+ COMPTYPE = #{comptype,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="delegate != null">
|
|
|
+ DELEGATE = #{delegate,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="regnum != null">
|
|
|
+ REGNUM = #{regnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="taxnum != null">
|
|
|
+ TAXNUM = #{taxnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mainprod != null">
|
|
|
+ MAINPROD = #{mainprod,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dealin != null">
|
|
|
+ DEALIN = #{dealin,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="address != null">
|
|
|
+ ADDRESS = #{address,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="postnum != null">
|
|
|
+ POSTNUM = #{postnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="province != null">
|
|
|
+ PROVINCE = #{province,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="city != null">
|
|
|
+ CITY = #{city,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contact != null">
|
|
|
+ CONTACT = #{contact,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="phone != null">
|
|
|
+ PHONE = #{phone,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fax != null">
|
|
|
+ FAX = #{fax,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contactmp != null">
|
|
|
+ CONTACTMP = #{contactmp,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contactmail != null">
|
|
|
+ CONTACTMAIL = #{contactmail,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fob != null">
|
|
|
+ FOB = #{fob,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="freightterms != null">
|
|
|
+ FREIGHTTERMS = #{freightterms,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="shipvia != null">
|
|
|
+ SHIPVIA = #{shipvia,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="paymentterms != null">
|
|
|
+ PAYMENTTERMS = #{paymentterms,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ebsnum != null">
|
|
|
+ EBSNUM = #{ebsnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ebsissync != null">
|
|
|
+ EBSISSYNC = #{ebsissync,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="changeby != null">
|
|
|
+ CHANGEBY = #{changeby,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="changedate != null">
|
|
|
+ CHANGEDATE = #{changedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="payvendor != null">
|
|
|
+ PAYVENDOR = #{payvendor,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankname != null">
|
|
|
+ BANKNAME = #{bankname,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankaccount != null">
|
|
|
+ BANKACCOUNT = #{bankaccount,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="disabled != null">
|
|
|
+ DISABLED = #{disabled,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remitaddr != null">
|
|
|
+ REMITADDR = #{remitaddr,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remitpostnum != null">
|
|
|
+ REMITPOSTNUM = #{remitpostnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remitphone != null">
|
|
|
+ REMITPHONE = #{remitphone,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remitto != null">
|
|
|
+ REMITTO = #{remitto,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="homepage != null">
|
|
|
+ HOMEPAGE = #{homepage,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="defwarehouse != null">
|
|
|
+ DEFWAREHOUSE = #{defwarehouse,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="description != null">
|
|
|
+ DESCRIPTION = #{description,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where ID = #{id,jdbcType=NUMERIC}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Companies">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update COMPANIES
|
|
|
+ set COMPANY = #{company,jdbcType=NVARCHAR},
|
|
|
+ PARENT = #{parent,jdbcType=NVARCHAR},
|
|
|
+ TYPE = #{type,jdbcType=NVARCHAR},
|
|
|
+ REGFUND = #{regfund,jdbcType=NVARCHAR},
|
|
|
+ COMPTYPE = #{comptype,jdbcType=NVARCHAR},
|
|
|
+ DELEGATE = #{delegate,jdbcType=NVARCHAR},
|
|
|
+ REGNUM = #{regnum,jdbcType=NVARCHAR},
|
|
|
+ TAXNUM = #{taxnum,jdbcType=NVARCHAR},
|
|
|
+ MAINPROD = #{mainprod,jdbcType=NVARCHAR},
|
|
|
+ DEALIN = #{dealin,jdbcType=NVARCHAR},
|
|
|
+ ADDRESS = #{address,jdbcType=NVARCHAR},
|
|
|
+ POSTNUM = #{postnum,jdbcType=NVARCHAR},
|
|
|
+ PROVINCE = #{province,jdbcType=NVARCHAR},
|
|
|
+ CITY = #{city,jdbcType=NVARCHAR},
|
|
|
+ CONTACT = #{contact,jdbcType=NVARCHAR},
|
|
|
+ PHONE = #{phone,jdbcType=NVARCHAR},
|
|
|
+ FAX = #{fax,jdbcType=NVARCHAR},
|
|
|
+ CONTACTMP = #{contactmp,jdbcType=NVARCHAR},
|
|
|
+ CONTACTMAIL = #{contactmail,jdbcType=NVARCHAR},
|
|
|
+ FOB = #{fob,jdbcType=NVARCHAR},
|
|
|
+ FREIGHTTERMS = #{freightterms,jdbcType=NVARCHAR},
|
|
|
+ SHIPVIA = #{shipvia,jdbcType=NVARCHAR},
|
|
|
+ PAYMENTTERMS = #{paymentterms,jdbcType=NVARCHAR},
|
|
|
+ EBSNUM = #{ebsnum,jdbcType=NVARCHAR},
|
|
|
+ EBSISSYNC = #{ebsissync,jdbcType=NVARCHAR},
|
|
|
+ CHANGEBY = #{changeby,jdbcType=NVARCHAR},
|
|
|
+ CHANGEDATE = #{changedate,jdbcType=TIMESTAMP},
|
|
|
+ PAYVENDOR = #{payvendor,jdbcType=NVARCHAR},
|
|
|
+ BANKNAME = #{bankname,jdbcType=NVARCHAR},
|
|
|
+ BANKACCOUNT = #{bankaccount,jdbcType=NVARCHAR},
|
|
|
+ DISABLED = #{disabled,jdbcType=NVARCHAR},
|
|
|
+ REMITADDR = #{remitaddr,jdbcType=NVARCHAR},
|
|
|
+ REMITPOSTNUM = #{remitpostnum,jdbcType=NVARCHAR},
|
|
|
+ REMITPHONE = #{remitphone,jdbcType=NVARCHAR},
|
|
|
+ REMITTO = #{remitto,jdbcType=NVARCHAR},
|
|
|
+ HOMEPAGE = #{homepage,jdbcType=NVARCHAR},
|
|
|
+ DEFWAREHOUSE = #{defwarehouse,jdbcType=NVARCHAR},
|
|
|
+ DESCRIPTION = #{description,jdbcType=NVARCHAR}
|
|
|
+ where ID = #{id,jdbcType=NUMERIC}
|
|
|
+ </update>
|
|
|
+</mapper>
|