|
@@ -5,9 +5,10 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
- <id column="merchant_id" jdbcType="INTEGER" property="merchantId" />
|
|
|
|
|
|
+ <id column="id" jdbcType="BIGINT" property="id" />
|
|
|
|
+ <result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
|
|
<result column="transaction_id" jdbcType="VARCHAR" property="transactionId" />
|
|
<result column="transaction_id" jdbcType="VARCHAR" property="transactionId" />
|
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
<result column="money" jdbcType="DECIMAL" property="money" />
|
|
<result column="money" jdbcType="DECIMAL" property="money" />
|
|
@@ -23,12 +24,13 @@
|
|
<result column="openid" jdbcType="VARCHAR" property="openid" />
|
|
<result column="openid" jdbcType="VARCHAR" property="openid" />
|
|
<result column="ip" jdbcType="VARCHAR" property="ip" />
|
|
<result column="ip" jdbcType="VARCHAR" property="ip" />
|
|
<result column="user_agent" jdbcType="VARCHAR" property="userAgent" />
|
|
<result column="user_agent" jdbcType="VARCHAR" property="userAgent" />
|
|
|
|
+ <result column="insert_time" jdbcType="TIMESTAMP" property="insertTime" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
<where>
|
|
<where>
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -62,7 +64,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
<where>
|
|
<where>
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
@@ -96,16 +98,17 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
- merchant_id, transaction_id, type, money, state, create_time, finish_time, book_name,
|
|
|
|
- referral_url, user_id, channel_id, subscribe_time, user_createtime, openid, ip, user_agent
|
|
|
|
|
|
+ id, merchant_id, transaction_id, type, money, state, create_time, finish_time, book_name,
|
|
|
|
+ referral_url, user_id, channel_id, subscribe_time, user_createtime, openid, ip, user_agent,
|
|
|
|
+ insert_time
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.book.dao.polardb.pojo.example.SunOrderExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.book.dao.polardb.pojo.example.SunOrderExample" resultMap="BaseResultMap">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -132,7 +135,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<if test="example != null and example.distinct">
|
|
<if test="example != null and example.distinct">
|
|
@@ -164,22 +167,22 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
from sun_order
|
|
from sun_order
|
|
- where merchant_id = #{merchantId,jdbcType=INTEGER}
|
|
|
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
</select>
|
|
</select>
|
|
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<choose>
|
|
<choose>
|
|
@@ -193,22 +196,22 @@
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
from sun_order
|
|
from sun_order
|
|
- where merchant_id = #{merchantId,jdbcType=INTEGER}
|
|
|
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
</select>
|
|
</select>
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
delete from sun_order
|
|
delete from sun_order
|
|
- where merchant_id = #{merchantId,jdbcType=INTEGER}
|
|
|
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
</delete>
|
|
</delete>
|
|
<delete id="deleteByExample" parameterType="com.book.dao.polardb.pojo.example.SunOrderExample">
|
|
<delete id="deleteByExample" parameterType="com.book.dao.polardb.pojo.example.SunOrderExample">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
delete from sun_order
|
|
delete from sun_order
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -219,26 +222,28 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
- insert into sun_order (merchant_id, transaction_id, type,
|
|
|
|
- money, state, create_time,
|
|
|
|
- finish_time, book_name, referral_url,
|
|
|
|
- user_id, channel_id, subscribe_time,
|
|
|
|
- user_createtime, openid, ip,
|
|
|
|
- user_agent)
|
|
|
|
- values (#{merchantId,jdbcType=INTEGER}, #{transactionId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
|
|
|
|
- #{money,jdbcType=DECIMAL}, #{state,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{finishTime,jdbcType=TIMESTAMP}, #{bookName,jdbcType=VARCHAR}, #{referralUrl,jdbcType=VARCHAR},
|
|
|
|
- #{userId,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR}, #{subscribeTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{userCreatetime,jdbcType=TIMESTAMP}, #{openid,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR},
|
|
|
|
- #{userAgent,jdbcType=VARCHAR})
|
|
|
|
|
|
+ insert into sun_order (id, merchant_id, transaction_id,
|
|
|
|
+ type, money, state,
|
|
|
|
+ create_time, finish_time, book_name,
|
|
|
|
+ referral_url, user_id, channel_id,
|
|
|
|
+ subscribe_time, user_createtime, openid,
|
|
|
|
+ ip, user_agent, insert_time
|
|
|
|
+ )
|
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{merchantId,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR},
|
|
|
|
+ #{type,jdbcType=VARCHAR}, #{money,jdbcType=DECIMAL}, #{state,jdbcType=VARCHAR},
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, #{bookName,jdbcType=VARCHAR},
|
|
|
|
+ #{referralUrl,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR},
|
|
|
|
+ #{subscribeTime,jdbcType=TIMESTAMP}, #{userCreatetime,jdbcType=TIMESTAMP}, #{openid,jdbcType=VARCHAR},
|
|
|
|
+ #{ip,jdbcType=VARCHAR}, #{userAgent,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}
|
|
|
|
+ )
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="map">
|
|
<insert id="insertSelective" parameterType="map">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
insert into sun_order
|
|
insert into sun_order
|
|
<choose>
|
|
<choose>
|
|
@@ -249,6 +254,9 @@
|
|
</when>
|
|
</when>
|
|
<otherwise>
|
|
<otherwise>
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="record.id != null">
|
|
|
|
+ id,
|
|
|
|
+ </if>
|
|
<if test="record.merchantId != null">
|
|
<if test="record.merchantId != null">
|
|
merchant_id,
|
|
merchant_id,
|
|
</if>
|
|
</if>
|
|
@@ -297,6 +305,9 @@
|
|
<if test="record.userAgent != null">
|
|
<if test="record.userAgent != null">
|
|
user_agent,
|
|
user_agent,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.insertTime != null">
|
|
|
|
+ insert_time,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="(" suffix=")" suffixOverrides="," />
|
|
<trim prefix="(" suffix=")" suffixOverrides="," />
|
|
</otherwise>
|
|
</otherwise>
|
|
@@ -310,8 +321,11 @@
|
|
</when>
|
|
</when>
|
|
<otherwise>
|
|
<otherwise>
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="record.id != null">
|
|
|
|
+ #{record.id,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
<if test="record.merchantId != null">
|
|
<if test="record.merchantId != null">
|
|
- #{record.merchantId,jdbcType=INTEGER},
|
|
|
|
|
|
+ #{record.merchantId,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="record.transactionId != null">
|
|
<if test="record.transactionId != null">
|
|
#{record.transactionId,jdbcType=VARCHAR},
|
|
#{record.transactionId,jdbcType=VARCHAR},
|
|
@@ -358,6 +372,9 @@
|
|
<if test="record.userAgent != null">
|
|
<if test="record.userAgent != null">
|
|
#{record.userAgent,jdbcType=VARCHAR},
|
|
#{record.userAgent,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.insertTime != null">
|
|
|
|
+ #{record.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
@@ -366,7 +383,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
select count(*) from sun_order
|
|
select count(*) from sun_order
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -377,7 +394,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
update sun_order
|
|
update sun_order
|
|
SET
|
|
SET
|
|
@@ -389,8 +406,11 @@
|
|
</when>
|
|
</when>
|
|
<otherwise>
|
|
<otherwise>
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
|
|
+ <if test="record.id != null">
|
|
|
|
+ id = #{record.id,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
<if test="record.merchantId != null">
|
|
<if test="record.merchantId != null">
|
|
- merchant_id = #{record.merchantId,jdbcType=INTEGER},
|
|
|
|
|
|
+ merchant_id = #{record.merchantId,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="record.transactionId != null">
|
|
<if test="record.transactionId != null">
|
|
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
|
|
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
|
|
@@ -437,6 +457,9 @@
|
|
<if test="record.userAgent != null">
|
|
<if test="record.userAgent != null">
|
|
user_agent = #{record.userAgent,jdbcType=VARCHAR},
|
|
user_agent = #{record.userAgent,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.insertTime != null">
|
|
|
|
+ insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
@@ -448,10 +471,11 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
update sun_order
|
|
update sun_order
|
|
- set merchant_id = #{record.merchantId,jdbcType=INTEGER},
|
|
|
|
|
|
+ set id = #{record.id,jdbcType=BIGINT},
|
|
|
|
+ merchant_id = #{record.merchantId,jdbcType=VARCHAR},
|
|
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
|
|
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
|
|
type = #{record.type,jdbcType=VARCHAR},
|
|
type = #{record.type,jdbcType=VARCHAR},
|
|
money = #{record.money,jdbcType=DECIMAL},
|
|
money = #{record.money,jdbcType=DECIMAL},
|
|
@@ -466,7 +490,8 @@
|
|
user_createtime = #{record.userCreatetime,jdbcType=TIMESTAMP},
|
|
user_createtime = #{record.userCreatetime,jdbcType=TIMESTAMP},
|
|
openid = #{record.openid,jdbcType=VARCHAR},
|
|
openid = #{record.openid,jdbcType=VARCHAR},
|
|
ip = #{record.ip,jdbcType=VARCHAR},
|
|
ip = #{record.ip,jdbcType=VARCHAR},
|
|
- user_agent = #{record.userAgent,jdbcType=VARCHAR}
|
|
|
|
|
|
+ user_agent = #{record.userAgent,jdbcType=VARCHAR},
|
|
|
|
+ insert_time = #{record.insertTime,jdbcType=TIMESTAMP}
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
@@ -475,7 +500,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
update sun_order
|
|
update sun_order
|
|
SET
|
|
SET
|
|
@@ -487,6 +512,9 @@
|
|
</when>
|
|
</when>
|
|
<otherwise>
|
|
<otherwise>
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
|
|
+ <if test="record.merchantId != null">
|
|
|
|
+ merchant_id = #{record.merchantId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="record.transactionId != null">
|
|
<if test="record.transactionId != null">
|
|
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
|
|
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -532,19 +560,23 @@
|
|
<if test="record.userAgent != null">
|
|
<if test="record.userAgent != null">
|
|
user_agent = #{record.userAgent,jdbcType=VARCHAR},
|
|
user_agent = #{record.userAgent,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.insertTime != null">
|
|
|
|
+ insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
- where merchant_id = #{record.merchantId,jdbcType=INTEGER}
|
|
|
|
|
|
+ where id = #{record.id,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.book.dao.polardb.entity.SunOrder">
|
|
<update id="updateByPrimaryKey" parameterType="com.book.dao.polardb.entity.SunOrder">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
update sun_order
|
|
update sun_order
|
|
- set transaction_id = #{transactionId,jdbcType=VARCHAR},
|
|
|
|
|
|
+ set merchant_id = #{merchantId,jdbcType=VARCHAR},
|
|
|
|
+ transaction_id = #{transactionId,jdbcType=VARCHAR},
|
|
type = #{type,jdbcType=VARCHAR},
|
|
type = #{type,jdbcType=VARCHAR},
|
|
money = #{money,jdbcType=DECIMAL},
|
|
money = #{money,jdbcType=DECIMAL},
|
|
state = #{state,jdbcType=VARCHAR},
|
|
state = #{state,jdbcType=VARCHAR},
|
|
@@ -558,14 +590,15 @@
|
|
user_createtime = #{userCreatetime,jdbcType=TIMESTAMP},
|
|
user_createtime = #{userCreatetime,jdbcType=TIMESTAMP},
|
|
openid = #{openid,jdbcType=VARCHAR},
|
|
openid = #{openid,jdbcType=VARCHAR},
|
|
ip = #{ip,jdbcType=VARCHAR},
|
|
ip = #{ip,jdbcType=VARCHAR},
|
|
- user_agent = #{userAgent,jdbcType=VARCHAR}
|
|
|
|
- where merchant_id = #{merchantId,jdbcType=INTEGER}
|
|
|
|
|
|
+ user_agent = #{userAgent,jdbcType=VARCHAR},
|
|
|
|
+ insert_time = #{insertTime,jdbcType=TIMESTAMP}
|
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
<select id="selectOneByExample" parameterType="com.book.dao.polardb.pojo.example.SunOrderExample" resultMap="BaseResultMap">
|
|
<select id="selectOneByExample" parameterType="com.book.dao.polardb.pojo.example.SunOrderExample" resultMap="BaseResultMap">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -582,7 +615,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
select
|
|
select
|
|
<choose>
|
|
<choose>
|
|
@@ -608,27 +641,28 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
insert into sun_order
|
|
insert into sun_order
|
|
- (merchant_id, transaction_id, type, money, state, create_time, finish_time, book_name,
|
|
|
|
|
|
+ (id, merchant_id, transaction_id, type, money, state, create_time, finish_time, book_name,
|
|
referral_url, user_id, channel_id, subscribe_time, user_createtime, openid, ip,
|
|
referral_url, user_id, channel_id, subscribe_time, user_createtime, openid, ip,
|
|
- user_agent)
|
|
|
|
|
|
+ user_agent, insert_time)
|
|
values
|
|
values
|
|
<foreach collection="list" item="item" separator=",">
|
|
<foreach collection="list" item="item" separator=",">
|
|
- (#{item.merchantId,jdbcType=INTEGER}, #{item.transactionId,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR},
|
|
|
|
- #{item.money,jdbcType=DECIMAL}, #{item.state,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{item.finishTime,jdbcType=TIMESTAMP}, #{item.bookName,jdbcType=VARCHAR}, #{item.referralUrl,jdbcType=VARCHAR},
|
|
|
|
- #{item.userId,jdbcType=VARCHAR}, #{item.channelId,jdbcType=VARCHAR}, #{item.subscribeTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{item.userCreatetime,jdbcType=TIMESTAMP}, #{item.openid,jdbcType=VARCHAR}, #{item.ip,jdbcType=VARCHAR},
|
|
|
|
- #{item.userAgent,jdbcType=VARCHAR})
|
|
|
|
|
|
+ (#{item.id,jdbcType=BIGINT}, #{item.merchantId,jdbcType=VARCHAR}, #{item.transactionId,jdbcType=VARCHAR},
|
|
|
|
+ #{item.type,jdbcType=VARCHAR}, #{item.money,jdbcType=DECIMAL}, #{item.state,jdbcType=VARCHAR},
|
|
|
|
+ #{item.createTime,jdbcType=TIMESTAMP}, #{item.finishTime,jdbcType=TIMESTAMP}, #{item.bookName,jdbcType=VARCHAR},
|
|
|
|
+ #{item.referralUrl,jdbcType=VARCHAR}, #{item.userId,jdbcType=VARCHAR}, #{item.channelId,jdbcType=VARCHAR},
|
|
|
|
+ #{item.subscribeTime,jdbcType=TIMESTAMP}, #{item.userCreatetime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.openid,jdbcType=VARCHAR}, #{item.ip,jdbcType=VARCHAR}, #{item.userAgent,jdbcType=VARCHAR},
|
|
|
|
+ #{item.insertTime,jdbcType=TIMESTAMP})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
<insert id="batchInsertSelective" parameterType="map">
|
|
<insert id="batchInsertSelective" parameterType="map">
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
insert into sun_order (
|
|
insert into sun_order (
|
|
<foreach collection="selective" item="column" separator=",">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
@@ -639,8 +673,11 @@
|
|
<foreach collection="list" item="item" separator=",">
|
|
<foreach collection="list" item="item" separator=",">
|
|
(
|
|
(
|
|
<foreach collection="selective" item="column" separator=",">
|
|
<foreach collection="selective" item="column" separator=",">
|
|
|
|
+ <if test="'id'.toString() == column.value">
|
|
|
|
+ #{item.id,jdbcType=BIGINT}
|
|
|
|
+ </if>
|
|
<if test="'merchant_id'.toString() == column.value">
|
|
<if test="'merchant_id'.toString() == column.value">
|
|
- #{item.merchantId,jdbcType=INTEGER}
|
|
|
|
|
|
+ #{item.merchantId,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
<if test="'transaction_id'.toString() == column.value">
|
|
<if test="'transaction_id'.toString() == column.value">
|
|
#{item.transactionId,jdbcType=VARCHAR}
|
|
#{item.transactionId,jdbcType=VARCHAR}
|
|
@@ -687,6 +724,9 @@
|
|
<if test="'user_agent'.toString() == column.value">
|
|
<if test="'user_agent'.toString() == column.value">
|
|
#{item.userAgent,jdbcType=VARCHAR}
|
|
#{item.userAgent,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="'insert_time'.toString() == column.value">
|
|
|
|
+ #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </if>
|
|
</foreach>
|
|
</foreach>
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
@@ -695,7 +735,7 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
insert into sun_order
|
|
insert into sun_order
|
|
<choose>
|
|
<choose>
|
|
@@ -706,6 +746,9 @@
|
|
</when>
|
|
</when>
|
|
<otherwise>
|
|
<otherwise>
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="record.id != null">
|
|
|
|
+ id,
|
|
|
|
+ </if>
|
|
<if test="record.merchantId != null">
|
|
<if test="record.merchantId != null">
|
|
merchant_id,
|
|
merchant_id,
|
|
</if>
|
|
</if>
|
|
@@ -754,6 +797,9 @@
|
|
<if test="record.userAgent != null">
|
|
<if test="record.userAgent != null">
|
|
user_agent,
|
|
user_agent,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.insertTime != null">
|
|
|
|
+ insert_time,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="(" suffix=")" suffixOverrides="," />
|
|
<trim prefix="(" suffix=")" suffixOverrides="," />
|
|
</otherwise>
|
|
</otherwise>
|
|
@@ -767,8 +813,11 @@
|
|
</when>
|
|
</when>
|
|
<otherwise>
|
|
<otherwise>
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="record.id != null">
|
|
|
|
+ #{record.id,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
<if test="record.merchantId != null">
|
|
<if test="record.merchantId != null">
|
|
- #{record.merchantId,jdbcType=INTEGER},
|
|
|
|
|
|
+ #{record.merchantId,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="record.transactionId != null">
|
|
<if test="record.transactionId != null">
|
|
#{record.transactionId,jdbcType=VARCHAR},
|
|
#{record.transactionId,jdbcType=VARCHAR},
|
|
@@ -815,6 +864,9 @@
|
|
<if test="record.userAgent != null">
|
|
<if test="record.userAgent != null">
|
|
#{record.userAgent,jdbcType=VARCHAR},
|
|
#{record.userAgent,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.insertTime != null">
|
|
|
|
+ #{record.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
@@ -827,8 +879,11 @@
|
|
</when>
|
|
</when>
|
|
<otherwise>
|
|
<otherwise>
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
|
|
+ <if test="record.id != null">
|
|
|
|
+ id = #{record.id,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
<if test="record.merchantId != null">
|
|
<if test="record.merchantId != null">
|
|
- merchant_id = #{record.merchantId,jdbcType=INTEGER},
|
|
|
|
|
|
+ merchant_id = #{record.merchantId,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="record.transactionId != null">
|
|
<if test="record.transactionId != null">
|
|
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
|
|
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
|
|
@@ -875,6 +930,9 @@
|
|
<if test="record.userAgent != null">
|
|
<if test="record.userAgent != null">
|
|
user_agent = #{record.userAgent,jdbcType=VARCHAR},
|
|
user_agent = #{record.userAgent,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.insertTime != null">
|
|
|
|
+ insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
@@ -883,21 +941,23 @@
|
|
<!--
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
- This element was generated on Wed Sep 29 15:11:11 CST 2021.
|
|
|
|
|
|
+ This element was generated on Thu Oct 14 11:32:34 CST 2021.
|
|
-->
|
|
-->
|
|
insert into sun_order
|
|
insert into sun_order
|
|
- (merchant_id, transaction_id, type, money, state, create_time, finish_time, book_name,
|
|
|
|
|
|
+ (id, merchant_id, transaction_id, type, money, state, create_time, finish_time, book_name,
|
|
referral_url, user_id, channel_id, subscribe_time, user_createtime, openid, ip,
|
|
referral_url, user_id, channel_id, subscribe_time, user_createtime, openid, ip,
|
|
- user_agent)
|
|
|
|
|
|
+ user_agent, insert_time)
|
|
values
|
|
values
|
|
- (#{merchantId,jdbcType=INTEGER}, #{transactionId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
|
|
|
|
- #{money,jdbcType=DECIMAL}, #{state,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{finishTime,jdbcType=TIMESTAMP}, #{bookName,jdbcType=VARCHAR}, #{referralUrl,jdbcType=VARCHAR},
|
|
|
|
- #{userId,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR}, #{subscribeTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{userCreatetime,jdbcType=TIMESTAMP}, #{openid,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR},
|
|
|
|
- #{userAgent,jdbcType=VARCHAR})
|
|
|
|
|
|
+ (#{id,jdbcType=BIGINT}, #{merchantId,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR},
|
|
|
|
+ #{type,jdbcType=VARCHAR}, #{money,jdbcType=DECIMAL}, #{state,jdbcType=VARCHAR},
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, #{bookName,jdbcType=VARCHAR},
|
|
|
|
+ #{referralUrl,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR},
|
|
|
|
+ #{subscribeTime,jdbcType=TIMESTAMP}, #{userCreatetime,jdbcType=TIMESTAMP}, #{openid,jdbcType=VARCHAR},
|
|
|
|
+ #{ip,jdbcType=VARCHAR}, #{userAgent,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}
|
|
|
|
+ )
|
|
on duplicate key update
|
|
on duplicate key update
|
|
- merchant_id = #{merchantId,jdbcType=INTEGER},
|
|
|
|
|
|
+ id = #{id,jdbcType=BIGINT},
|
|
|
|
+ merchant_id = #{merchantId,jdbcType=VARCHAR},
|
|
transaction_id = #{transactionId,jdbcType=VARCHAR},
|
|
transaction_id = #{transactionId,jdbcType=VARCHAR},
|
|
type = #{type,jdbcType=VARCHAR},
|
|
type = #{type,jdbcType=VARCHAR},
|
|
money = #{money,jdbcType=DECIMAL},
|
|
money = #{money,jdbcType=DECIMAL},
|
|
@@ -912,6 +972,7 @@
|
|
user_createtime = #{userCreatetime,jdbcType=TIMESTAMP},
|
|
user_createtime = #{userCreatetime,jdbcType=TIMESTAMP},
|
|
openid = #{openid,jdbcType=VARCHAR},
|
|
openid = #{openid,jdbcType=VARCHAR},
|
|
ip = #{ip,jdbcType=VARCHAR},
|
|
ip = #{ip,jdbcType=VARCHAR},
|
|
- user_agent = #{userAgent,jdbcType=VARCHAR}
|
|
|
|
|
|
+ user_agent = #{userAgent,jdbcType=VARCHAR},
|
|
|
|
+ insert_time = #{insertTime,jdbcType=TIMESTAMP}
|
|
</insert>
|
|
</insert>
|
|
</mapper>
|
|
</mapper>
|