|
@@ -7,12 +7,15 @@
|
|
|
<result column="gh_id" jdbcType="VARCHAR" property="ghId" />
|
|
|
<result column="publish_date" jdbcType="VARCHAR" property="publishDate" />
|
|
|
<result column="user_group_id" jdbcType="INTEGER" property="userGroupId" />
|
|
|
- <result column="content_ids" jdbcType="CHAR" property="contentIds" />
|
|
|
+ <result column="content_id" jdbcType="VARCHAR" property="contentId" />
|
|
|
<result column="push_id" jdbcType="VARCHAR" property="pushId" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
</resultMap>
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tzld.piaoquan.longarticle.model.po.longarticle.GroupSendResult">
|
|
|
+ <result column="url" jdbcType="LONGVARCHAR" property="url" />
|
|
|
+ </resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -72,9 +75,31 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, account_name, gh_id, publish_date, user_group_id, content_ids, push_id, `status`,
|
|
|
+ id, account_name, gh_id, publish_date, user_group_id, content_id, push_id, `status`,
|
|
|
create_time, update_time
|
|
|
</sql>
|
|
|
+ <sql id="Blob_Column_List">
|
|
|
+ url
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExampleWithBLOBs" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.GroupSendResultExample" resultMap="ResultMapWithBLOBs">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from long_articles_group_send_result
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ <if test="page != null">
|
|
|
+ limit #{page.offset} , #{page.pageSize}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.GroupSendResultExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<if test="distinct">
|
|
@@ -92,9 +117,11 @@
|
|
|
limit #{page.offset} , #{page.pageSize}
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
from long_articles_group_send_result
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</select>
|
|
@@ -110,13 +137,13 @@
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.GroupSendResult">
|
|
|
insert into long_articles_group_send_result (id, account_name, gh_id,
|
|
|
- publish_date, user_group_id, content_ids,
|
|
|
+ publish_date, user_group_id, content_id,
|
|
|
push_id, `status`, create_time,
|
|
|
- update_time)
|
|
|
+ update_time, url)
|
|
|
values (#{id,jdbcType=BIGINT}, #{accountName,jdbcType=VARCHAR}, #{ghId,jdbcType=VARCHAR},
|
|
|
- #{publishDate,jdbcType=VARCHAR}, #{userGroupId,jdbcType=INTEGER}, #{contentIds,jdbcType=CHAR},
|
|
|
+ #{publishDate,jdbcType=VARCHAR}, #{userGroupId,jdbcType=INTEGER}, #{contentId,jdbcType=VARCHAR},
|
|
|
#{pushId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{url,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.GroupSendResult">
|
|
|
insert into long_articles_group_send_result
|
|
@@ -136,8 +163,8 @@
|
|
|
<if test="userGroupId != null">
|
|
|
user_group_id,
|
|
|
</if>
|
|
|
- <if test="contentIds != null">
|
|
|
- content_ids,
|
|
|
+ <if test="contentId != null">
|
|
|
+ content_id,
|
|
|
</if>
|
|
|
<if test="pushId != null">
|
|
|
push_id,
|
|
@@ -151,6 +178,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
update_time,
|
|
|
</if>
|
|
|
+ <if test="url != null">
|
|
|
+ url,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
@@ -168,8 +198,8 @@
|
|
|
<if test="userGroupId != null">
|
|
|
#{userGroupId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="contentIds != null">
|
|
|
- #{contentIds,jdbcType=CHAR},
|
|
|
+ <if test="contentId != null">
|
|
|
+ #{contentId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="pushId != null">
|
|
|
#{pushId,jdbcType=VARCHAR},
|
|
@@ -183,6 +213,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="url != null">
|
|
|
+ #{url,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.GroupSendResultExample" resultType="java.lang.Long">
|
|
@@ -209,8 +242,8 @@
|
|
|
<if test="record.userGroupId != null">
|
|
|
user_group_id = #{record.userGroupId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="record.contentIds != null">
|
|
|
- content_ids = #{record.contentIds,jdbcType=CHAR},
|
|
|
+ <if test="record.contentId != null">
|
|
|
+ content_id = #{record.contentId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="record.pushId != null">
|
|
|
push_id = #{record.pushId,jdbcType=VARCHAR},
|
|
@@ -224,11 +257,31 @@
|
|
|
<if test="record.updateTime != null">
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="record.url != null">
|
|
|
+ url = #{record.url,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
+ <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
+ update long_articles_group_send_result
|
|
|
+ set id = #{record.id,jdbcType=BIGINT},
|
|
|
+ account_name = #{record.accountName,jdbcType=VARCHAR},
|
|
|
+ gh_id = #{record.ghId,jdbcType=VARCHAR},
|
|
|
+ publish_date = #{record.publishDate,jdbcType=VARCHAR},
|
|
|
+ user_group_id = #{record.userGroupId,jdbcType=INTEGER},
|
|
|
+ content_id = #{record.contentId,jdbcType=VARCHAR},
|
|
|
+ push_id = #{record.pushId,jdbcType=VARCHAR},
|
|
|
+ `status` = #{record.status,jdbcType=INTEGER},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ url = #{record.url,jdbcType=LONGVARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update long_articles_group_send_result
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
@@ -236,7 +289,7 @@
|
|
|
gh_id = #{record.ghId,jdbcType=VARCHAR},
|
|
|
publish_date = #{record.publishDate,jdbcType=VARCHAR},
|
|
|
user_group_id = #{record.userGroupId,jdbcType=INTEGER},
|
|
|
- content_ids = #{record.contentIds,jdbcType=CHAR},
|
|
|
+ content_id = #{record.contentId,jdbcType=VARCHAR},
|
|
|
push_id = #{record.pushId,jdbcType=VARCHAR},
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
@@ -260,8 +313,8 @@
|
|
|
<if test="userGroupId != null">
|
|
|
user_group_id = #{userGroupId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="contentIds != null">
|
|
|
- content_ids = #{contentIds,jdbcType=CHAR},
|
|
|
+ <if test="contentId != null">
|
|
|
+ content_id = #{contentId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="pushId != null">
|
|
|
push_id = #{pushId,jdbcType=VARCHAR},
|
|
@@ -275,16 +328,33 @@
|
|
|
<if test="updateTime != null">
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="url != null">
|
|
|
+ url = #{url,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.GroupSendResult">
|
|
|
+ update long_articles_group_send_result
|
|
|
+ set account_name = #{accountName,jdbcType=VARCHAR},
|
|
|
+ gh_id = #{ghId,jdbcType=VARCHAR},
|
|
|
+ publish_date = #{publishDate,jdbcType=VARCHAR},
|
|
|
+ user_group_id = #{userGroupId,jdbcType=INTEGER},
|
|
|
+ content_id = #{contentId,jdbcType=VARCHAR},
|
|
|
+ push_id = #{pushId,jdbcType=VARCHAR},
|
|
|
+ `status` = #{status,jdbcType=INTEGER},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ url = #{url,jdbcType=LONGVARCHAR}
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.GroupSendResult">
|
|
|
update long_articles_group_send_result
|
|
|
set account_name = #{accountName,jdbcType=VARCHAR},
|
|
|
gh_id = #{ghId,jdbcType=VARCHAR},
|
|
|
publish_date = #{publishDate,jdbcType=VARCHAR},
|
|
|
user_group_id = #{userGroupId,jdbcType=INTEGER},
|
|
|
- content_ids = #{contentIds,jdbcType=CHAR},
|
|
|
+ content_id = #{contentId,jdbcType=VARCHAR},
|
|
|
push_id = #{pushId,jdbcType=VARCHAR},
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|