|
|
@@ -18,6 +18,7 @@
|
|
|
<result column="mobile" jdbcType="VARCHAR" property="mobile" />
|
|
|
<result column="avatar" jdbcType="VARCHAR" property="avatar" />
|
|
|
<result column="weixin_openid" jdbcType="VARCHAR" property="weixinOpenid" />
|
|
|
+ <result column="session_key" jdbcType="VARCHAR" property="sessionKey" />
|
|
|
<result column="status" jdbcType="TINYINT" property="status" />
|
|
|
<result column="add_time" jdbcType="TIMESTAMP" property="addTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
@@ -95,7 +96,8 @@
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
|
|
|
- nickname, mobile, avatar, weixin_openid, `status`, add_time, update_time, deleted
|
|
|
+ nickname, mobile, avatar, weixin_openid, session_key, `status`, add_time, update_time,
|
|
|
+ deleted
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="org.linlinjava.litemall.db.domain.LitemallUserExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -133,8 +135,8 @@
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
|
|
|
- nickname, mobile, avatar, weixin_openid, `status`, add_time, update_time, deleted
|
|
|
-
|
|
|
+ nickname, mobile, avatar, weixin_openid, session_key, `status`, add_time, update_time,
|
|
|
+ deleted
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
from litemall_user
|
|
|
@@ -194,8 +196,8 @@
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
|
|
|
- nickname, mobile, avatar, weixin_openid, `status`, add_time, update_time, deleted
|
|
|
-
|
|
|
+ nickname, mobile, avatar, weixin_openid, session_key, `status`, add_time, update_time,
|
|
|
+ deleted
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
from litemall_user
|
|
|
@@ -230,15 +232,15 @@
|
|
|
insert into litemall_user (username, `password`, gender,
|
|
|
birthday, last_login_time, last_login_ip,
|
|
|
user_level, nickname, mobile,
|
|
|
- avatar, weixin_openid, `status`,
|
|
|
- add_time, update_time, deleted
|
|
|
- )
|
|
|
+ avatar, weixin_openid, session_key,
|
|
|
+ `status`, add_time, update_time,
|
|
|
+ deleted)
|
|
|
values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT},
|
|
|
#{birthday,jdbcType=DATE}, #{lastLoginTime,jdbcType=TIMESTAMP}, #{lastLoginIp,jdbcType=VARCHAR},
|
|
|
#{userLevel,jdbcType=TINYINT}, #{nickname,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR},
|
|
|
- #{avatar,jdbcType=VARCHAR}, #{weixinOpenid,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
|
|
|
- #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT}
|
|
|
- )
|
|
|
+ #{avatar,jdbcType=VARCHAR}, #{weixinOpenid,jdbcType=VARCHAR}, #{sessionKey,jdbcType=VARCHAR},
|
|
|
+ #{status,jdbcType=TINYINT}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{deleted,jdbcType=BIT})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="org.linlinjava.litemall.db.domain.LitemallUser">
|
|
|
<!--
|
|
|
@@ -283,6 +285,9 @@
|
|
|
<if test="weixinOpenid != null">
|
|
|
weixin_openid,
|
|
|
</if>
|
|
|
+ <if test="sessionKey != null">
|
|
|
+ session_key,
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
`status`,
|
|
|
</if>
|
|
|
@@ -330,6 +335,9 @@
|
|
|
<if test="weixinOpenid != null">
|
|
|
#{weixinOpenid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="sessionKey != null">
|
|
|
+ #{sessionKey,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
@@ -397,6 +405,9 @@
|
|
|
<if test="record.weixinOpenid != null">
|
|
|
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.sessionKey != null">
|
|
|
+ session_key = #{record.sessionKey,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.status != null">
|
|
|
`status` = #{record.status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
@@ -432,6 +443,7 @@
|
|
|
mobile = #{record.mobile,jdbcType=VARCHAR},
|
|
|
avatar = #{record.avatar,jdbcType=VARCHAR},
|
|
|
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
|
|
|
+ session_key = #{record.sessionKey,jdbcType=VARCHAR},
|
|
|
`status` = #{record.status,jdbcType=TINYINT},
|
|
|
add_time = #{record.addTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
@@ -480,6 +492,9 @@
|
|
|
<if test="weixinOpenid != null">
|
|
|
weixin_openid = #{weixinOpenid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="sessionKey != null">
|
|
|
+ session_key = #{sessionKey,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
`status` = #{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
@@ -512,6 +527,7 @@
|
|
|
mobile = #{mobile,jdbcType=VARCHAR},
|
|
|
avatar = #{avatar,jdbcType=VARCHAR},
|
|
|
weixin_openid = #{weixinOpenid,jdbcType=VARCHAR},
|
|
|
+ session_key = #{sessionKey,jdbcType=VARCHAR},
|
|
|
`status` = #{status,jdbcType=TINYINT},
|
|
|
add_time = #{addTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
@@ -550,8 +566,8 @@
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
|
|
|
- nickname, mobile, avatar, weixin_openid, `status`, add_time, update_time, deleted
|
|
|
-
|
|
|
+ nickname, mobile, avatar, weixin_openid, session_key, `status`, add_time, update_time,
|
|
|
+ deleted
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
from litemall_user
|