|
|
@@ -0,0 +1,798 @@
|
|
|
+<?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.goafanti.common.dao.TOrderNewMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrderNew">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ <id column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
|
|
+ <result column="order_type" jdbcType="INTEGER" property="orderType" />
|
|
|
+ <result column="creater" jdbcType="VARCHAR" property="creater" />
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
+ <result column="buyer_id" jdbcType="VARCHAR" property="buyerId" />
|
|
|
+ <result column="first_amount" jdbcType="DECIMAL" property="firstAmount" />
|
|
|
+ <result column="total_amount" jdbcType="DECIMAL" property="totalAmount" />
|
|
|
+ <result column="settlement_amount" jdbcType="DECIMAL" property="settlementAmount" />
|
|
|
+ <result column="order_status" jdbcType="INTEGER" property="orderStatus" />
|
|
|
+ <result column="liquidation_status" jdbcType="INTEGER" property="liquidationStatus" />
|
|
|
+ <result column="process_status" jdbcType="INTEGER" property="processStatus" />
|
|
|
+ <result column="project_status" jdbcType="INTEGER" property="projectStatus" />
|
|
|
+ <result column="approval" jdbcType="INTEGER" property="approval" />
|
|
|
+ <result column="order_remarks" jdbcType="VARCHAR" property="orderRemarks" />
|
|
|
+ <result column="delete_sign" jdbcType="INTEGER" property="deleteSign" />
|
|
|
+ <result column="salesman_id" jdbcType="VARCHAR" property="salesmanId" />
|
|
|
+ <result column="finance_id" jdbcType="VARCHAR" property="financeId" />
|
|
|
+ <result column="technician_id" jdbcType="VARCHAR" property="technicianId" />
|
|
|
+ <result column="sign_time" jdbcType="DATE" property="signTime" />
|
|
|
+ <result column="settlement_time" jdbcType="DATE" property="settlementTime" />
|
|
|
+ <result column="contract_no" jdbcType="VARCHAR" property="contractNo" />
|
|
|
+ <result column="contract_type" jdbcType="VARCHAR" property="contractType" />
|
|
|
+ <result column="contacts" jdbcType="VARCHAR" property="contacts" />
|
|
|
+ <result column="contact_mobile" jdbcType="VARCHAR" property="contactMobile" />
|
|
|
+ <result column="legal_person" jdbcType="VARCHAR" property="legalPerson" />
|
|
|
+ <result column="legal_person_tel" jdbcType="VARCHAR" property="legalPersonTel" />
|
|
|
+ <result column="proof_count" jdbcType="REAL" property="proofCount" />
|
|
|
+ <result column="proof_aid" jdbcType="VARCHAR" property="proofAid" />
|
|
|
+ </resultMap>
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.goafanti.common.model.TOrderNew">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ <result column="contract_picture_url" jdbcType="LONGVARCHAR" property="contractPictureUrl" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ <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.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ <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.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ order_no, order_type, creater, create_time, update_time, buyer_id, first_amount,
|
|
|
+ total_amount, settlement_amount, order_status, liquidation_status, process_status,
|
|
|
+ project_status, approval, order_remarks, delete_sign, salesman_id, finance_id, technician_id,
|
|
|
+ sign_time, settlement_time, contract_no, contract_type, contacts, contact_mobile,
|
|
|
+ legal_person, legal_person_tel, proof_count, proof_aid
|
|
|
+ </sql>
|
|
|
+ <sql id="Blob_Column_List">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ contract_picture_url
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExampleWithBLOBs" parameterType="com.goafanti.common.model.TOrderNewExample" resultMap="ResultMapWithBLOBs">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from t_order_new
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByExample" parameterType="com.goafanti.common.model.TOrderNewExample" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from t_order_new
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from t_order_new
|
|
|
+ where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ delete from t_order_new
|
|
|
+ where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.goafanti.common.model.TOrderNewExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ delete from t_order_new
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.goafanti.common.model.TOrderNew">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ insert into t_order_new (order_no, order_type, creater,
|
|
|
+ create_time, update_time, buyer_id,
|
|
|
+ first_amount, total_amount, settlement_amount,
|
|
|
+ order_status, liquidation_status, process_status,
|
|
|
+ project_status, approval, order_remarks,
|
|
|
+ delete_sign, salesman_id, finance_id,
|
|
|
+ technician_id, sign_time, settlement_time,
|
|
|
+ contract_no, contract_type, contacts,
|
|
|
+ contact_mobile, legal_person, legal_person_tel,
|
|
|
+ proof_count, proof_aid, contract_picture_url
|
|
|
+ )
|
|
|
+ values (#{orderNo,jdbcType=VARCHAR}, #{orderType,jdbcType=INTEGER}, #{creater,jdbcType=VARCHAR},
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{buyerId,jdbcType=VARCHAR},
|
|
|
+ #{firstAmount,jdbcType=DECIMAL}, #{totalAmount,jdbcType=DECIMAL}, #{settlementAmount,jdbcType=DECIMAL},
|
|
|
+ #{orderStatus,jdbcType=INTEGER}, #{liquidationStatus,jdbcType=INTEGER}, #{processStatus,jdbcType=INTEGER},
|
|
|
+ #{projectStatus,jdbcType=INTEGER}, #{approval,jdbcType=INTEGER}, #{orderRemarks,jdbcType=VARCHAR},
|
|
|
+ #{deleteSign,jdbcType=INTEGER}, #{salesmanId,jdbcType=VARCHAR}, #{financeId,jdbcType=VARCHAR},
|
|
|
+ #{technicianId,jdbcType=VARCHAR}, #{signTime,jdbcType=DATE}, #{settlementTime,jdbcType=DATE},
|
|
|
+ #{contractNo,jdbcType=VARCHAR}, #{contractType,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
|
|
|
+ #{contactMobile,jdbcType=VARCHAR}, #{legalPerson,jdbcType=VARCHAR}, #{legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ #{proofCount,jdbcType=REAL}, #{proofAid,jdbcType=VARCHAR}, #{contractPictureUrl,jdbcType=LONGVARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderNew">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ insert into t_order_new
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="orderNo != null">
|
|
|
+ order_no,
|
|
|
+ </if>
|
|
|
+ <if test="orderType != null">
|
|
|
+ order_type,
|
|
|
+ </if>
|
|
|
+ <if test="creater != null">
|
|
|
+ creater,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time,
|
|
|
+ </if>
|
|
|
+ <if test="buyerId != null">
|
|
|
+ buyer_id,
|
|
|
+ </if>
|
|
|
+ <if test="firstAmount != null">
|
|
|
+ first_amount,
|
|
|
+ </if>
|
|
|
+ <if test="totalAmount != null">
|
|
|
+ total_amount,
|
|
|
+ </if>
|
|
|
+ <if test="settlementAmount != null">
|
|
|
+ settlement_amount,
|
|
|
+ </if>
|
|
|
+ <if test="orderStatus != null">
|
|
|
+ order_status,
|
|
|
+ </if>
|
|
|
+ <if test="liquidationStatus != null">
|
|
|
+ liquidation_status,
|
|
|
+ </if>
|
|
|
+ <if test="processStatus != null">
|
|
|
+ process_status,
|
|
|
+ </if>
|
|
|
+ <if test="projectStatus != null">
|
|
|
+ project_status,
|
|
|
+ </if>
|
|
|
+ <if test="approval != null">
|
|
|
+ approval,
|
|
|
+ </if>
|
|
|
+ <if test="orderRemarks != null">
|
|
|
+ order_remarks,
|
|
|
+ </if>
|
|
|
+ <if test="deleteSign != null">
|
|
|
+ delete_sign,
|
|
|
+ </if>
|
|
|
+ <if test="salesmanId != null">
|
|
|
+ salesman_id,
|
|
|
+ </if>
|
|
|
+ <if test="financeId != null">
|
|
|
+ finance_id,
|
|
|
+ </if>
|
|
|
+ <if test="technicianId != null">
|
|
|
+ technician_id,
|
|
|
+ </if>
|
|
|
+ <if test="signTime != null">
|
|
|
+ sign_time,
|
|
|
+ </if>
|
|
|
+ <if test="settlementTime != null">
|
|
|
+ settlement_time,
|
|
|
+ </if>
|
|
|
+ <if test="contractNo != null">
|
|
|
+ contract_no,
|
|
|
+ </if>
|
|
|
+ <if test="contractType != null">
|
|
|
+ contract_type,
|
|
|
+ </if>
|
|
|
+ <if test="contacts != null">
|
|
|
+ contacts,
|
|
|
+ </if>
|
|
|
+ <if test="contactMobile != null">
|
|
|
+ contact_mobile,
|
|
|
+ </if>
|
|
|
+ <if test="legalPerson != null">
|
|
|
+ legal_person,
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonTel != null">
|
|
|
+ legal_person_tel,
|
|
|
+ </if>
|
|
|
+ <if test="proofCount != null">
|
|
|
+ proof_count,
|
|
|
+ </if>
|
|
|
+ <if test="proofAid != null">
|
|
|
+ proof_aid,
|
|
|
+ </if>
|
|
|
+ <if test="contractPictureUrl != null">
|
|
|
+ contract_picture_url,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="orderNo != null">
|
|
|
+ #{orderNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orderType != null">
|
|
|
+ #{orderType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="creater != null">
|
|
|
+ #{creater,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="buyerId != null">
|
|
|
+ #{buyerId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="firstAmount != null">
|
|
|
+ #{firstAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="totalAmount != null">
|
|
|
+ #{totalAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="settlementAmount != null">
|
|
|
+ #{settlementAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="orderStatus != null">
|
|
|
+ #{orderStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="liquidationStatus != null">
|
|
|
+ #{liquidationStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="processStatus != null">
|
|
|
+ #{processStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="projectStatus != null">
|
|
|
+ #{projectStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="approval != null">
|
|
|
+ #{approval,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orderRemarks != null">
|
|
|
+ #{orderRemarks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deleteSign != null">
|
|
|
+ #{deleteSign,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="salesmanId != null">
|
|
|
+ #{salesmanId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="financeId != null">
|
|
|
+ #{financeId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="technicianId != null">
|
|
|
+ #{technicianId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="signTime != null">
|
|
|
+ #{signTime,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="settlementTime != null">
|
|
|
+ #{settlementTime,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="contractNo != null">
|
|
|
+ #{contractNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contractType != null">
|
|
|
+ #{contractType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contacts != null">
|
|
|
+ #{contacts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contactMobile != null">
|
|
|
+ #{contactMobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPerson != null">
|
|
|
+ #{legalPerson,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonTel != null">
|
|
|
+ #{legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="proofCount != null">
|
|
|
+ #{proofCount,jdbcType=REAL},
|
|
|
+ </if>
|
|
|
+ <if test="proofAid != null">
|
|
|
+ #{proofAid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contractPictureUrl != null">
|
|
|
+ #{contractPictureUrl,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.goafanti.common.model.TOrderNewExample" resultType="java.lang.Long">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ select count(*) from t_order_new
|
|
|
+ <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.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ update t_order_new
|
|
|
+ <set>
|
|
|
+ <if test="record.orderNo != null">
|
|
|
+ order_no = #{record.orderNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.orderType != null">
|
|
|
+ order_type = #{record.orderType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.creater != null">
|
|
|
+ creater = #{record.creater,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createTime != null">
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.updateTime != null">
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.buyerId != null">
|
|
|
+ buyer_id = #{record.buyerId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.firstAmount != null">
|
|
|
+ first_amount = #{record.firstAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.totalAmount != null">
|
|
|
+ total_amount = #{record.totalAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.settlementAmount != null">
|
|
|
+ settlement_amount = #{record.settlementAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.orderStatus != null">
|
|
|
+ order_status = #{record.orderStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.liquidationStatus != null">
|
|
|
+ liquidation_status = #{record.liquidationStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.processStatus != null">
|
|
|
+ process_status = #{record.processStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.projectStatus != null">
|
|
|
+ project_status = #{record.projectStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.approval != null">
|
|
|
+ approval = #{record.approval,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.orderRemarks != null">
|
|
|
+ order_remarks = #{record.orderRemarks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.deleteSign != null">
|
|
|
+ delete_sign = #{record.deleteSign,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.salesmanId != null">
|
|
|
+ salesman_id = #{record.salesmanId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.financeId != null">
|
|
|
+ finance_id = #{record.financeId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.technicianId != null">
|
|
|
+ technician_id = #{record.technicianId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.signTime != null">
|
|
|
+ sign_time = #{record.signTime,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="record.settlementTime != null">
|
|
|
+ settlement_time = #{record.settlementTime,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="record.contractNo != null">
|
|
|
+ contract_no = #{record.contractNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.contractType != null">
|
|
|
+ contract_type = #{record.contractType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.contacts != null">
|
|
|
+ contacts = #{record.contacts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.contactMobile != null">
|
|
|
+ contact_mobile = #{record.contactMobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.legalPerson != null">
|
|
|
+ legal_person = #{record.legalPerson,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.legalPersonTel != null">
|
|
|
+ legal_person_tel = #{record.legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.proofCount != null">
|
|
|
+ proof_count = #{record.proofCount,jdbcType=REAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.proofAid != null">
|
|
|
+ proof_aid = #{record.proofAid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.contractPictureUrl != null">
|
|
|
+ contract_picture_url = #{record.contractPictureUrl,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ update t_order_new
|
|
|
+ set order_no = #{record.orderNo,jdbcType=VARCHAR},
|
|
|
+ order_type = #{record.orderType,jdbcType=INTEGER},
|
|
|
+ creater = #{record.creater,jdbcType=VARCHAR},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ buyer_id = #{record.buyerId,jdbcType=VARCHAR},
|
|
|
+ first_amount = #{record.firstAmount,jdbcType=DECIMAL},
|
|
|
+ total_amount = #{record.totalAmount,jdbcType=DECIMAL},
|
|
|
+ settlement_amount = #{record.settlementAmount,jdbcType=DECIMAL},
|
|
|
+ order_status = #{record.orderStatus,jdbcType=INTEGER},
|
|
|
+ liquidation_status = #{record.liquidationStatus,jdbcType=INTEGER},
|
|
|
+ process_status = #{record.processStatus,jdbcType=INTEGER},
|
|
|
+ project_status = #{record.projectStatus,jdbcType=INTEGER},
|
|
|
+ approval = #{record.approval,jdbcType=INTEGER},
|
|
|
+ order_remarks = #{record.orderRemarks,jdbcType=VARCHAR},
|
|
|
+ delete_sign = #{record.deleteSign,jdbcType=INTEGER},
|
|
|
+ salesman_id = #{record.salesmanId,jdbcType=VARCHAR},
|
|
|
+ finance_id = #{record.financeId,jdbcType=VARCHAR},
|
|
|
+ technician_id = #{record.technicianId,jdbcType=VARCHAR},
|
|
|
+ sign_time = #{record.signTime,jdbcType=DATE},
|
|
|
+ settlement_time = #{record.settlementTime,jdbcType=DATE},
|
|
|
+ contract_no = #{record.contractNo,jdbcType=VARCHAR},
|
|
|
+ contract_type = #{record.contractType,jdbcType=VARCHAR},
|
|
|
+ contacts = #{record.contacts,jdbcType=VARCHAR},
|
|
|
+ contact_mobile = #{record.contactMobile,jdbcType=VARCHAR},
|
|
|
+ legal_person = #{record.legalPerson,jdbcType=VARCHAR},
|
|
|
+ legal_person_tel = #{record.legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ proof_count = #{record.proofCount,jdbcType=REAL},
|
|
|
+ proof_aid = #{record.proofAid,jdbcType=VARCHAR},
|
|
|
+ contract_picture_url = #{record.contractPictureUrl,jdbcType=LONGVARCHAR}
|
|
|
+ <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.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ update t_order_new
|
|
|
+ set order_no = #{record.orderNo,jdbcType=VARCHAR},
|
|
|
+ order_type = #{record.orderType,jdbcType=INTEGER},
|
|
|
+ creater = #{record.creater,jdbcType=VARCHAR},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ buyer_id = #{record.buyerId,jdbcType=VARCHAR},
|
|
|
+ first_amount = #{record.firstAmount,jdbcType=DECIMAL},
|
|
|
+ total_amount = #{record.totalAmount,jdbcType=DECIMAL},
|
|
|
+ settlement_amount = #{record.settlementAmount,jdbcType=DECIMAL},
|
|
|
+ order_status = #{record.orderStatus,jdbcType=INTEGER},
|
|
|
+ liquidation_status = #{record.liquidationStatus,jdbcType=INTEGER},
|
|
|
+ process_status = #{record.processStatus,jdbcType=INTEGER},
|
|
|
+ project_status = #{record.projectStatus,jdbcType=INTEGER},
|
|
|
+ approval = #{record.approval,jdbcType=INTEGER},
|
|
|
+ order_remarks = #{record.orderRemarks,jdbcType=VARCHAR},
|
|
|
+ delete_sign = #{record.deleteSign,jdbcType=INTEGER},
|
|
|
+ salesman_id = #{record.salesmanId,jdbcType=VARCHAR},
|
|
|
+ finance_id = #{record.financeId,jdbcType=VARCHAR},
|
|
|
+ technician_id = #{record.technicianId,jdbcType=VARCHAR},
|
|
|
+ sign_time = #{record.signTime,jdbcType=DATE},
|
|
|
+ settlement_time = #{record.settlementTime,jdbcType=DATE},
|
|
|
+ contract_no = #{record.contractNo,jdbcType=VARCHAR},
|
|
|
+ contract_type = #{record.contractType,jdbcType=VARCHAR},
|
|
|
+ contacts = #{record.contacts,jdbcType=VARCHAR},
|
|
|
+ contact_mobile = #{record.contactMobile,jdbcType=VARCHAR},
|
|
|
+ legal_person = #{record.legalPerson,jdbcType=VARCHAR},
|
|
|
+ legal_person_tel = #{record.legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ proof_count = #{record.proofCount,jdbcType=REAL},
|
|
|
+ proof_aid = #{record.proofAid,jdbcType=VARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderNew">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ update t_order_new
|
|
|
+ <set>
|
|
|
+ <if test="orderType != null">
|
|
|
+ order_type = #{orderType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="creater != null">
|
|
|
+ creater = #{creater,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="buyerId != null">
|
|
|
+ buyer_id = #{buyerId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="firstAmount != null">
|
|
|
+ first_amount = #{firstAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="totalAmount != null">
|
|
|
+ total_amount = #{totalAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="settlementAmount != null">
|
|
|
+ settlement_amount = #{settlementAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="orderStatus != null">
|
|
|
+ order_status = #{orderStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="liquidationStatus != null">
|
|
|
+ liquidation_status = #{liquidationStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="processStatus != null">
|
|
|
+ process_status = #{processStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="projectStatus != null">
|
|
|
+ project_status = #{projectStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="approval != null">
|
|
|
+ approval = #{approval,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orderRemarks != null">
|
|
|
+ order_remarks = #{orderRemarks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deleteSign != null">
|
|
|
+ delete_sign = #{deleteSign,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="salesmanId != null">
|
|
|
+ salesman_id = #{salesmanId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="financeId != null">
|
|
|
+ finance_id = #{financeId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="technicianId != null">
|
|
|
+ technician_id = #{technicianId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="signTime != null">
|
|
|
+ sign_time = #{signTime,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="settlementTime != null">
|
|
|
+ settlement_time = #{settlementTime,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="contractNo != null">
|
|
|
+ contract_no = #{contractNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contractType != null">
|
|
|
+ contract_type = #{contractType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contacts != null">
|
|
|
+ contacts = #{contacts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contactMobile != null">
|
|
|
+ contact_mobile = #{contactMobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPerson != null">
|
|
|
+ legal_person = #{legalPerson,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonTel != null">
|
|
|
+ legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="proofCount != null">
|
|
|
+ proof_count = #{proofCount,jdbcType=REAL},
|
|
|
+ </if>
|
|
|
+ <if test="proofAid != null">
|
|
|
+ proof_aid = #{proofAid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contractPictureUrl != null">
|
|
|
+ contract_picture_url = #{contractPictureUrl,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.goafanti.common.model.TOrderNew">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ update t_order_new
|
|
|
+ set order_type = #{orderType,jdbcType=INTEGER},
|
|
|
+ creater = #{creater,jdbcType=VARCHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ buyer_id = #{buyerId,jdbcType=VARCHAR},
|
|
|
+ first_amount = #{firstAmount,jdbcType=DECIMAL},
|
|
|
+ total_amount = #{totalAmount,jdbcType=DECIMAL},
|
|
|
+ settlement_amount = #{settlementAmount,jdbcType=DECIMAL},
|
|
|
+ order_status = #{orderStatus,jdbcType=INTEGER},
|
|
|
+ liquidation_status = #{liquidationStatus,jdbcType=INTEGER},
|
|
|
+ process_status = #{processStatus,jdbcType=INTEGER},
|
|
|
+ project_status = #{projectStatus,jdbcType=INTEGER},
|
|
|
+ approval = #{approval,jdbcType=INTEGER},
|
|
|
+ order_remarks = #{orderRemarks,jdbcType=VARCHAR},
|
|
|
+ delete_sign = #{deleteSign,jdbcType=INTEGER},
|
|
|
+ salesman_id = #{salesmanId,jdbcType=VARCHAR},
|
|
|
+ finance_id = #{financeId,jdbcType=VARCHAR},
|
|
|
+ technician_id = #{technicianId,jdbcType=VARCHAR},
|
|
|
+ sign_time = #{signTime,jdbcType=DATE},
|
|
|
+ settlement_time = #{settlementTime,jdbcType=DATE},
|
|
|
+ contract_no = #{contractNo,jdbcType=VARCHAR},
|
|
|
+ contract_type = #{contractType,jdbcType=VARCHAR},
|
|
|
+ contacts = #{contacts,jdbcType=VARCHAR},
|
|
|
+ contact_mobile = #{contactMobile,jdbcType=VARCHAR},
|
|
|
+ legal_person = #{legalPerson,jdbcType=VARCHAR},
|
|
|
+ legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ proof_count = #{proofCount,jdbcType=REAL},
|
|
|
+ proof_aid = #{proofAid,jdbcType=VARCHAR},
|
|
|
+ contract_picture_url = #{contractPictureUrl,jdbcType=LONGVARCHAR}
|
|
|
+ where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrderNew">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Nov 19 10:12:37 CST 2018.
|
|
|
+ -->
|
|
|
+ update t_order_new
|
|
|
+ set order_type = #{orderType,jdbcType=INTEGER},
|
|
|
+ creater = #{creater,jdbcType=VARCHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ buyer_id = #{buyerId,jdbcType=VARCHAR},
|
|
|
+ first_amount = #{firstAmount,jdbcType=DECIMAL},
|
|
|
+ total_amount = #{totalAmount,jdbcType=DECIMAL},
|
|
|
+ settlement_amount = #{settlementAmount,jdbcType=DECIMAL},
|
|
|
+ order_status = #{orderStatus,jdbcType=INTEGER},
|
|
|
+ liquidation_status = #{liquidationStatus,jdbcType=INTEGER},
|
|
|
+ process_status = #{processStatus,jdbcType=INTEGER},
|
|
|
+ project_status = #{projectStatus,jdbcType=INTEGER},
|
|
|
+ approval = #{approval,jdbcType=INTEGER},
|
|
|
+ order_remarks = #{orderRemarks,jdbcType=VARCHAR},
|
|
|
+ delete_sign = #{deleteSign,jdbcType=INTEGER},
|
|
|
+ salesman_id = #{salesmanId,jdbcType=VARCHAR},
|
|
|
+ finance_id = #{financeId,jdbcType=VARCHAR},
|
|
|
+ technician_id = #{technicianId,jdbcType=VARCHAR},
|
|
|
+ sign_time = #{signTime,jdbcType=DATE},
|
|
|
+ settlement_time = #{settlementTime,jdbcType=DATE},
|
|
|
+ contract_no = #{contractNo,jdbcType=VARCHAR},
|
|
|
+ contract_type = #{contractType,jdbcType=VARCHAR},
|
|
|
+ contacts = #{contacts,jdbcType=VARCHAR},
|
|
|
+ contact_mobile = #{contactMobile,jdbcType=VARCHAR},
|
|
|
+ legal_person = #{legalPerson,jdbcType=VARCHAR},
|
|
|
+ legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ proof_count = #{proofCount,jdbcType=REAL},
|
|
|
+ proof_aid = #{proofAid,jdbcType=VARCHAR}
|
|
|
+ where order_no = #{orderNo,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|