|
|
@ -4,9 +4,11 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.game.bean.po.GameUserJoin"> |
|
|
|
<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="record_id" jdbcType="BIGINT" property="recordId" /> |
|
|
|
<result column="times" jdbcType="VARCHAR" property="times" /> |
|
|
|
<result column="score" jdbcType="VARCHAR" property="score" /> |
|
|
|
<result column="times" jdbcType="INTEGER" property="times" /> |
|
|
|
<result column="score" jdbcType="INTEGER" property="score" /> |
|
|
|
<result column="time_difference" jdbcType="INTEGER" property="timeDifference" /> |
|
|
|
<result column="local_start_time" jdbcType="BIGINT" property="localStartTime" /> |
|
|
|
<result column="local_end_time" jdbcType="BIGINT" property="localEndTime" /> |
|
|
@ -73,8 +75,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, user_id, record_id, times, score, time_difference, local_start_time, local_end_time, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
id, user_id, nickname, avatarUrl, 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"> |
|
|
|
select |
|
|
@ -107,14 +109,16 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.game.bean.po.GameUserJoin"> |
|
|
|
insert into t_game_user_join (id, user_id, 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}, #{recordId,jdbcType=BIGINT}, |
|
|
|
#{times,jdbcType=VARCHAR}, #{score,jdbcType=VARCHAR}, #{timeDifference,jdbcType=INTEGER}, |
|
|
|
#{localStartTime,jdbcType=BIGINT}, #{localEndTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
|
insert into t_game_user_join (id, user_id, nickname, |
|
|
|
avatarUrl, 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}, |
|
|
|
#{score,jdbcType=INTEGER}, #{timeDifference,jdbcType=INTEGER}, #{localStartTime,jdbcType=BIGINT}, |
|
|
|
#{localEndTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.game.bean.po.GameUserJoin"> |
|
|
|
insert into t_game_user_join |
|
|
@ -125,6 +129,12 @@ |
|
|
|
<if test="userId != null"> |
|
|
|
user_id, |
|
|
|
</if> |
|
|
|
<if test="nickname != null"> |
|
|
|
nickname, |
|
|
|
</if> |
|
|
|
<if test="avatarurl != null"> |
|
|
|
avatarUrl, |
|
|
|
</if> |
|
|
|
<if test="recordId != null"> |
|
|
|
record_id, |
|
|
|
</if> |
|
|
@ -160,14 +170,20 @@ |
|
|
|
<if test="userId != null"> |
|
|
|
#{userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="nickname != null"> |
|
|
|
#{nickname,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="avatarurl != null"> |
|
|
|
#{avatarurl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="recordId != null"> |
|
|
|
#{recordId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="times != null"> |
|
|
|
#{times,jdbcType=VARCHAR}, |
|
|
|
#{times,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="score != null"> |
|
|
|
#{score,jdbcType=VARCHAR}, |
|
|
|
#{score,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="timeDifference != null"> |
|
|
|
#{timeDifference,jdbcType=INTEGER}, |
|
|
@ -204,14 +220,20 @@ |
|
|
|
<if test="record.userId != null"> |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.nickname != null"> |
|
|
|
nickname = #{record.nickname,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.avatarurl != null"> |
|
|
|
avatarUrl = #{record.avatarurl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.recordId != null"> |
|
|
|
record_id = #{record.recordId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.times != null"> |
|
|
|
times = #{record.times,jdbcType=VARCHAR}, |
|
|
|
times = #{record.times,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.score != null"> |
|
|
|
score = #{record.score,jdbcType=VARCHAR}, |
|
|
|
score = #{record.score,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.timeDifference != null"> |
|
|
|
time_difference = #{record.timeDifference,jdbcType=INTEGER}, |
|
|
@ -240,9 +262,11 @@ |
|
|
|
update t_game_user_join |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
nickname = #{record.nickname,jdbcType=VARCHAR}, |
|
|
|
avatarUrl = #{record.avatarurl,jdbcType=VARCHAR}, |
|
|
|
record_id = #{record.recordId,jdbcType=BIGINT}, |
|
|
|
times = #{record.times,jdbcType=VARCHAR}, |
|
|
|
score = #{record.score,jdbcType=VARCHAR}, |
|
|
|
times = #{record.times,jdbcType=INTEGER}, |
|
|
|
score = #{record.score,jdbcType=INTEGER}, |
|
|
|
time_difference = #{record.timeDifference,jdbcType=INTEGER}, |
|
|
|
local_start_time = #{record.localStartTime,jdbcType=BIGINT}, |
|
|
|
local_end_time = #{record.localEndTime,jdbcType=BIGINT}, |
|
|
@ -259,14 +283,20 @@ |
|
|
|
<if test="userId != null"> |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="nickname != null"> |
|
|
|
nickname = #{nickname,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="avatarurl != null"> |
|
|
|
avatarUrl = #{avatarurl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="recordId != null"> |
|
|
|
record_id = #{recordId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="times != null"> |
|
|
|
times = #{times,jdbcType=VARCHAR}, |
|
|
|
times = #{times,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="score != null"> |
|
|
|
score = #{score,jdbcType=VARCHAR}, |
|
|
|
score = #{score,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="timeDifference != null"> |
|
|
|
time_difference = #{timeDifference,jdbcType=INTEGER}, |
|
|
@ -292,9 +322,11 @@ |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.game.bean.po.GameUserJoin"> |
|
|
|
update t_game_user_join |
|
|
|
set user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
nickname = #{nickname,jdbcType=VARCHAR}, |
|
|
|
avatarUrl = #{avatarurl,jdbcType=VARCHAR}, |
|
|
|
record_id = #{recordId,jdbcType=BIGINT}, |
|
|
|
times = #{times,jdbcType=VARCHAR}, |
|
|
|
score = #{score,jdbcType=VARCHAR}, |
|
|
|
times = #{times,jdbcType=INTEGER}, |
|
|
|
score = #{score,jdbcType=INTEGER}, |
|
|
|
time_difference = #{timeDifference,jdbcType=INTEGER}, |
|
|
|
local_start_time = #{localStartTime,jdbcType=BIGINT}, |
|
|
|
local_end_time = #{localEndTime,jdbcType=BIGINT}, |
|
|
|