From 4a05f1c9c508ab7f10c5eae22a5c716f5454ca02 Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期二, 12 三月 2019 16:29:55 +0800 Subject: [PATCH] 冲突提交 --- fanli/src/main/java/com/yeshi/fanli/mapping/push/PushGoodsMapper.xml | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/push/PushGoodsMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/push/PushGoodsMapper.xml index 59e9b68..eaeb9bf 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/push/PushGoodsMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/push/PushGoodsMapper.xml @@ -9,18 +9,18 @@ <result column="pg_title" property="title" jdbcType="VARCHAR"/> <result column="pg_content" property="content" jdbcType="VARCHAR"/> <result column="pg_picture" property="picture" jdbcType="VARCHAR"/> - <result column="pg_uid" property="uid" jdbcType="BIGINT"/> + <result column="pg_versions" property="versions" jdbcType="VARCHAR"/> <result column="pg_is_push" property="isPush" jdbcType="VARCHAR"/> <result column="pg_push_time" property="pushTime" jdbcType="TIMESTAMP"/> <result column="pg_createtime" property="createTime" jdbcType="TIMESTAMP"/> <result column="pg_updatetime" property="updateTime" jdbcType="TIMESTAMP"/> </resultMap> - <sql id="Base_Column_List">pg_id,pg_alert_title,pg_alert_content,pg_title,pg_content,pg_picture,pg_uid,pg_is_push,pg_push_time,pg_createtime,pg_updatetime</sql> + <sql id="Base_Column_List">pg_id,pg_alert_title,pg_alert_content,pg_title,pg_content,pg_picture,pg_versions,pg_is_push,pg_push_time,pg_createtime,pg_updatetime</sql> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select <include refid="Base_Column_List"/>from yeshi_ec_push_goods where pg_id = #{id,jdbcType=BIGINT} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_push_goods where pg_id = #{id,jdbcType=BIGINT}</delete> - <insert id="insert" parameterType="com.yeshi.fanli.entity.push.PushGoods" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_push_goods (pg_id,pg_alert_title,pg_alert_content,pg_title,pg_content,pg_picture,pg_uid,pg_is_push,pg_push_time,pg_createtime,pg_updatetime) values (#{id,jdbcType=BIGINT},#{alertTitle,jdbcType=VARCHAR},#{alertContent,jdbcType=VARCHAR},#{title,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{picture,jdbcType=VARCHAR},#{uid,jdbcType=BIGINT},#{isPush,jdbcType=VARCHAR},#{pushTime,jdbcType=TIMESTAMP},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})</insert> + <insert id="insert" parameterType="com.yeshi.fanli.entity.push.PushGoods" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_push_goods (pg_id,pg_alert_title,pg_alert_content,pg_title,pg_content,pg_picture,pg_versions,pg_is_push,pg_push_time,pg_createtime,pg_updatetime) values (#{id,jdbcType=BIGINT},#{alertTitle,jdbcType=VARCHAR},#{alertContent,jdbcType=VARCHAR},#{title,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{picture,jdbcType=VARCHAR},#{versions,jdbcType=VARCHAR},#{isPush,jdbcType=VARCHAR},#{pushTime,jdbcType=TIMESTAMP},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})</insert> <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.push.PushGoods" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_push_goods <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null">pg_id,</if> @@ -29,7 +29,7 @@ <if test="title != null">pg_title,</if> <if test="content != null">pg_content,</if> <if test="picture != null">pg_picture,</if> - <if test="uid != null">pg_uid,</if> + <if test="versions != null">pg_versions,</if> <if test="isPush != null">pg_is_push,</if> <if test="pushTime != null">pg_push_time,</if> <if test="createTime != null">pg_createtime,</if> @@ -42,14 +42,14 @@ <if test="title != null">#{title,jdbcType=VARCHAR},</if> <if test="content != null">#{content,jdbcType=VARCHAR},</if> <if test="picture != null">#{picture,jdbcType=VARCHAR},</if> - <if test="uid != null">#{uid,jdbcType=BIGINT},</if> + <if test="versions != null">#{versions,jdbcType=VARCHAR},</if> <if test="isPush != null">#{isPush,jdbcType=VARCHAR},</if> <if test="pushTime != null">#{pushTime,jdbcType=TIMESTAMP},</if> <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> </trim> </insert> - <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.push.PushGoods">update yeshi_ec_push_goods set pg_alert_title = #{alertTitle,jdbcType=VARCHAR},pg_alert_content = #{alertContent,jdbcType=VARCHAR},pg_title = #{title,jdbcType=VARCHAR},pg_content = #{content,jdbcType=VARCHAR},pg_picture = #{picture,jdbcType=VARCHAR},pg_uid = #{uid,jdbcType=BIGINT},pg_is_push = #{isPush,jdbcType=VARCHAR},pg_push_time = #{pushTime,jdbcType=TIMESTAMP},pg_createtime = #{createTime,jdbcType=TIMESTAMP},pg_updatetime = #{updateTime,jdbcType=TIMESTAMP} where pg_id = #{id,jdbcType=BIGINT}</update> + <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.push.PushGoods">update yeshi_ec_push_goods set pg_alert_title = #{alertTitle,jdbcType=VARCHAR},pg_alert_content = #{alertContent,jdbcType=VARCHAR},pg_title = #{title,jdbcType=VARCHAR},pg_content = #{content,jdbcType=VARCHAR},pg_picture = #{picture,jdbcType=VARCHAR},pg_versions = #{versions,jdbcType=VARCHAR},pg_is_push = #{isPush,jdbcType=VARCHAR},pg_push_time = #{pushTime,jdbcType=TIMESTAMP},pg_createtime = #{createTime,jdbcType=TIMESTAMP},pg_updatetime = #{updateTime,jdbcType=TIMESTAMP} where pg_id = #{id,jdbcType=BIGINT}</update> <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.push.PushGoods">update yeshi_ec_push_goods <set> <if test="alertTitle != null">pg_alert_title=#{alertTitle,jdbcType=VARCHAR},</if> @@ -57,16 +57,14 @@ <if test="title != null">pg_title=#{title,jdbcType=VARCHAR},</if> <if test="content != null">pg_content=#{content,jdbcType=VARCHAR},</if> <if test="picture != null">pg_picture=#{picture,jdbcType=VARCHAR},</if> - <if test="uid != null">pg_uid=#{uid,jdbcType=BIGINT},</if> + <if test="versions != null">pg_versions=#{versions,jdbcType=VARCHAR},</if> <if test="isPush != null">pg_is_push=#{isPush,jdbcType=VARCHAR},</if> <if test="pushTime != null">pg_push_time=#{pushTime,jdbcType=TIMESTAMP},</if> <if test="createTime != null">pg_createtime=#{createTime,jdbcType=TIMESTAMP},</if> <if test="updateTime != null">pg_updatetime=#{updateTime,jdbcType=TIMESTAMP},</if> </set> where pg_id = #{id,jdbcType=BIGINT} </update> - - - <delete id="deleteBatchByPrimaryKey" parameterType="java.util.List"> +<delete id="deleteBatchByPrimaryKey" parameterType="java.util.List"> delete from yeshi_ec_push_goods where pg_id in <foreach item="item" collection="list" open="(" separator="," close=")">#{item}</foreach> -- Gitblit v1.8.0