|
|
@@ -0,0 +1,589 @@
|
|
|
+<?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.TOrderMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrder">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ <id column="order_no" jdbcType="BIGINT" property="orderNo" />
|
|
|
+ <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="seller_id" jdbcType="VARCHAR" property="sellerId" />
|
|
|
+ <result column="commodity_id" jdbcType="VARCHAR" property="commodityId" />
|
|
|
+ <result column="commodity_type" jdbcType="INTEGER" property="commodityType" />
|
|
|
+ <result column="first_payment" jdbcType="DECIMAL" property="firstPayment" />
|
|
|
+ <result column="total_payment" jdbcType="DECIMAL" property="totalPayment" />
|
|
|
+ <result column="brokerage_amount" jdbcType="DECIMAL" property="brokerageAmount" />
|
|
|
+ <result column="brokerage_proportion" jdbcType="DECIMAL" property="brokerageProportion" />
|
|
|
+ <result column="actually_first_payment" jdbcType="DECIMAL" property="actuallyFirstPayment" />
|
|
|
+ <result column="actually_total_payment" jdbcType="DECIMAL" property="actuallyTotalPayment" />
|
|
|
+ <result column="actually_brokerage_amount" jdbcType="DECIMAL" property="actuallyBrokerageAmount" />
|
|
|
+ <result column="delete_sign" jdbcType="BIT" property="deleteSign" />
|
|
|
+ <result column="order_status" jdbcType="INTEGER" property="orderStatus" />
|
|
|
+ <result column="intention_status" jdbcType="INTEGER" property="intentionStatus" />
|
|
|
+ <result column="trading_status" jdbcType="INTEGER" property="tradingStatus" />
|
|
|
+ <result column="technology_transfer_progress" jdbcType="INTEGER" property="technologyTransferProgress" />
|
|
|
+ <result column="payment_status" jdbcType="INTEGER" property="paymentStatus" />
|
|
|
+ <result column="liquidation_status" jdbcType="INTEGER" property="liquidationStatus" />
|
|
|
+ <result column="order_follow" jdbcType="VARCHAR" property="orderFollow" />
|
|
|
+ <result column="order_channel" jdbcType="INTEGER" property="orderChannel" />
|
|
|
+ </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 Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ <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 Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ <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 Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ order_no, creater, create_time, update_time, buyer_id, seller_id, commodity_id, commodity_type,
|
|
|
+ first_payment, total_payment, brokerage_amount, brokerage_proportion, actually_first_payment,
|
|
|
+ actually_total_payment, actually_brokerage_amount, delete_sign, order_status, intention_status,
|
|
|
+ trading_status, technology_transfer_progress, payment_status, liquidation_status,
|
|
|
+ order_follow, order_channel
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.goafanti.common.model.TOrderExample" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from t_order
|
|
|
+ <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.Long" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from t_order
|
|
|
+ where order_no = #{orderNo,jdbcType=BIGINT}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ delete from t_order
|
|
|
+ where order_no = #{orderNo,jdbcType=BIGINT}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.goafanti.common.model.TOrderExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ delete from t_order
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.goafanti.common.model.TOrder">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ insert into t_order (order_no, creater, create_time,
|
|
|
+ update_time, buyer_id, seller_id,
|
|
|
+ commodity_id, commodity_type, first_payment,
|
|
|
+ total_payment, brokerage_amount, brokerage_proportion,
|
|
|
+ actually_first_payment, actually_total_payment,
|
|
|
+ actually_brokerage_amount, delete_sign, order_status,
|
|
|
+ intention_status, trading_status, technology_transfer_progress,
|
|
|
+ payment_status, liquidation_status, order_follow,
|
|
|
+ order_channel)
|
|
|
+ values (#{orderNo,jdbcType=BIGINT}, #{creater,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{buyerId,jdbcType=VARCHAR}, #{sellerId,jdbcType=VARCHAR},
|
|
|
+ #{commodityId,jdbcType=VARCHAR}, #{commodityType,jdbcType=INTEGER}, #{firstPayment,jdbcType=DECIMAL},
|
|
|
+ #{totalPayment,jdbcType=DECIMAL}, #{brokerageAmount,jdbcType=DECIMAL}, #{brokerageProportion,jdbcType=DECIMAL},
|
|
|
+ #{actuallyFirstPayment,jdbcType=DECIMAL}, #{actuallyTotalPayment,jdbcType=DECIMAL},
|
|
|
+ #{actuallyBrokerageAmount,jdbcType=DECIMAL}, #{deleteSign,jdbcType=BIT}, #{orderStatus,jdbcType=INTEGER},
|
|
|
+ #{intentionStatus,jdbcType=INTEGER}, #{tradingStatus,jdbcType=INTEGER}, #{technologyTransferProgress,jdbcType=INTEGER},
|
|
|
+ #{paymentStatus,jdbcType=INTEGER}, #{liquidationStatus,jdbcType=INTEGER}, #{orderFollow,jdbcType=VARCHAR},
|
|
|
+ #{orderChannel,jdbcType=INTEGER})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.goafanti.common.model.TOrder">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ insert into t_order
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="orderNo != null">
|
|
|
+ order_no,
|
|
|
+ </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="sellerId != null">
|
|
|
+ seller_id,
|
|
|
+ </if>
|
|
|
+ <if test="commodityId != null">
|
|
|
+ commodity_id,
|
|
|
+ </if>
|
|
|
+ <if test="commodityType != null">
|
|
|
+ commodity_type,
|
|
|
+ </if>
|
|
|
+ <if test="firstPayment != null">
|
|
|
+ first_payment,
|
|
|
+ </if>
|
|
|
+ <if test="totalPayment != null">
|
|
|
+ total_payment,
|
|
|
+ </if>
|
|
|
+ <if test="brokerageAmount != null">
|
|
|
+ brokerage_amount,
|
|
|
+ </if>
|
|
|
+ <if test="brokerageProportion != null">
|
|
|
+ brokerage_proportion,
|
|
|
+ </if>
|
|
|
+ <if test="actuallyFirstPayment != null">
|
|
|
+ actually_first_payment,
|
|
|
+ </if>
|
|
|
+ <if test="actuallyTotalPayment != null">
|
|
|
+ actually_total_payment,
|
|
|
+ </if>
|
|
|
+ <if test="actuallyBrokerageAmount != null">
|
|
|
+ actually_brokerage_amount,
|
|
|
+ </if>
|
|
|
+ <if test="deleteSign != null">
|
|
|
+ delete_sign,
|
|
|
+ </if>
|
|
|
+ <if test="orderStatus != null">
|
|
|
+ order_status,
|
|
|
+ </if>
|
|
|
+ <if test="intentionStatus != null">
|
|
|
+ intention_status,
|
|
|
+ </if>
|
|
|
+ <if test="tradingStatus != null">
|
|
|
+ trading_status,
|
|
|
+ </if>
|
|
|
+ <if test="technologyTransferProgress != null">
|
|
|
+ technology_transfer_progress,
|
|
|
+ </if>
|
|
|
+ <if test="paymentStatus != null">
|
|
|
+ payment_status,
|
|
|
+ </if>
|
|
|
+ <if test="liquidationStatus != null">
|
|
|
+ liquidation_status,
|
|
|
+ </if>
|
|
|
+ <if test="orderFollow != null">
|
|
|
+ order_follow,
|
|
|
+ </if>
|
|
|
+ <if test="orderChannel != null">
|
|
|
+ order_channel,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="orderNo != null">
|
|
|
+ #{orderNo,jdbcType=BIGINT},
|
|
|
+ </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="sellerId != null">
|
|
|
+ #{sellerId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="commodityId != null">
|
|
|
+ #{commodityId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="commodityType != null">
|
|
|
+ #{commodityType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="firstPayment != null">
|
|
|
+ #{firstPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="totalPayment != null">
|
|
|
+ #{totalPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="brokerageAmount != null">
|
|
|
+ #{brokerageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="brokerageProportion != null">
|
|
|
+ #{brokerageProportion,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="actuallyFirstPayment != null">
|
|
|
+ #{actuallyFirstPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="actuallyTotalPayment != null">
|
|
|
+ #{actuallyTotalPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="actuallyBrokerageAmount != null">
|
|
|
+ #{actuallyBrokerageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="deleteSign != null">
|
|
|
+ #{deleteSign,jdbcType=BIT},
|
|
|
+ </if>
|
|
|
+ <if test="orderStatus != null">
|
|
|
+ #{orderStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="intentionStatus != null">
|
|
|
+ #{intentionStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="tradingStatus != null">
|
|
|
+ #{tradingStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="technologyTransferProgress != null">
|
|
|
+ #{technologyTransferProgress,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="paymentStatus != null">
|
|
|
+ #{paymentStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="liquidationStatus != null">
|
|
|
+ #{liquidationStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orderFollow != null">
|
|
|
+ #{orderFollow,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orderChannel != null">
|
|
|
+ #{orderChannel,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.goafanti.common.model.TOrderExample" resultType="java.lang.Long">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ select count(*) from t_order
|
|
|
+ <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 Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ update t_order
|
|
|
+ <set>
|
|
|
+ <if test="record.orderNo != null">
|
|
|
+ order_no = #{record.orderNo,jdbcType=BIGINT},
|
|
|
+ </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.sellerId != null">
|
|
|
+ seller_id = #{record.sellerId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.commodityId != null">
|
|
|
+ commodity_id = #{record.commodityId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.commodityType != null">
|
|
|
+ commodity_type = #{record.commodityType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.firstPayment != null">
|
|
|
+ first_payment = #{record.firstPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.totalPayment != null">
|
|
|
+ total_payment = #{record.totalPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.brokerageAmount != null">
|
|
|
+ brokerage_amount = #{record.brokerageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.brokerageProportion != null">
|
|
|
+ brokerage_proportion = #{record.brokerageProportion,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.actuallyFirstPayment != null">
|
|
|
+ actually_first_payment = #{record.actuallyFirstPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.actuallyTotalPayment != null">
|
|
|
+ actually_total_payment = #{record.actuallyTotalPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.actuallyBrokerageAmount != null">
|
|
|
+ actually_brokerage_amount = #{record.actuallyBrokerageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.deleteSign != null">
|
|
|
+ delete_sign = #{record.deleteSign,jdbcType=BIT},
|
|
|
+ </if>
|
|
|
+ <if test="record.orderStatus != null">
|
|
|
+ order_status = #{record.orderStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.intentionStatus != null">
|
|
|
+ intention_status = #{record.intentionStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.tradingStatus != null">
|
|
|
+ trading_status = #{record.tradingStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.technologyTransferProgress != null">
|
|
|
+ technology_transfer_progress = #{record.technologyTransferProgress,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.paymentStatus != null">
|
|
|
+ payment_status = #{record.paymentStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.liquidationStatus != null">
|
|
|
+ liquidation_status = #{record.liquidationStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.orderFollow != null">
|
|
|
+ order_follow = #{record.orderFollow,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.orderChannel != null">
|
|
|
+ order_channel = #{record.orderChannel,jdbcType=INTEGER},
|
|
|
+ </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.
|
|
|
+ This element was generated on Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ update t_order
|
|
|
+ set order_no = #{record.orderNo,jdbcType=BIGINT},
|
|
|
+ creater = #{record.creater,jdbcType=VARCHAR},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ buyer_id = #{record.buyerId,jdbcType=VARCHAR},
|
|
|
+ seller_id = #{record.sellerId,jdbcType=VARCHAR},
|
|
|
+ commodity_id = #{record.commodityId,jdbcType=VARCHAR},
|
|
|
+ commodity_type = #{record.commodityType,jdbcType=INTEGER},
|
|
|
+ first_payment = #{record.firstPayment,jdbcType=DECIMAL},
|
|
|
+ total_payment = #{record.totalPayment,jdbcType=DECIMAL},
|
|
|
+ brokerage_amount = #{record.brokerageAmount,jdbcType=DECIMAL},
|
|
|
+ brokerage_proportion = #{record.brokerageProportion,jdbcType=DECIMAL},
|
|
|
+ actually_first_payment = #{record.actuallyFirstPayment,jdbcType=DECIMAL},
|
|
|
+ actually_total_payment = #{record.actuallyTotalPayment,jdbcType=DECIMAL},
|
|
|
+ actually_brokerage_amount = #{record.actuallyBrokerageAmount,jdbcType=DECIMAL},
|
|
|
+ delete_sign = #{record.deleteSign,jdbcType=BIT},
|
|
|
+ order_status = #{record.orderStatus,jdbcType=INTEGER},
|
|
|
+ intention_status = #{record.intentionStatus,jdbcType=INTEGER},
|
|
|
+ trading_status = #{record.tradingStatus,jdbcType=INTEGER},
|
|
|
+ technology_transfer_progress = #{record.technologyTransferProgress,jdbcType=INTEGER},
|
|
|
+ payment_status = #{record.paymentStatus,jdbcType=INTEGER},
|
|
|
+ liquidation_status = #{record.liquidationStatus,jdbcType=INTEGER},
|
|
|
+ order_follow = #{record.orderFollow,jdbcType=VARCHAR},
|
|
|
+ order_channel = #{record.orderChannel,jdbcType=INTEGER}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrder">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ update t_order
|
|
|
+ <set>
|
|
|
+ <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="sellerId != null">
|
|
|
+ seller_id = #{sellerId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="commodityId != null">
|
|
|
+ commodity_id = #{commodityId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="commodityType != null">
|
|
|
+ commodity_type = #{commodityType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="firstPayment != null">
|
|
|
+ first_payment = #{firstPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="totalPayment != null">
|
|
|
+ total_payment = #{totalPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="brokerageAmount != null">
|
|
|
+ brokerage_amount = #{brokerageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="brokerageProportion != null">
|
|
|
+ brokerage_proportion = #{brokerageProportion,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="actuallyFirstPayment != null">
|
|
|
+ actually_first_payment = #{actuallyFirstPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="actuallyTotalPayment != null">
|
|
|
+ actually_total_payment = #{actuallyTotalPayment,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="actuallyBrokerageAmount != null">
|
|
|
+ actually_brokerage_amount = #{actuallyBrokerageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="deleteSign != null">
|
|
|
+ delete_sign = #{deleteSign,jdbcType=BIT},
|
|
|
+ </if>
|
|
|
+ <if test="orderStatus != null">
|
|
|
+ order_status = #{orderStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="intentionStatus != null">
|
|
|
+ intention_status = #{intentionStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="tradingStatus != null">
|
|
|
+ trading_status = #{tradingStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="technologyTransferProgress != null">
|
|
|
+ technology_transfer_progress = #{technologyTransferProgress,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="paymentStatus != null">
|
|
|
+ payment_status = #{paymentStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="liquidationStatus != null">
|
|
|
+ liquidation_status = #{liquidationStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orderFollow != null">
|
|
|
+ order_follow = #{orderFollow,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orderChannel != null">
|
|
|
+ order_channel = #{orderChannel,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where order_no = #{orderNo,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrder">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Sat Dec 23 15:43:40 CST 2017.
|
|
|
+ -->
|
|
|
+ update t_order
|
|
|
+ set creater = #{creater,jdbcType=VARCHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ buyer_id = #{buyerId,jdbcType=VARCHAR},
|
|
|
+ seller_id = #{sellerId,jdbcType=VARCHAR},
|
|
|
+ commodity_id = #{commodityId,jdbcType=VARCHAR},
|
|
|
+ commodity_type = #{commodityType,jdbcType=INTEGER},
|
|
|
+ first_payment = #{firstPayment,jdbcType=DECIMAL},
|
|
|
+ total_payment = #{totalPayment,jdbcType=DECIMAL},
|
|
|
+ brokerage_amount = #{brokerageAmount,jdbcType=DECIMAL},
|
|
|
+ brokerage_proportion = #{brokerageProportion,jdbcType=DECIMAL},
|
|
|
+ actually_first_payment = #{actuallyFirstPayment,jdbcType=DECIMAL},
|
|
|
+ actually_total_payment = #{actuallyTotalPayment,jdbcType=DECIMAL},
|
|
|
+ actually_brokerage_amount = #{actuallyBrokerageAmount,jdbcType=DECIMAL},
|
|
|
+ delete_sign = #{deleteSign,jdbcType=BIT},
|
|
|
+ order_status = #{orderStatus,jdbcType=INTEGER},
|
|
|
+ intention_status = #{intentionStatus,jdbcType=INTEGER},
|
|
|
+ trading_status = #{tradingStatus,jdbcType=INTEGER},
|
|
|
+ technology_transfer_progress = #{technologyTransferProgress,jdbcType=INTEGER},
|
|
|
+ payment_status = #{paymentStatus,jdbcType=INTEGER},
|
|
|
+ liquidation_status = #{liquidationStatus,jdbcType=INTEGER},
|
|
|
+ order_follow = #{orderFollow,jdbcType=VARCHAR},
|
|
|
+ order_channel = #{orderChannel,jdbcType=INTEGER}
|
|
|
+ where order_no = #{orderNo,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
+</mapper>
|