|
|
|
@ -5,7 +5,7 @@ |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
|
<result column="nickname" jdbcType="VARCHAR" property="nickname" /> |
|
|
|
<result column="avatarUrl" jdbcType="VARCHAR" property="avatarurl" /> |
|
|
|
<result column="avatar_url" jdbcType="VARCHAR" property="avatarUrl" /> |
|
|
|
<result column="record_id" jdbcType="BIGINT" property="recordId" /> |
|
|
|
<result column="times" jdbcType="INTEGER" property="times" /> |
|
|
|
<result column="score" jdbcType="INTEGER" property="score" /> |
|
|
|
@ -75,7 +75,7 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, user_id, nickname, avatarUrl, record_id, times, score, time_difference, local_start_time, |
|
|
|
id, user_id, nickname, avatar_url, record_id, times, score, time_difference, local_start_time, |
|
|
|
local_end_time, created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.game.bean.po.GameUserJoinExample" resultMap="BaseResultMap"> |
|
|
|
@ -110,12 +110,12 @@ |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.game.bean.po.GameUserJoin"> |
|
|
|
insert into t_game_user_join (id, user_id, nickname, |
|
|
|
avatarUrl, record_id, times, |
|
|
|
avatar_url, record_id, times, |
|
|
|
score, time_difference, local_start_time, |
|
|
|
local_end_time, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{nickname,jdbcType=VARCHAR}, |
|
|
|
#{avatarurl,jdbcType=VARCHAR}, #{recordId,jdbcType=BIGINT}, #{times,jdbcType=INTEGER}, |
|
|
|
#{avatarUrl,jdbcType=VARCHAR}, #{recordId,jdbcType=BIGINT}, #{times,jdbcType=INTEGER}, |
|
|
|
#{score,jdbcType=INTEGER}, #{timeDifference,jdbcType=INTEGER}, #{localStartTime,jdbcType=BIGINT}, |
|
|
|
#{localEndTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
@ -132,8 +132,8 @@ |
|
|
|
<if test="nickname != null"> |
|
|
|
nickname, |
|
|
|
</if> |
|
|
|
<if test="avatarurl != null"> |
|
|
|
avatarUrl, |
|
|
|
<if test="avatarUrl != null"> |
|
|
|
avatar_url, |
|
|
|
</if> |
|
|
|
<if test="recordId != null"> |
|
|
|
record_id, |
|
|
|
@ -173,8 +173,8 @@ |
|
|
|
<if test="nickname != null"> |
|
|
|
#{nickname,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="avatarurl != null"> |
|
|
|
#{avatarurl,jdbcType=VARCHAR}, |
|
|
|
<if test="avatarUrl != null"> |
|
|
|
#{avatarUrl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="recordId != null"> |
|
|
|
#{recordId,jdbcType=BIGINT}, |
|
|
|
@ -223,8 +223,8 @@ |
|
|
|
<if test="record.nickname != null"> |
|
|
|
nickname = #{record.nickname,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.avatarurl != null"> |
|
|
|
avatarUrl = #{record.avatarurl,jdbcType=VARCHAR}, |
|
|
|
<if test="record.avatarUrl != null"> |
|
|
|
avatar_url = #{record.avatarUrl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.recordId != null"> |
|
|
|
record_id = #{record.recordId,jdbcType=BIGINT}, |
|
|
|
@ -263,7 +263,7 @@ |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
nickname = #{record.nickname,jdbcType=VARCHAR}, |
|
|
|
avatarUrl = #{record.avatarurl,jdbcType=VARCHAR}, |
|
|
|
avatar_url = #{record.avatarUrl,jdbcType=VARCHAR}, |
|
|
|
record_id = #{record.recordId,jdbcType=BIGINT}, |
|
|
|
times = #{record.times,jdbcType=INTEGER}, |
|
|
|
score = #{record.score,jdbcType=INTEGER}, |
|
|
|
@ -286,8 +286,8 @@ |
|
|
|
<if test="nickname != null"> |
|
|
|
nickname = #{nickname,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="avatarurl != null"> |
|
|
|
avatarUrl = #{avatarurl,jdbcType=VARCHAR}, |
|
|
|
<if test="avatarUrl != null"> |
|
|
|
avatar_url = #{avatarUrl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="recordId != null"> |
|
|
|
record_id = #{recordId,jdbcType=BIGINT}, |
|
|
|
@ -323,7 +323,7 @@ |
|
|
|
update t_game_user_join |
|
|
|
set user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
nickname = #{nickname,jdbcType=VARCHAR}, |
|
|
|
avatarUrl = #{avatarurl,jdbcType=VARCHAR}, |
|
|
|
avatar_url = #{avatarUrl,jdbcType=VARCHAR}, |
|
|
|
record_id = #{recordId,jdbcType=BIGINT}, |
|
|
|
times = #{times,jdbcType=INTEGER}, |
|
|
|
score = #{score,jdbcType=INTEGER}, |
|
|
|
|