|
@@ -16,6 +16,7 @@
|
|
|
<result column="sort_strategy" jdbcType="VARCHAR" property="sortStrategy" />
|
|
<result column="sort_strategy" jdbcType="VARCHAR" property="sortStrategy" />
|
|
|
<result column="push_type" jdbcType="INTEGER" property="pushType" />
|
|
<result column="push_type" jdbcType="INTEGER" property="pushType" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
|
|
+ <result column="push_id" jdbcType="VARCHAR" property="pushId" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -80,7 +81,7 @@
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
id, plan_id, plan_name, account_id, account_name, gh_id, publish_num, publish_pre_min_num,
|
|
id, plan_id, plan_name, account_id, account_name, gh_id, publish_num, publish_pre_min_num,
|
|
|
publish_push_time, mini_strategy, miniprogram_use_type, sort_strategy, push_type,
|
|
publish_push_time, mini_strategy, miniprogram_use_type, sort_strategy, push_type,
|
|
|
- `status`, create_time, update_time
|
|
|
|
|
|
|
+ `status`, push_id, create_time, update_time
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccountExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccountExample" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -120,14 +121,14 @@
|
|
|
account_id, account_name, gh_id,
|
|
account_id, account_name, gh_id,
|
|
|
publish_num, publish_pre_min_num, publish_push_time,
|
|
publish_num, publish_pre_min_num, publish_push_time,
|
|
|
mini_strategy, miniprogram_use_type, sort_strategy,
|
|
mini_strategy, miniprogram_use_type, sort_strategy,
|
|
|
- push_type, `status`, create_time,
|
|
|
|
|
- update_time)
|
|
|
|
|
|
|
+ push_type, `status`, push_id,
|
|
|
|
|
+ create_time, update_time)
|
|
|
values (#{id,jdbcType=BIGINT}, #{planId,jdbcType=VARCHAR}, #{planName,jdbcType=VARCHAR},
|
|
values (#{id,jdbcType=BIGINT}, #{planId,jdbcType=VARCHAR}, #{planName,jdbcType=VARCHAR},
|
|
|
#{accountId,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, #{ghId,jdbcType=VARCHAR},
|
|
#{accountId,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, #{ghId,jdbcType=VARCHAR},
|
|
|
#{publishNum,jdbcType=INTEGER}, #{publishPreMinNum,jdbcType=INTEGER}, #{publishPushTime,jdbcType=VARCHAR},
|
|
#{publishNum,jdbcType=INTEGER}, #{publishPreMinNum,jdbcType=INTEGER}, #{publishPushTime,jdbcType=VARCHAR},
|
|
|
#{miniStrategy,jdbcType=VARCHAR}, #{miniprogramUseType,jdbcType=INTEGER}, #{sortStrategy,jdbcType=VARCHAR},
|
|
#{miniStrategy,jdbcType=VARCHAR}, #{miniprogramUseType,jdbcType=INTEGER}, #{sortStrategy,jdbcType=VARCHAR},
|
|
|
- #{pushType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- #{updateTime,jdbcType=TIMESTAMP})
|
|
|
|
|
|
|
+ #{pushType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{pushId,jdbcType=VARCHAR},
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccount">
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccount">
|
|
|
insert into long_articles_plan_account
|
|
insert into long_articles_plan_account
|
|
@@ -174,6 +175,9 @@
|
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
|
`status`,
|
|
`status`,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="pushId != null">
|
|
|
|
|
+ push_id,
|
|
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
create_time,
|
|
|
</if>
|
|
</if>
|
|
@@ -224,6 +228,9 @@
|
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=INTEGER},
|
|
#{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="pushId != null">
|
|
|
|
|
+ #{pushId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
@@ -283,6 +290,9 @@
|
|
|
<if test="record.status != null">
|
|
<if test="record.status != null">
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.pushId != null">
|
|
|
|
|
+ push_id = #{record.pushId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="record.createTime != null">
|
|
<if test="record.createTime != null">
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
@@ -310,6 +320,7 @@
|
|
|
sort_strategy = #{record.sortStrategy,jdbcType=VARCHAR},
|
|
sort_strategy = #{record.sortStrategy,jdbcType=VARCHAR},
|
|
|
push_type = #{record.pushType,jdbcType=INTEGER},
|
|
push_type = #{record.pushType,jdbcType=INTEGER},
|
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
`status` = #{record.status,jdbcType=INTEGER},
|
|
|
|
|
+ push_id = #{record.pushId,jdbcType=VARCHAR},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -358,6 +369,9 @@
|
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="pushId != null">
|
|
|
|
|
+ push_id = #{pushId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
@@ -382,6 +396,7 @@
|
|
|
sort_strategy = #{sortStrategy,jdbcType=VARCHAR},
|
|
sort_strategy = #{sortStrategy,jdbcType=VARCHAR},
|
|
|
push_type = #{pushType,jdbcType=INTEGER},
|
|
push_type = #{pushType,jdbcType=INTEGER},
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
|
|
+ push_id = #{pushId,jdbcType=VARCHAR},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|