|
@@ -1,7 +1,7 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.tzld.piaoquan.growth.common.dao.mapper.CgiReplyBucketDataMapper">
|
|
<mapper namespace="com.tzld.piaoquan.growth.common.dao.mapper.CgiReplyBucketDataMapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.tzld.piaoquan.api.model.po.CgiReplyBucketData">
|
|
|
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="strategy" jdbcType="VARCHAR" property="strategy" />
|
|
<result column="strategy" jdbcType="VARCHAR" property="strategy" />
|
|
|
<result column="sort" jdbcType="INTEGER" property="sort" />
|
|
<result column="sort" jdbcType="INTEGER" property="sort" />
|
|
@@ -83,7 +83,7 @@
|
|
|
mini_page_path, mini_video_id, page_path_url_id, news_publish_content_id, plan_id,
|
|
mini_page_path, mini_video_id, page_path_url_id, news_publish_content_id, plan_id,
|
|
|
is_delete, create_time, update_time
|
|
is_delete, create_time, update_time
|
|
|
</sql>
|
|
</sql>
|
|
|
- <select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.CgiReplyBucketDataExample" resultMap="BaseResultMap">
|
|
|
|
|
|
|
+ <select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketDataExample" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
|
distinct
|
|
distinct
|
|
@@ -107,13 +107,13 @@
|
|
|
delete from cgi_reply_bucket_data
|
|
delete from cgi_reply_bucket_data
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</delete>
|
|
</delete>
|
|
|
- <delete id="deleteByExample" parameterType="com.tzld.piaoquan.api.model.po.CgiReplyBucketDataExample">
|
|
|
|
|
|
|
+ <delete id="deleteByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketDataExample">
|
|
|
delete from cgi_reply_bucket_data
|
|
delete from cgi_reply_bucket_data
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Example_Where_Clause" />
|
|
<include refid="Example_Where_Clause" />
|
|
|
</if>
|
|
</if>
|
|
|
</delete>
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.CgiReplyBucketData">
|
|
|
|
|
|
|
+ <insert id="insert" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
|
SELECT LAST_INSERT_ID()
|
|
SELECT LAST_INSERT_ID()
|
|
|
</selectKey>
|
|
</selectKey>
|
|
@@ -130,7 +130,7 @@
|
|
|
#{planId,jdbcType=VARCHAR}, #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
#{planId,jdbcType=VARCHAR}, #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
#{updateTime,jdbcType=TIMESTAMP})
|
|
#{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.CgiReplyBucketData">
|
|
|
|
|
|
|
+ <insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
|
SELECT LAST_INSERT_ID()
|
|
SELECT LAST_INSERT_ID()
|
|
|
</selectKey>
|
|
</selectKey>
|
|
@@ -236,7 +236,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
- <select id="countByExample" parameterType="com.tzld.piaoquan.api.model.po.CgiReplyBucketDataExample" resultType="java.lang.Long">
|
|
|
|
|
|
|
+ <select id="countByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketDataExample" resultType="java.lang.Long">
|
|
|
select count(*) from cgi_reply_bucket_data
|
|
select count(*) from cgi_reply_bucket_data
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Example_Where_Clause" />
|
|
<include refid="Example_Where_Clause" />
|
|
@@ -324,7 +324,7 @@
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
</if>
|
|
|
</update>
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.api.model.po.CgiReplyBucketData">
|
|
|
|
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
|
update cgi_reply_bucket_data
|
|
update cgi_reply_bucket_data
|
|
|
<set>
|
|
<set>
|
|
|
<if test="strategy != null">
|
|
<if test="strategy != null">
|
|
@@ -378,7 +378,7 @@
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.api.model.po.CgiReplyBucketData">
|
|
|
|
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData">
|
|
|
update cgi_reply_bucket_data
|
|
update cgi_reply_bucket_data
|
|
|
set strategy = #{strategy,jdbcType=VARCHAR},
|
|
set strategy = #{strategy,jdbcType=VARCHAR},
|
|
|
sort = #{sort,jdbcType=INTEGER},
|
|
sort = #{sort,jdbcType=INTEGER},
|
|
@@ -398,4 +398,10 @@
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="selectVideoId" resultType="java.lang.Long">
|
|
|
|
|
+ select distinct mini_video_id
|
|
|
|
|
+ from cgi_reply_bucket_data
|
|
|
|
|
+ where is_delete = 0;
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|