|
@@ -2,8 +2,9 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="cn.kdan.pdf.backend.core.mapper.CancelMemberMapper">
|
|
|
<resultMap id="BaseResultMap" type="cn.kdan.pdf.backend.core.model.CancelMember">
|
|
|
- <id column="id" jdbcType="INTEGER" property="id" />
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="member_account" jdbcType="VARCHAR" property="memberAccount" />
|
|
|
+ <result column="third_account" jdbcType="VARCHAR" property="thirdAccount" />
|
|
|
<result column="cancel_reason" jdbcType="VARCHAR" property="cancelReason" />
|
|
|
<result column="count" jdbcType="INTEGER" property="count" />
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
@@ -68,7 +69,7 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, member_account, cancel_reason, `count`, created_at, updated_at
|
|
|
+ id, member_account, third_account, cancel_reason, `count`, created_at, updated_at
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="cn.kdan.pdf.backend.core.model.CancelMemberExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -84,15 +85,15 @@
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from cancel_member
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
delete from cancel_member
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<delete id="deleteByExample" parameterType="cn.kdan.pdf.backend.core.model.CancelMemberExample">
|
|
|
delete from cancel_member
|
|
@@ -101,12 +102,12 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="cn.kdan.pdf.backend.core.model.CancelMember">
|
|
|
- insert into cancel_member (id, member_account, cancel_reason,
|
|
|
- `count`, created_at, updated_at
|
|
|
- )
|
|
|
- values (#{id,jdbcType=INTEGER}, #{memberAccount,jdbcType=VARCHAR}, #{cancelReason,jdbcType=VARCHAR},
|
|
|
- #{count,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}
|
|
|
- )
|
|
|
+ insert into cancel_member (id, member_account, third_account,
|
|
|
+ cancel_reason, `count`, created_at,
|
|
|
+ updated_at)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{memberAccount,jdbcType=VARCHAR}, #{thirdAccount,jdbcType=VARCHAR},
|
|
|
+ #{cancelReason,jdbcType=VARCHAR}, #{count,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ #{updatedAt,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="cn.kdan.pdf.backend.core.model.CancelMember">
|
|
|
insert into cancel_member
|
|
@@ -117,6 +118,9 @@
|
|
|
<if test="memberAccount != null">
|
|
|
member_account,
|
|
|
</if>
|
|
|
+ <if test="thirdAccount != null">
|
|
|
+ third_account,
|
|
|
+ </if>
|
|
|
<if test="cancelReason != null">
|
|
|
cancel_reason,
|
|
|
</if>
|
|
@@ -132,11 +136,14 @@
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
- #{id,jdbcType=INTEGER},
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="memberAccount != null">
|
|
|
#{memberAccount,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="thirdAccount != null">
|
|
|
+ #{thirdAccount,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="cancelReason != null">
|
|
|
#{cancelReason,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -161,11 +168,14 @@
|
|
|
update cancel_member
|
|
|
<set>
|
|
|
<if test="record.id != null">
|
|
|
- id = #{record.id,jdbcType=INTEGER},
|
|
|
+ id = #{record.id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="record.memberAccount != null">
|
|
|
member_account = #{record.memberAccount,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.thirdAccount != null">
|
|
|
+ third_account = #{record.thirdAccount,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.cancelReason != null">
|
|
|
cancel_reason = #{record.cancelReason,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -185,8 +195,9 @@
|
|
|
</update>
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update cancel_member
|
|
|
- set id = #{record.id,jdbcType=INTEGER},
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
member_account = #{record.memberAccount,jdbcType=VARCHAR},
|
|
|
+ third_account = #{record.thirdAccount,jdbcType=VARCHAR},
|
|
|
cancel_reason = #{record.cancelReason,jdbcType=VARCHAR},
|
|
|
`count` = #{record.count,jdbcType=INTEGER},
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
@@ -201,6 +212,9 @@
|
|
|
<if test="memberAccount != null">
|
|
|
member_account = #{memberAccount,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="thirdAccount != null">
|
|
|
+ third_account = #{thirdAccount,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="cancelReason != null">
|
|
|
cancel_reason = #{cancelReason,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -214,16 +228,17 @@
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</set>
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="cn.kdan.pdf.backend.core.model.CancelMember">
|
|
|
update cancel_member
|
|
|
set member_account = #{memberAccount,jdbcType=VARCHAR},
|
|
|
+ third_account = #{thirdAccount,jdbcType=VARCHAR},
|
|
|
cancel_reason = #{cancelReason,jdbcType=VARCHAR},
|
|
|
`count` = #{count,jdbcType=INTEGER},
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<select id="selectByExampleWithRowbounds" parameterType="cn.kdan.pdf.backend.core.model.CancelMemberExample" resultMap="BaseResultMap">
|
|
|
select
|