From efd965b02d6ca3c1506d027feb27c95a36a33ea0 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 03 八月 2019 18:16:29 +0800 Subject: [PATCH] 智能推荐增加拼多多/京东链接 --- fanli/src/main/java/com/yeshi/fanli/mapping/StrategyPictureMapper.xml | 29 ++++++++++++++++------------- 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/StrategyPictureMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/StrategyPictureMapper.xml index ec1dd7e..3719206 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/StrategyPictureMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/StrategyPictureMapper.xml @@ -9,32 +9,29 @@ <result column="post_picture" property="postPicture" jdbcType="VARCHAR" /> <result column="title" property="title" jdbcType="VARCHAR" /> <result column="orderBy" property="orderBy" jdbcType="INTEGER" /> + <result column="type" property="type" jdbcType="INTEGER" /> + <result column="video_url" property="videoUrl" jdbcType="VARCHAR" /> </resultMap> - <sql id="Base_Column_List">id,strategyPicture,post_picture,title,orderBy</sql> + <sql id="Base_Column_List">id,strategyPicture,post_picture,title,orderBy,type,video_url + </sql> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long"> select <include refid="Base_Column_List" /> from ye_yeshi_strategy_picture where id = #{id,jdbcType=BIGINT} </select> - <select id="selectStrategyPictureList" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from ye_yeshi_strategy_picture order by orderBy desc </select> - - - - <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from - ye_yeshi_strategy_picture where id = #{id,jdbcType=BIGINT} - </delete> + ye_yeshi_strategy_picture where id = #{id,jdbcType=BIGINT}</delete> <insert id="insert" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture" useGeneratedKeys="true" keyProperty="id">insert into ye_yeshi_strategy_picture - (id,strategyPicture,post_picture,title,orderBy) values - (#{id,jdbcType=BIGINT},#{strategyPicture,jdbcType=VARCHAR},#{postPicture,jdbcType=VARCHAR},#{title,jdbcType=VARCHAR},#{orderBy,jdbcType=INTEGER}) + (id,strategyPicture,post_picture,title,orderBy,type,video_url) values + (#{id,jdbcType=BIGINT},#{strategyPicture,jdbcType=VARCHAR},#{postPicture,jdbcType=VARCHAR},#{title,jdbcType=VARCHAR},#{orderBy,jdbcType=INTEGER},#{type,jdbcType=INTEGER},#{videoUrl,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture" useGeneratedKeys="true" keyProperty="id"> @@ -45,6 +42,8 @@ <if test="postPicture != null">post_picture,</if> <if test="title != null">title,</if> <if test="orderBy != null">orderBy,</if> + <if test="type != null">type,</if> + <if test="videoUrl != null">video_url,</if> </trim> values <trim prefix="(" suffix=")" suffixOverrides=","> @@ -53,15 +52,17 @@ <if test="postPicture != null">#{postPicture,jdbcType=VARCHAR},</if> <if test="title != null">#{title,jdbcType=VARCHAR},</if> <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if> + <if test="type != null">#{type,jdbcType=INTEGER},</if> + <if test="videoUrl != null">#{videoUrl,jdbcType=VARCHAR}</if> </trim> </insert> <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture">update ye_yeshi_strategy_picture set strategyPicture = #{strategyPicture,jdbcType=VARCHAR},post_picture = #{postPicture,jdbcType=VARCHAR},title = - #{title,jdbcType=VARCHAR},orderBy = #{orderBy,jdbcType=INTEGER} where - id = #{id,jdbcType=BIGINT} - </update> + #{title,jdbcType=VARCHAR},orderBy = #{orderBy,jdbcType=INTEGER} ,type + =#{type,jdbcType=INTEGER} ,video_url =#{videoUrl,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT}</update> <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture"> update ye_yeshi_strategy_picture <set> @@ -69,6 +70,8 @@ <if test="postPicture != null">post_picture=#{postPicture,jdbcType=VARCHAR},</if> <if test="title != null">title=#{title,jdbcType=VARCHAR},</if> <if test="orderBy != null">orderBy=#{orderBy,jdbcType=INTEGER},</if> + <if test="type !=null">type =#{type,jdbcType=INTEGER},</if> + <if test="videoUrl !=null">video_url =#{videoUrl,jdbcType=VARCHAR},</if> </set> where id = #{id,jdbcType=BIGINT} </update> -- Gitblit v1.8.0