|  | @@ -7,6 +7,9 @@
 | 
											
												
													
														|  |      <result column="idx" jdbcType="INTEGER" property="idx" />
 |  |      <result column="idx" jdbcType="INTEGER" property="idx" />
 | 
											
												
													
														|  |      <result column="content_link" jdbcType="VARCHAR" property="contentLink" />
 |  |      <result column="content_link" jdbcType="VARCHAR" property="contentLink" />
 | 
											
												
													
														|  |      <result column="create_time" jdbcType="BIGINT" property="createTime" />
 |  |      <result column="create_time" jdbcType="BIGINT" property="createTime" />
 | 
											
												
													
														|  | 
 |  | +    <result column="title" jdbcType="VARCHAR" property="title" />
 | 
											
												
													
														|  | 
 |  | +    <result column="view_count" jdbcType="BIGINT" property="viewCount" />
 | 
											
												
													
														|  | 
 |  | +    <result column="update_time" jdbcType="BIGINT" property="updateTime" />
 | 
											
												
													
														|  |    </resultMap>
 |  |    </resultMap>
 | 
											
												
													
														|  |    <sql id="Example_Where_Clause">
 |  |    <sql id="Example_Where_Clause">
 | 
											
												
													
														|  |      <where>
 |  |      <where>
 | 
											
										
											
												
													
														|  | @@ -67,7 +70,7 @@
 | 
											
												
													
														|  |      </where>
 |  |      </where>
 | 
											
												
													
														|  |    </sql>
 |  |    </sql>
 | 
											
												
													
														|  |    <sql id="Base_Column_List">
 |  |    <sql id="Base_Column_List">
 | 
											
												
													
														|  | -    id, gzh_id, idx, content_link, create_time
 |  | 
 | 
											
												
													
														|  | 
 |  | +    id, gzh_id, idx, content_link, create_time, title, view_count, update_time
 | 
											
												
													
														|  |    </sql>
 |  |    </sql>
 | 
											
												
													
														|  |    <select id="selectByExample" parameterType="com.tzld.longarticle.recommend.server.repository.model.ArticleContentLinkExample" resultMap="BaseResultMap">
 |  |    <select id="selectByExample" parameterType="com.tzld.longarticle.recommend.server.repository.model.ArticleContentLinkExample" resultMap="BaseResultMap">
 | 
											
												
													
														|  |      select
 |  |      select
 | 
											
										
											
												
													
														|  | @@ -104,9 +107,11 @@
 | 
											
												
													
														|  |        SELECT LAST_INSERT_ID()
 |  |        SELECT LAST_INSERT_ID()
 | 
											
												
													
														|  |      </selectKey>
 |  |      </selectKey>
 | 
											
												
													
														|  |      insert into article_content_link (gzh_id, idx, content_link, 
 |  |      insert into article_content_link (gzh_id, idx, content_link, 
 | 
											
												
													
														|  | -      create_time)
 |  | 
 | 
											
												
													
														|  | 
 |  | +      create_time, title, view_count, 
 | 
											
												
													
														|  | 
 |  | +      update_time)
 | 
											
												
													
														|  |      values (#{gzhId,jdbcType=VARCHAR}, #{idx,jdbcType=INTEGER}, #{contentLink,jdbcType=VARCHAR}, 
 |  |      values (#{gzhId,jdbcType=VARCHAR}, #{idx,jdbcType=INTEGER}, #{contentLink,jdbcType=VARCHAR}, 
 | 
											
												
													
														|  | -      #{createTime,jdbcType=BIGINT})
 |  | 
 | 
											
												
													
														|  | 
 |  | +      #{createTime,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{viewCount,jdbcType=BIGINT}, 
 | 
											
												
													
														|  | 
 |  | +      #{updateTime,jdbcType=BIGINT})
 | 
											
												
													
														|  |    </insert>
 |  |    </insert>
 | 
											
												
													
														|  |    <insert id="insertSelective" parameterType="com.tzld.longarticle.recommend.server.repository.model.ArticleContentLink">
 |  |    <insert id="insertSelective" parameterType="com.tzld.longarticle.recommend.server.repository.model.ArticleContentLink">
 | 
											
												
													
														|  |      <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
 |  |      <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
 | 
											
										
											
												
													
														|  | @@ -126,6 +131,15 @@
 | 
											
												
													
														|  |        <if test="createTime != null">
 |  |        <if test="createTime != null">
 | 
											
												
													
														|  |          create_time,
 |  |          create_time,
 | 
											
												
													
														|  |        </if>
 |  |        </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="title != null">
 | 
											
												
													
														|  | 
 |  | +        title,
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="viewCount != null">
 | 
											
												
													
														|  | 
 |  | +        view_count,
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="updateTime != null">
 | 
											
												
													
														|  | 
 |  | +        update_time,
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  |      </trim>
 |  |      </trim>
 | 
											
												
													
														|  |      <trim prefix="values (" suffix=")" suffixOverrides=",">
 |  |      <trim prefix="values (" suffix=")" suffixOverrides=",">
 | 
											
												
													
														|  |        <if test="gzhId != null">
 |  |        <if test="gzhId != null">
 | 
											
										
											
												
													
														|  | @@ -140,6 +154,15 @@
 | 
											
												
													
														|  |        <if test="createTime != null">
 |  |        <if test="createTime != null">
 | 
											
												
													
														|  |          #{createTime,jdbcType=BIGINT},
 |  |          #{createTime,jdbcType=BIGINT},
 | 
											
												
													
														|  |        </if>
 |  |        </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="title != null">
 | 
											
												
													
														|  | 
 |  | +        #{title,jdbcType=VARCHAR},
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="viewCount != null">
 | 
											
												
													
														|  | 
 |  | +        #{viewCount,jdbcType=BIGINT},
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="updateTime != null">
 | 
											
												
													
														|  | 
 |  | +        #{updateTime,jdbcType=BIGINT},
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  |      </trim>
 |  |      </trim>
 | 
											
												
													
														|  |    </insert>
 |  |    </insert>
 | 
											
												
													
														|  |    <select id="countByExample" parameterType="com.tzld.longarticle.recommend.server.repository.model.ArticleContentLinkExample" resultType="java.lang.Long">
 |  |    <select id="countByExample" parameterType="com.tzld.longarticle.recommend.server.repository.model.ArticleContentLinkExample" resultType="java.lang.Long">
 | 
											
										
											
												
													
														|  | @@ -166,6 +189,15 @@
 | 
											
												
													
														|  |        <if test="row.createTime != null">
 |  |        <if test="row.createTime != null">
 | 
											
												
													
														|  |          create_time = #{row.createTime,jdbcType=BIGINT},
 |  |          create_time = #{row.createTime,jdbcType=BIGINT},
 | 
											
												
													
														|  |        </if>
 |  |        </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="row.title != null">
 | 
											
												
													
														|  | 
 |  | +        title = #{row.title,jdbcType=VARCHAR},
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="row.viewCount != null">
 | 
											
												
													
														|  | 
 |  | +        view_count = #{row.viewCount,jdbcType=BIGINT},
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="row.updateTime != null">
 | 
											
												
													
														|  | 
 |  | +        update_time = #{row.updateTime,jdbcType=BIGINT},
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  |      </set>
 |  |      </set>
 | 
											
												
													
														|  |      <if test="example != null">
 |  |      <if test="example != null">
 | 
											
												
													
														|  |        <include refid="Update_By_Example_Where_Clause" />
 |  |        <include refid="Update_By_Example_Where_Clause" />
 | 
											
										
											
												
													
														|  | @@ -177,7 +209,10 @@
 | 
											
												
													
														|  |        gzh_id = #{row.gzhId,jdbcType=VARCHAR},
 |  |        gzh_id = #{row.gzhId,jdbcType=VARCHAR},
 | 
											
												
													
														|  |        idx = #{row.idx,jdbcType=INTEGER},
 |  |        idx = #{row.idx,jdbcType=INTEGER},
 | 
											
												
													
														|  |        content_link = #{row.contentLink,jdbcType=VARCHAR},
 |  |        content_link = #{row.contentLink,jdbcType=VARCHAR},
 | 
											
												
													
														|  | -      create_time = #{row.createTime,jdbcType=BIGINT}
 |  | 
 | 
											
												
													
														|  | 
 |  | +      create_time = #{row.createTime,jdbcType=BIGINT},
 | 
											
												
													
														|  | 
 |  | +      title = #{row.title,jdbcType=VARCHAR},
 | 
											
												
													
														|  | 
 |  | +      view_count = #{row.viewCount,jdbcType=BIGINT},
 | 
											
												
													
														|  | 
 |  | +      update_time = #{row.updateTime,jdbcType=BIGINT}
 | 
											
												
													
														|  |      <if test="example != null">
 |  |      <if test="example != null">
 | 
											
												
													
														|  |        <include refid="Update_By_Example_Where_Clause" />
 |  |        <include refid="Update_By_Example_Where_Clause" />
 | 
											
												
													
														|  |      </if>
 |  |      </if>
 | 
											
										
											
												
													
														|  | @@ -197,6 +232,15 @@
 | 
											
												
													
														|  |        <if test="createTime != null">
 |  |        <if test="createTime != null">
 | 
											
												
													
														|  |          create_time = #{createTime,jdbcType=BIGINT},
 |  |          create_time = #{createTime,jdbcType=BIGINT},
 | 
											
												
													
														|  |        </if>
 |  |        </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="title != null">
 | 
											
												
													
														|  | 
 |  | +        title = #{title,jdbcType=VARCHAR},
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="viewCount != null">
 | 
											
												
													
														|  | 
 |  | +        view_count = #{viewCount,jdbcType=BIGINT},
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  | 
 |  | +      <if test="updateTime != null">
 | 
											
												
													
														|  | 
 |  | +        update_time = #{updateTime,jdbcType=BIGINT},
 | 
											
												
													
														|  | 
 |  | +      </if>
 | 
											
												
													
														|  |      </set>
 |  |      </set>
 | 
											
												
													
														|  |      where id = #{id,jdbcType=BIGINT}
 |  |      where id = #{id,jdbcType=BIGINT}
 | 
											
												
													
														|  |    </update>
 |  |    </update>
 | 
											
										
											
												
													
														|  | @@ -205,15 +249,18 @@
 | 
											
												
													
														|  |      set gzh_id = #{gzhId,jdbcType=VARCHAR},
 |  |      set gzh_id = #{gzhId,jdbcType=VARCHAR},
 | 
											
												
													
														|  |        idx = #{idx,jdbcType=INTEGER},
 |  |        idx = #{idx,jdbcType=INTEGER},
 | 
											
												
													
														|  |        content_link = #{contentLink,jdbcType=VARCHAR},
 |  |        content_link = #{contentLink,jdbcType=VARCHAR},
 | 
											
												
													
														|  | -      create_time = #{createTime,jdbcType=BIGINT}
 |  | 
 | 
											
												
													
														|  | 
 |  | +      create_time = #{createTime,jdbcType=BIGINT},
 | 
											
												
													
														|  | 
 |  | +      title = #{title,jdbcType=VARCHAR},
 | 
											
												
													
														|  | 
 |  | +      view_count = #{viewCount,jdbcType=BIGINT},
 | 
											
												
													
														|  | 
 |  | +      update_time = #{updateTime,jdbcType=BIGINT}
 | 
											
												
													
														|  |      where id = #{id,jdbcType=BIGINT}
 |  |      where id = #{id,jdbcType=BIGINT}
 | 
											
												
													
														|  |    </update>
 |  |    </update>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |    <insert id="insertBatch" parameterType="list">
 |  |    <insert id="insertBatch" parameterType="list">
 | 
											
												
													
														|  | -    INSERT INTO article_content_link (gzh_id, idx, content_link, create_time)
 |  | 
 | 
											
												
													
														|  | 
 |  | +    INSERT INTO article_content_link (gzh_id, idx, content_link, create_time, title, view_count, update_time)
 | 
											
												
													
														|  |      VALUES
 |  |      VALUES
 | 
											
												
													
														|  |      <foreach collection="list" item="item" separator=",">
 |  |      <foreach collection="list" item="item" separator=",">
 | 
											
												
													
														|  | -      (#{item.gzhId}, #{item.idx}, #{item.contentLink}, #{item.createTime})
 |  | 
 | 
											
												
													
														|  | 
 |  | +      (#{item.gzhId}, #{item.idx}, #{item.contentLink}, #{item.createTime}, #{item.title}, #{item.viewCount}, #{item.updateTime}
 | 
											
												
													
														|  |      </foreach>
 |  |      </foreach>
 | 
											
												
													
														|  |    </insert>
 |  |    </insert>
 | 
											
												
													
														|  |  </mapper>
 |  |  </mapper>
 |