|
@@ -4,6 +4,8 @@
|
|
<resultMap id="BaseResultMap" type="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
<resultMap id="BaseResultMap" type="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
|
+ <result column="identity" jdbcType="INTEGER" property="identity" />
|
|
|
|
+ <result column="channel" jdbcType="VARCHAR" property="channel" />
|
|
<result column="contact_name" jdbcType="VARCHAR" property="contactName" />
|
|
<result column="contact_name" jdbcType="VARCHAR" property="contactName" />
|
|
<result column="tel_num" jdbcType="VARCHAR" property="telNum" />
|
|
<result column="tel_num" jdbcType="VARCHAR" property="telNum" />
|
|
<result column="password" jdbcType="VARCHAR" property="password" />
|
|
<result column="password" jdbcType="VARCHAR" property="password" />
|
|
@@ -74,8 +76,8 @@
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
- id, `name`, contact_name, tel_num, `password`, token, token_expire_timestamp, `status`,
|
|
|
|
- create_account, create_timestamp, update_account, update_timestamp
|
|
|
|
|
|
+ id, `name`, `identity`, channel, contact_name, tel_num, `password`, token, token_expire_timestamp,
|
|
|
|
+ `status`, create_account, create_timestamp, update_account, update_timestamp
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccountExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccountExample" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
@@ -111,16 +113,16 @@
|
|
</if>
|
|
</if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
- insert into content_platform_account (id, `name`, contact_name,
|
|
|
|
- tel_num, `password`, token,
|
|
|
|
- token_expire_timestamp, `status`, create_account,
|
|
|
|
- create_timestamp, update_account, update_timestamp
|
|
|
|
- )
|
|
|
|
- values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{contactName,jdbcType=VARCHAR},
|
|
|
|
- #{telNum,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{token,jdbcType=VARCHAR},
|
|
|
|
- #{tokenExpireTimestamp,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}, #{createAccount,jdbcType=VARCHAR},
|
|
|
|
- #{createTimestamp,jdbcType=BIGINT}, #{updateAccount,jdbcType=VARCHAR}, #{updateTimestamp,jdbcType=BIGINT}
|
|
|
|
- )
|
|
|
|
|
|
+ insert into content_platform_account (id, `name`, `identity`,
|
|
|
|
+ channel, contact_name, tel_num,
|
|
|
|
+ `password`, token, token_expire_timestamp,
|
|
|
|
+ `status`, create_account, create_timestamp,
|
|
|
|
+ update_account, update_timestamp)
|
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{identity,jdbcType=INTEGER},
|
|
|
|
+ #{channel,jdbcType=VARCHAR}, #{contactName,jdbcType=VARCHAR}, #{telNum,jdbcType=VARCHAR},
|
|
|
|
+ #{password,jdbcType=VARCHAR}, #{token,jdbcType=VARCHAR}, #{tokenExpireTimestamp,jdbcType=BIGINT},
|
|
|
|
+ #{status,jdbcType=INTEGER}, #{createAccount,jdbcType=VARCHAR}, #{createTimestamp,jdbcType=BIGINT},
|
|
|
|
+ #{updateAccount,jdbcType=VARCHAR}, #{updateTimestamp,jdbcType=BIGINT})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
insert into content_platform_account
|
|
insert into content_platform_account
|
|
@@ -131,6 +133,12 @@
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
`name`,
|
|
`name`,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="identity != null">
|
|
|
|
+ `identity`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="channel != null">
|
|
|
|
+ channel,
|
|
|
|
+ </if>
|
|
<if test="contactName != null">
|
|
<if test="contactName != null">
|
|
contact_name,
|
|
contact_name,
|
|
</if>
|
|
</if>
|
|
@@ -169,6 +177,12 @@
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
#{name,jdbcType=VARCHAR},
|
|
#{name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="identity != null">
|
|
|
|
+ #{identity,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="channel != null">
|
|
|
|
+ #{channel,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="contactName != null">
|
|
<if test="contactName != null">
|
|
#{contactName,jdbcType=VARCHAR},
|
|
#{contactName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -216,6 +230,12 @@
|
|
<if test="record.name != null">
|
|
<if test="record.name != null">
|
|
`name` = #{record.name,jdbcType=VARCHAR},
|
|
`name` = #{record.name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.identity != null">
|
|
|
|
+ `identity` = #{record.identity,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.channel != null">
|
|
|
|
+ channel = #{record.channel,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="record.contactName != null">
|
|
<if test="record.contactName != null">
|
|
contact_name = #{record.contactName,jdbcType=VARCHAR},
|
|
contact_name = #{record.contactName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -255,6 +275,8 @@
|
|
update content_platform_account
|
|
update content_platform_account
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
`name` = #{record.name,jdbcType=VARCHAR},
|
|
`name` = #{record.name,jdbcType=VARCHAR},
|
|
|
|
+ `identity` = #{record.identity,jdbcType=INTEGER},
|
|
|
|
+ channel = #{record.channel,jdbcType=VARCHAR},
|
|
contact_name = #{record.contactName,jdbcType=VARCHAR},
|
|
contact_name = #{record.contactName,jdbcType=VARCHAR},
|
|
tel_num = #{record.telNum,jdbcType=VARCHAR},
|
|
tel_num = #{record.telNum,jdbcType=VARCHAR},
|
|
`password` = #{record.password,jdbcType=VARCHAR},
|
|
`password` = #{record.password,jdbcType=VARCHAR},
|
|
@@ -275,6 +297,12 @@
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
`name` = #{name,jdbcType=VARCHAR},
|
|
`name` = #{name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="identity != null">
|
|
|
|
+ `identity` = #{identity,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="channel != null">
|
|
|
|
+ channel = #{channel,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="contactName != null">
|
|
<if test="contactName != null">
|
|
contact_name = #{contactName,jdbcType=VARCHAR},
|
|
contact_name = #{contactName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -311,6 +339,8 @@
|
|
<update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
<update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
update content_platform_account
|
|
update content_platform_account
|
|
set `name` = #{name,jdbcType=VARCHAR},
|
|
set `name` = #{name,jdbcType=VARCHAR},
|
|
|
|
+ `identity` = #{identity,jdbcType=INTEGER},
|
|
|
|
+ channel = #{channel,jdbcType=VARCHAR},
|
|
contact_name = #{contactName,jdbcType=VARCHAR},
|
|
contact_name = #{contactName,jdbcType=VARCHAR},
|
|
tel_num = #{telNum,jdbcType=VARCHAR},
|
|
tel_num = #{telNum,jdbcType=VARCHAR},
|
|
`password` = #{password,jdbcType=VARCHAR},
|
|
`password` = #{password,jdbcType=VARCHAR},
|