|
@@ -6,18 +6,16 @@
|
|
|
<result column="member_id" jdbcType="VARCHAR" property="memberId" />
|
|
|
<result column="subscription_id" jdbcType="VARCHAR" property="subscriptionId" />
|
|
|
<result column="payment" jdbcType="INTEGER" property="payment" />
|
|
|
+ <result column="page_pay_url" jdbcType="VARCHAR" property="pagePayUrl" />
|
|
|
<result column="qrcode_url" jdbcType="VARCHAR" property="qrcodeUrl" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
+ <result column="result" jdbcType="VARCHAR" property="result" />
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
|
|
|
<result column="trade_no" jdbcType="DECIMAL" property="tradeNo" />
|
|
|
+ <result column="android_sign" jdbcType="VARCHAR" property="androidSign" />
|
|
|
<result column="price" jdbcType="REAL" property="price" />
|
|
|
- </resultMap>
|
|
|
- <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="cn.kdan.pdf.backend.core.model.OrdersWithBLOBs">
|
|
|
- <result column="page_pay_url" jdbcType="LONGVARCHAR" property="pagePayUrl" />
|
|
|
- <result column="result" jdbcType="LONGVARCHAR" property="result" />
|
|
|
- <result column="android_sign" jdbcType="LONGVARCHAR" property="androidSign" />
|
|
|
- <result column="android_sign2" jdbcType="LONGVARCHAR" property="androidSign2" />
|
|
|
+ <result column="android_sign2" jdbcType="VARCHAR" property="androidSign2" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -78,28 +76,9 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, member_id, subscription_id, payment, qrcode_url, `status`, created_at, updated_at,
|
|
|
- trade_no, price
|
|
|
- </sql>
|
|
|
- <sql id="Blob_Column_List">
|
|
|
- page_pay_url, `result`, android_sign, android_sign2
|
|
|
+ id, member_id, subscription_id, payment, page_pay_url, qrcode_url, `status`, `result`,
|
|
|
+ created_at, updated_at, trade_no, android_sign, price, android_sign2
|
|
|
</sql>
|
|
|
- <select id="selectByExampleWithBLOBs" parameterType="cn.kdan.pdf.backend.core.model.OrdersExample" resultMap="ResultMapWithBLOBs">
|
|
|
- select
|
|
|
- <if test="distinct">
|
|
|
- distinct
|
|
|
- </if>
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- ,
|
|
|
- <include refid="Blob_Column_List" />
|
|
|
- from orders
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- <if test="orderByClause != null">
|
|
|
- order by ${orderByClause}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
<select id="selectByExample" parameterType="cn.kdan.pdf.backend.core.model.OrdersExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<if test="distinct">
|
|
@@ -114,11 +93,9 @@
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
- ,
|
|
|
- <include refid="Blob_Column_List" />
|
|
|
from orders
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
@@ -132,19 +109,19 @@
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
</if>
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="cn.kdan.pdf.backend.core.model.OrdersWithBLOBs">
|
|
|
+ <insert id="insert" parameterType="cn.kdan.pdf.backend.core.model.Orders">
|
|
|
insert into orders (id, member_id, subscription_id,
|
|
|
- payment, qrcode_url, `status`,
|
|
|
- created_at, updated_at, trade_no,
|
|
|
- price, page_pay_url, `result`,
|
|
|
- android_sign, android_sign2)
|
|
|
+ payment, page_pay_url, qrcode_url,
|
|
|
+ `status`, `result`, created_at,
|
|
|
+ updated_at, trade_no, android_sign,
|
|
|
+ price, android_sign2)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR}, #{subscriptionId,jdbcType=VARCHAR},
|
|
|
- #{payment,jdbcType=INTEGER}, #{qrcodeUrl,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
- #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{tradeNo,jdbcType=DECIMAL},
|
|
|
- #{price,jdbcType=REAL}, #{pagePayUrl,jdbcType=LONGVARCHAR}, #{result,jdbcType=LONGVARCHAR},
|
|
|
- #{androidSign,jdbcType=LONGVARCHAR}, #{androidSign2,jdbcType=LONGVARCHAR})
|
|
|
+ #{payment,jdbcType=INTEGER}, #{pagePayUrl,jdbcType=VARCHAR}, #{qrcodeUrl,jdbcType=VARCHAR},
|
|
|
+ #{status,jdbcType=INTEGER}, #{result,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ #{updatedAt,jdbcType=TIMESTAMP}, #{tradeNo,jdbcType=DECIMAL}, #{androidSign,jdbcType=VARCHAR},
|
|
|
+ #{price,jdbcType=REAL}, #{androidSign2,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="cn.kdan.pdf.backend.core.model.OrdersWithBLOBs">
|
|
|
+ <insert id="insertSelective" parameterType="cn.kdan.pdf.backend.core.model.Orders">
|
|
|
insert into orders
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
@@ -159,12 +136,18 @@
|
|
|
<if test="payment != null">
|
|
|
payment,
|
|
|
</if>
|
|
|
+ <if test="pagePayUrl != null">
|
|
|
+ page_pay_url,
|
|
|
+ </if>
|
|
|
<if test="qrcodeUrl != null">
|
|
|
qrcode_url,
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
`status`,
|
|
|
</if>
|
|
|
+ <if test="result != null">
|
|
|
+ `result`,
|
|
|
+ </if>
|
|
|
<if test="createdAt != null">
|
|
|
created_at,
|
|
|
</if>
|
|
@@ -174,18 +157,12 @@
|
|
|
<if test="tradeNo != null">
|
|
|
trade_no,
|
|
|
</if>
|
|
|
- <if test="price != null">
|
|
|
- price,
|
|
|
- </if>
|
|
|
- <if test="pagePayUrl != null">
|
|
|
- page_pay_url,
|
|
|
- </if>
|
|
|
- <if test="result != null">
|
|
|
- `result`,
|
|
|
- </if>
|
|
|
<if test="androidSign != null">
|
|
|
android_sign,
|
|
|
</if>
|
|
|
+ <if test="price != null">
|
|
|
+ price,
|
|
|
+ </if>
|
|
|
<if test="androidSign2 != null">
|
|
|
android_sign2,
|
|
|
</if>
|
|
@@ -203,12 +180,18 @@
|
|
|
<if test="payment != null">
|
|
|
#{payment,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="pagePayUrl != null">
|
|
|
+ #{pagePayUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="qrcodeUrl != null">
|
|
|
#{qrcodeUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="result != null">
|
|
|
+ #{result,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="createdAt != null">
|
|
|
#{createdAt,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -218,20 +201,14 @@
|
|
|
<if test="tradeNo != null">
|
|
|
#{tradeNo,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="androidSign != null">
|
|
|
+ #{androidSign,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="price != null">
|
|
|
#{price,jdbcType=REAL},
|
|
|
</if>
|
|
|
- <if test="pagePayUrl != null">
|
|
|
- #{pagePayUrl,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
- <if test="result != null">
|
|
|
- #{result,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
- <if test="androidSign != null">
|
|
|
- #{androidSign,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
<if test="androidSign2 != null">
|
|
|
- #{androidSign2,jdbcType=LONGVARCHAR},
|
|
|
+ #{androidSign2,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -256,12 +233,18 @@
|
|
|
<if test="record.payment != null">
|
|
|
payment = #{record.payment,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.pagePayUrl != null">
|
|
|
+ page_pay_url = #{record.pagePayUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.qrcodeUrl != null">
|
|
|
qrcode_url = #{record.qrcodeUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="record.status != null">
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.result != null">
|
|
|
+ `result` = #{record.result,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.createdAt != null">
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -271,63 +254,41 @@
|
|
|
<if test="record.tradeNo != null">
|
|
|
trade_no = #{record.tradeNo,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="record.androidSign != null">
|
|
|
+ android_sign = #{record.androidSign,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.price != null">
|
|
|
price = #{record.price,jdbcType=REAL},
|
|
|
</if>
|
|
|
- <if test="record.pagePayUrl != null">
|
|
|
- page_pay_url = #{record.pagePayUrl,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.result != null">
|
|
|
- `result` = #{record.result,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.androidSign != null">
|
|
|
- android_sign = #{record.androidSign,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
<if test="record.androidSign2 != null">
|
|
|
- android_sign2 = #{record.androidSign2,jdbcType=LONGVARCHAR},
|
|
|
+ android_sign2 = #{record.androidSign2,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
- <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
- update orders
|
|
|
- set id = #{record.id,jdbcType=VARCHAR},
|
|
|
- member_id = #{record.memberId,jdbcType=VARCHAR},
|
|
|
- subscription_id = #{record.subscriptionId,jdbcType=VARCHAR},
|
|
|
- payment = #{record.payment,jdbcType=INTEGER},
|
|
|
- qrcode_url = #{record.qrcodeUrl,jdbcType=VARCHAR},
|
|
|
- `status` = #{record.status,jdbcType=INTEGER},
|
|
|
- created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
- updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
- trade_no = #{record.tradeNo,jdbcType=DECIMAL},
|
|
|
- price = #{record.price,jdbcType=REAL},
|
|
|
- page_pay_url = #{record.pagePayUrl,jdbcType=LONGVARCHAR},
|
|
|
- `result` = #{record.result,jdbcType=LONGVARCHAR},
|
|
|
- android_sign = #{record.androidSign,jdbcType=LONGVARCHAR},
|
|
|
- android_sign2 = #{record.androidSign2,jdbcType=LONGVARCHAR}
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </update>
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update orders
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
member_id = #{record.memberId,jdbcType=VARCHAR},
|
|
|
subscription_id = #{record.subscriptionId,jdbcType=VARCHAR},
|
|
|
payment = #{record.payment,jdbcType=INTEGER},
|
|
|
+ page_pay_url = #{record.pagePayUrl,jdbcType=VARCHAR},
|
|
|
qrcode_url = #{record.qrcodeUrl,jdbcType=VARCHAR},
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
+ `result` = #{record.result,jdbcType=VARCHAR},
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
trade_no = #{record.tradeNo,jdbcType=DECIMAL},
|
|
|
- price = #{record.price,jdbcType=REAL}
|
|
|
+ android_sign = #{record.androidSign,jdbcType=VARCHAR},
|
|
|
+ price = #{record.price,jdbcType=REAL},
|
|
|
+ android_sign2 = #{record.androidSign2,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="cn.kdan.pdf.backend.core.model.OrdersWithBLOBs">
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="cn.kdan.pdf.backend.core.model.Orders">
|
|
|
update orders
|
|
|
<set>
|
|
|
<if test="memberId != null">
|
|
@@ -339,12 +300,18 @@
|
|
|
<if test="payment != null">
|
|
|
payment = #{payment,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="pagePayUrl != null">
|
|
|
+ page_pay_url = #{pagePayUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="qrcodeUrl != null">
|
|
|
qrcode_url = #{qrcodeUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="result != null">
|
|
|
+ `result` = #{result,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="createdAt != null">
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -354,70 +321,35 @@
|
|
|
<if test="tradeNo != null">
|
|
|
trade_no = #{tradeNo,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="androidSign != null">
|
|
|
+ android_sign = #{androidSign,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="price != null">
|
|
|
price = #{price,jdbcType=REAL},
|
|
|
</if>
|
|
|
- <if test="pagePayUrl != null">
|
|
|
- page_pay_url = #{pagePayUrl,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
- <if test="result != null">
|
|
|
- `result` = #{result,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
- <if test="androidSign != null">
|
|
|
- android_sign = #{androidSign,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
<if test="androidSign2 != null">
|
|
|
- android_sign2 = #{androidSign2,jdbcType=LONGVARCHAR},
|
|
|
+ android_sign2 = #{androidSign2,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="cn.kdan.pdf.backend.core.model.OrdersWithBLOBs">
|
|
|
- update orders
|
|
|
- set member_id = #{memberId,jdbcType=VARCHAR},
|
|
|
- subscription_id = #{subscriptionId,jdbcType=VARCHAR},
|
|
|
- payment = #{payment,jdbcType=INTEGER},
|
|
|
- qrcode_url = #{qrcodeUrl,jdbcType=VARCHAR},
|
|
|
- `status` = #{status,jdbcType=INTEGER},
|
|
|
- created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
- updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
- trade_no = #{tradeNo,jdbcType=DECIMAL},
|
|
|
- price = #{price,jdbcType=REAL},
|
|
|
- page_pay_url = #{pagePayUrl,jdbcType=LONGVARCHAR},
|
|
|
- `result` = #{result,jdbcType=LONGVARCHAR},
|
|
|
- android_sign = #{androidSign,jdbcType=LONGVARCHAR},
|
|
|
- android_sign2 = #{androidSign2,jdbcType=LONGVARCHAR}
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
<update id="updateByPrimaryKey" parameterType="cn.kdan.pdf.backend.core.model.Orders">
|
|
|
update orders
|
|
|
set member_id = #{memberId,jdbcType=VARCHAR},
|
|
|
subscription_id = #{subscriptionId,jdbcType=VARCHAR},
|
|
|
payment = #{payment,jdbcType=INTEGER},
|
|
|
+ page_pay_url = #{pagePayUrl,jdbcType=VARCHAR},
|
|
|
qrcode_url = #{qrcodeUrl,jdbcType=VARCHAR},
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
+ `result` = #{result,jdbcType=VARCHAR},
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
trade_no = #{tradeNo,jdbcType=DECIMAL},
|
|
|
- price = #{price,jdbcType=REAL}
|
|
|
+ android_sign = #{androidSign,jdbcType=VARCHAR},
|
|
|
+ price = #{price,jdbcType=REAL},
|
|
|
+ android_sign2 = #{androidSign2,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
- <select id="selectByExampleWithBLOBsWithRowbounds" parameterType="cn.kdan.pdf.backend.core.model.OrdersExample" resultMap="ResultMapWithBLOBs">
|
|
|
- select
|
|
|
- <if test="distinct">
|
|
|
- distinct
|
|
|
- </if>
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- ,
|
|
|
- <include refid="Blob_Column_List" />
|
|
|
- from orders
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- <if test="orderByClause != null">
|
|
|
- order by ${orderByClause}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
<select id="selectByExampleWithRowbounds" parameterType="cn.kdan.pdf.backend.core.model.OrdersExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<if test="distinct">
|