|
|
@@ -4,6 +4,7 @@
|
|
|
<resultMap id="BaseResultMap" type="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
+ <result column="type" jdbcType="INTEGER" property="type" />
|
|
|
<result column="identity" jdbcType="INTEGER" property="identity" />
|
|
|
<result column="channel" jdbcType="VARCHAR" property="channel" />
|
|
|
<result column="layer_type" jdbcType="VARCHAR" property="layerType" />
|
|
|
@@ -79,9 +80,9 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, `name`, `identity`, channel, layer_type, contact_name, tel_num, price, `password`,
|
|
|
- token, token_expire_timestamp, reply_secret, `status`, create_account, create_timestamp,
|
|
|
- update_account, update_timestamp
|
|
|
+ id, `name`, `type`, `identity`, channel, layer_type, contact_name, tel_num, price,
|
|
|
+ `password`, token, token_expire_timestamp, reply_secret, `status`, create_account,
|
|
|
+ create_timestamp, update_account, update_timestamp
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccountExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -117,18 +118,20 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
|
- insert into content_platform_account (id, `name`, `identity`,
|
|
|
- channel, layer_type, contact_name,
|
|
|
- tel_num, price, `password`,
|
|
|
- token, token_expire_timestamp, reply_secret,
|
|
|
- `status`, create_account, create_timestamp,
|
|
|
- update_account, update_timestamp)
|
|
|
- values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{identity,jdbcType=INTEGER},
|
|
|
- #{channel,jdbcType=VARCHAR}, #{layerType,jdbcType=VARCHAR}, #{contactName,jdbcType=VARCHAR},
|
|
|
- #{telNum,jdbcType=VARCHAR}, #{price,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
|
|
- #{token,jdbcType=VARCHAR}, #{tokenExpireTimestamp,jdbcType=BIGINT}, #{replySecret,jdbcType=VARCHAR},
|
|
|
- #{status,jdbcType=INTEGER}, #{createAccount,jdbcType=VARCHAR}, #{createTimestamp,jdbcType=BIGINT},
|
|
|
- #{updateAccount,jdbcType=VARCHAR}, #{updateTimestamp,jdbcType=BIGINT})
|
|
|
+ insert into content_platform_account (id, `name`, `type`,
|
|
|
+ `identity`, channel, layer_type,
|
|
|
+ contact_name, tel_num, price,
|
|
|
+ `password`, token, token_expire_timestamp,
|
|
|
+ reply_secret, `status`, create_account,
|
|
|
+ create_timestamp, update_account, update_timestamp
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
|
|
|
+ #{identity,jdbcType=INTEGER}, #{channel,jdbcType=VARCHAR}, #{layerType,jdbcType=VARCHAR},
|
|
|
+ #{contactName,jdbcType=VARCHAR}, #{telNum,jdbcType=VARCHAR}, #{price,jdbcType=VARCHAR},
|
|
|
+ #{password,jdbcType=VARCHAR}, #{token,jdbcType=VARCHAR}, #{tokenExpireTimestamp,jdbcType=BIGINT},
|
|
|
+ #{replySecret,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createAccount,jdbcType=VARCHAR},
|
|
|
+ #{createTimestamp,jdbcType=BIGINT}, #{updateAccount,jdbcType=VARCHAR}, #{updateTimestamp,jdbcType=BIGINT}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
|
insert into content_platform_account
|
|
|
@@ -139,6 +142,9 @@
|
|
|
<if test="name != null">
|
|
|
`name`,
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ `type`,
|
|
|
+ </if>
|
|
|
<if test="identity != null">
|
|
|
`identity`,
|
|
|
</if>
|
|
|
@@ -192,6 +198,9 @@
|
|
|
<if test="name != null">
|
|
|
#{name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="identity != null">
|
|
|
#{identity,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -254,6 +263,9 @@
|
|
|
<if test="record.name != null">
|
|
|
`name` = #{record.name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.type != null">
|
|
|
+ `type` = #{record.type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.identity != null">
|
|
|
`identity` = #{record.identity,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -308,6 +320,7 @@
|
|
|
update content_platform_account
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
`name` = #{record.name,jdbcType=VARCHAR},
|
|
|
+ `type` = #{record.type,jdbcType=INTEGER},
|
|
|
`identity` = #{record.identity,jdbcType=INTEGER},
|
|
|
channel = #{record.channel,jdbcType=VARCHAR},
|
|
|
layer_type = #{record.layerType,jdbcType=VARCHAR},
|
|
|
@@ -333,6 +346,9 @@
|
|
|
<if test="name != null">
|
|
|
`name` = #{name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="identity != null">
|
|
|
`identity` = #{identity,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -384,6 +400,7 @@
|
|
|
<update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
|
|
|
update content_platform_account
|
|
|
set `name` = #{name,jdbcType=VARCHAR},
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
|
`identity` = #{identity,jdbcType=INTEGER},
|
|
|
channel = #{channel,jdbcType=VARCHAR},
|
|
|
layer_type = #{layerType,jdbcType=VARCHAR},
|