| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493 |
- <?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.JtConsultOrderMapper">
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.JtConsultOrder">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Aug 16 09:19:56 CST 2018.
- -->
- <id column="order_no" jdbcType="VARCHAR" property="orderNo" />
- <result column="order_time" jdbcType="TIMESTAMP" property="orderTime" />
- <result column="aid" jdbcType="VARCHAR" property="aid" />
- <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="consult_type" jdbcType="INTEGER" property="consultType" />
- <result column="consult_price" jdbcType="DECIMAL" property="consultPrice" />
- <result column="discount_price" jdbcType="DECIMAL" property="discountPrice" />
- <result column="member_price" jdbcType="DECIMAL" property="memberPrice" />
- <result column="order_amount" jdbcType="DECIMAL" property="orderAmount" />
- <result column="pay_amount" jdbcType="DECIMAL" property="payAmount" />
- <result column="refund_amount" jdbcType="DECIMAL" property="refundAmount" />
- <result column="pay_type" jdbcType="INTEGER" property="payType" />
- <result column="order_status" jdbcType="INTEGER" property="orderStatus" />
- <result column="order_channel" jdbcType="INTEGER" property="orderChannel" />
- <result column="order_remarks" jdbcType="VARCHAR" property="orderRemarks" />
- <result column="delete_sign" jdbcType="INTEGER" property="deleteSign" />
- </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 Thu Aug 16 09:19:56 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 Thu Aug 16 09:19:56 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 Thu Aug 16 09:19:56 CST 2018.
- -->
- order_no, order_time, aid, update_time, buyer_id, seller_id, consult_type, consult_price,
- discount_price, member_price, order_amount, pay_amount, refund_amount, pay_type,
- order_status, order_channel, order_remarks, delete_sign
- </sql>
- <select id="selectByExample" parameterType="com.goafanti.common.model.JtConsultOrderExample" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Aug 16 09:19:56 CST 2018.
- -->
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from jt_consult_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.String" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Aug 16 09:19:56 CST 2018.
- -->
- select
- <include refid="Base_Column_List" />
- from jt_consult_order
- 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 Thu Aug 16 09:19:56 CST 2018.
- -->
- delete from jt_consult_order
- where order_no = #{orderNo,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.goafanti.common.model.JtConsultOrderExample">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Aug 16 09:19:56 CST 2018.
- -->
- delete from jt_consult_order
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.JtConsultOrder">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Aug 16 09:19:56 CST 2018.
- -->
- insert into jt_consult_order (order_no, order_time, aid,
- update_time, buyer_id, seller_id,
- consult_type, consult_price, discount_price,
- member_price, order_amount, pay_amount,
- refund_amount, pay_type, order_status,
- order_channel, order_remarks, delete_sign
- )
- values (#{orderNo,jdbcType=VARCHAR}, #{orderTime,jdbcType=TIMESTAMP}, #{aid,jdbcType=VARCHAR},
- #{updateTime,jdbcType=TIMESTAMP}, #{buyerId,jdbcType=VARCHAR}, #{sellerId,jdbcType=VARCHAR},
- #{consultType,jdbcType=INTEGER}, #{consultPrice,jdbcType=DECIMAL}, #{discountPrice,jdbcType=DECIMAL},
- #{memberPrice,jdbcType=DECIMAL}, #{orderAmount,jdbcType=DECIMAL}, #{payAmount,jdbcType=DECIMAL},
- #{refundAmount,jdbcType=DECIMAL}, #{payType,jdbcType=INTEGER}, #{orderStatus,jdbcType=INTEGER},
- #{orderChannel,jdbcType=INTEGER}, #{orderRemarks,jdbcType=VARCHAR}, #{deleteSign,jdbcType=INTEGER}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.JtConsultOrder">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Aug 16 09:19:56 CST 2018.
- -->
- insert into jt_consult_order
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="orderNo != null">
- order_no,
- </if>
- <if test="orderTime != null">
- order_time,
- </if>
- <if test="aid != null">
- aid,
- </if>
- <if test="updateTime != null">
- update_time,
- </if>
- <if test="buyerId != null">
- buyer_id,
- </if>
- <if test="sellerId != null">
- seller_id,
- </if>
- <if test="consultType != null">
- consult_type,
- </if>
- <if test="consultPrice != null">
- consult_price,
- </if>
- <if test="discountPrice != null">
- discount_price,
- </if>
- <if test="memberPrice != null">
- member_price,
- </if>
- <if test="orderAmount != null">
- order_amount,
- </if>
- <if test="payAmount != null">
- pay_amount,
- </if>
- <if test="refundAmount != null">
- refund_amount,
- </if>
- <if test="payType != null">
- pay_type,
- </if>
- <if test="orderStatus != null">
- order_status,
- </if>
- <if test="orderChannel != null">
- order_channel,
- </if>
- <if test="orderRemarks != null">
- order_remarks,
- </if>
- <if test="deleteSign != null">
- delete_sign,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="orderNo != null">
- #{orderNo,jdbcType=VARCHAR},
- </if>
- <if test="orderTime != null">
- #{orderTime,jdbcType=TIMESTAMP},
- </if>
- <if test="aid != null">
- #{aid,jdbcType=VARCHAR},
- </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="consultType != null">
- #{consultType,jdbcType=INTEGER},
- </if>
- <if test="consultPrice != null">
- #{consultPrice,jdbcType=DECIMAL},
- </if>
- <if test="discountPrice != null">
- #{discountPrice,jdbcType=DECIMAL},
- </if>
- <if test="memberPrice != null">
- #{memberPrice,jdbcType=DECIMAL},
- </if>
- <if test="orderAmount != null">
- #{orderAmount,jdbcType=DECIMAL},
- </if>
- <if test="payAmount != null">
- #{payAmount,jdbcType=DECIMAL},
- </if>
- <if test="refundAmount != null">
- #{refundAmount,jdbcType=DECIMAL},
- </if>
- <if test="payType != null">
- #{payType,jdbcType=INTEGER},
- </if>
- <if test="orderStatus != null">
- #{orderStatus,jdbcType=INTEGER},
- </if>
- <if test="orderChannel != null">
- #{orderChannel,jdbcType=INTEGER},
- </if>
- <if test="orderRemarks != null">
- #{orderRemarks,jdbcType=VARCHAR},
- </if>
- <if test="deleteSign != null">
- #{deleteSign,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.goafanti.common.model.JtConsultOrderExample" resultType="java.lang.Long">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Aug 16 09:19:56 CST 2018.
- -->
- select count(*) from jt_consult_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 Thu Aug 16 09:19:56 CST 2018.
- -->
- update jt_consult_order
- <set>
- <if test="record.orderNo != null">
- order_no = #{record.orderNo,jdbcType=VARCHAR},
- </if>
- <if test="record.orderTime != null">
- order_time = #{record.orderTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.aid != null">
- aid = #{record.aid,jdbcType=VARCHAR},
- </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.consultType != null">
- consult_type = #{record.consultType,jdbcType=INTEGER},
- </if>
- <if test="record.consultPrice != null">
- consult_price = #{record.consultPrice,jdbcType=DECIMAL},
- </if>
- <if test="record.discountPrice != null">
- discount_price = #{record.discountPrice,jdbcType=DECIMAL},
- </if>
- <if test="record.memberPrice != null">
- member_price = #{record.memberPrice,jdbcType=DECIMAL},
- </if>
- <if test="record.orderAmount != null">
- order_amount = #{record.orderAmount,jdbcType=DECIMAL},
- </if>
- <if test="record.payAmount != null">
- pay_amount = #{record.payAmount,jdbcType=DECIMAL},
- </if>
- <if test="record.refundAmount != null">
- refund_amount = #{record.refundAmount,jdbcType=DECIMAL},
- </if>
- <if test="record.payType != null">
- pay_type = #{record.payType,jdbcType=INTEGER},
- </if>
- <if test="record.orderStatus != null">
- order_status = #{record.orderStatus,jdbcType=INTEGER},
- </if>
- <if test="record.orderChannel != null">
- order_channel = #{record.orderChannel,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>
- </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 Thu Aug 16 09:19:56 CST 2018.
- -->
- update jt_consult_order
- set order_no = #{record.orderNo,jdbcType=VARCHAR},
- order_time = #{record.orderTime,jdbcType=TIMESTAMP},
- aid = #{record.aid,jdbcType=VARCHAR},
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
- buyer_id = #{record.buyerId,jdbcType=VARCHAR},
- seller_id = #{record.sellerId,jdbcType=VARCHAR},
- consult_type = #{record.consultType,jdbcType=INTEGER},
- consult_price = #{record.consultPrice,jdbcType=DECIMAL},
- discount_price = #{record.discountPrice,jdbcType=DECIMAL},
- member_price = #{record.memberPrice,jdbcType=DECIMAL},
- order_amount = #{record.orderAmount,jdbcType=DECIMAL},
- pay_amount = #{record.payAmount,jdbcType=DECIMAL},
- refund_amount = #{record.refundAmount,jdbcType=DECIMAL},
- pay_type = #{record.payType,jdbcType=INTEGER},
- order_status = #{record.orderStatus,jdbcType=INTEGER},
- order_channel = #{record.orderChannel,jdbcType=INTEGER},
- order_remarks = #{record.orderRemarks,jdbcType=VARCHAR},
- delete_sign = #{record.deleteSign,jdbcType=INTEGER}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.JtConsultOrder">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Aug 16 09:19:56 CST 2018.
- -->
- update jt_consult_order
- <set>
- <if test="orderTime != null">
- order_time = #{orderTime,jdbcType=TIMESTAMP},
- </if>
- <if test="aid != null">
- aid = #{aid,jdbcType=VARCHAR},
- </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="consultType != null">
- consult_type = #{consultType,jdbcType=INTEGER},
- </if>
- <if test="consultPrice != null">
- consult_price = #{consultPrice,jdbcType=DECIMAL},
- </if>
- <if test="discountPrice != null">
- discount_price = #{discountPrice,jdbcType=DECIMAL},
- </if>
- <if test="memberPrice != null">
- member_price = #{memberPrice,jdbcType=DECIMAL},
- </if>
- <if test="orderAmount != null">
- order_amount = #{orderAmount,jdbcType=DECIMAL},
- </if>
- <if test="payAmount != null">
- pay_amount = #{payAmount,jdbcType=DECIMAL},
- </if>
- <if test="refundAmount != null">
- refund_amount = #{refundAmount,jdbcType=DECIMAL},
- </if>
- <if test="payType != null">
- pay_type = #{payType,jdbcType=INTEGER},
- </if>
- <if test="orderStatus != null">
- order_status = #{orderStatus,jdbcType=INTEGER},
- </if>
- <if test="orderChannel != null">
- order_channel = #{orderChannel,jdbcType=INTEGER},
- </if>
- <if test="orderRemarks != null">
- order_remarks = #{orderRemarks,jdbcType=VARCHAR},
- </if>
- <if test="deleteSign != null">
- delete_sign = #{deleteSign,jdbcType=INTEGER},
- </if>
- </set>
- where order_no = #{orderNo,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.JtConsultOrder">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Aug 16 09:19:56 CST 2018.
- -->
- update jt_consult_order
- set order_time = #{orderTime,jdbcType=TIMESTAMP},
- aid = #{aid,jdbcType=VARCHAR},
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- buyer_id = #{buyerId,jdbcType=VARCHAR},
- seller_id = #{sellerId,jdbcType=VARCHAR},
- consult_type = #{consultType,jdbcType=INTEGER},
- consult_price = #{consultPrice,jdbcType=DECIMAL},
- discount_price = #{discountPrice,jdbcType=DECIMAL},
- member_price = #{memberPrice,jdbcType=DECIMAL},
- order_amount = #{orderAmount,jdbcType=DECIMAL},
- pay_amount = #{payAmount,jdbcType=DECIMAL},
- refund_amount = #{refundAmount,jdbcType=DECIMAL},
- pay_type = #{payType,jdbcType=INTEGER},
- order_status = #{orderStatus,jdbcType=INTEGER},
- order_channel = #{orderChannel,jdbcType=INTEGER},
- order_remarks = #{orderRemarks,jdbcType=VARCHAR},
- delete_sign = #{deleteSign,jdbcType=INTEGER}
- where order_no = #{orderNo,jdbcType=VARCHAR}
- </update>
- </mapper>
|