From 01ea4fb69295c1364143c207684926e91218d18d Mon Sep 17 00:00:00 2001
From: Administrator <Administrator@S0ZHK00LKCA6OYY>
Date: 星期一, 05 十一月 2018 11:56:03 +0800
Subject: [PATCH] 推送版本记录

---
 fanli/src/main/java/com/yeshi/fanli/mapping/push/DeviceTokenIOSMapper.xml |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/push/DeviceTokenIOSMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/push/DeviceTokenIOSMapper.xml
index 5f1f66e..89d8458 100644
--- a/fanli/src/main/java/com/yeshi/fanli/mapping/push/DeviceTokenIOSMapper.xml
+++ b/fanli/src/main/java/com/yeshi/fanli/mapping/push/DeviceTokenIOSMapper.xml
@@ -7,10 +7,11 @@
 		<result column="uid" property="uid" jdbcType="BIGINT" />
 		<result column="device_token" property="deviceToken" jdbcType="VARCHAR" />
 		<result column="device" property="device" jdbcType="VARCHAR" />
+		<result column="version" property="version" jdbcType="INTEGER" />
 		<result column="createtime" property="createTime" jdbcType="TIMESTAMP" />
 		<result column="updatetime" property="updateTime" jdbcType="TIMESTAMP" />
 	</resultMap>
-	<sql id="Base_Column_List">id,uid,device_token,device,createtime,updatetime</sql>
+	<sql id="Base_Column_List">id,uid,device_token,device,createtime,updatetime,version</sql>
 	<select id="selectByPrimaryKey" resultMap="BaseResultMap"
 		parameterType="java.lang.Long">
 		select
@@ -58,8 +59,8 @@
 	<insert id="insert" parameterType="com.yeshi.fanli.entity.push.DeviceTokenIOS"
 		useGeneratedKeys="true" keyProperty="id">insert into
 		yeshi_ec_uid_devicetoken_ios
-		(id,uid,device_token,device,createtime,updatetime) values
-		(#{id,jdbcType=BIGINT},#{uid,jdbcType=BIGINT},#{deviceToken,jdbcType=VARCHAR},#{device,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})
+		(id,uid,device_token,device,createtime,updatetime,`version`) values
+		(#{id,jdbcType=BIGINT},#{uid,jdbcType=BIGINT},#{deviceToken,jdbcType=VARCHAR},#{device,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP},#{version,jdbcType=INTEGER})
 	</insert>
 	<insert id="insertSelective" parameterType="com.yeshi.fanli.entity.push.DeviceTokenIOS"
 		useGeneratedKeys="true" keyProperty="id">
@@ -71,6 +72,7 @@
 			<if test="device != null">device,</if>
 			<if test="createTime != null">createtime,</if>
 			<if test="updateTime != null">updatetime,</if>
+			<if test="version != null">version,</if>
 		</trim>
 		values
 		<trim prefix="(" suffix=")" suffixOverrides=",">
@@ -80,6 +82,7 @@
 			<if test="device != null">#{device,jdbcType=VARCHAR},</if>
 			<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
 			<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
+			<if test="version != null">#{version,jdbcType=INTEGER},</if>
 		</trim>
 	</insert>
 	<update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.push.DeviceTokenIOS">update
@@ -88,7 +91,8 @@
 		#{deviceToken,jdbcType=VARCHAR},device =
 		#{device,jdbcType=VARCHAR},createtime =
 		#{createTime,jdbcType=TIMESTAMP},updatetime =
-		#{updateTime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=BIGINT}
+		#{updateTime,jdbcType=TIMESTAMP},version =
+		#{version,jdbcType=INTEGER}  where id = #{id,jdbcType=BIGINT}
 	</update>
 	<update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.push.DeviceTokenIOS">
 		update yeshi_ec_uid_devicetoken_ios
@@ -98,6 +102,7 @@
 			<if test="device != null">device=#{device,jdbcType=VARCHAR},</if>
 			<if test="createTime != null">createtime=#{createTime,jdbcType=TIMESTAMP},</if>
 			<if test="updateTime != null">updatetime=#{updateTime,jdbcType=TIMESTAMP},</if>
+			<if test="version != null">version=#{version,jdbcType=INTEGER},</if>
 		</set>
 		where id = #{id,jdbcType=BIGINT}
 	</update>

--
Gitblit v1.8.0