|
|
@ -6,6 +6,7 @@ |
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
|
<result column="nickname" jdbcType="VARCHAR" property="nickname" /> |
|
|
|
<result column="avatar_url" jdbcType="VARCHAR" property="avatarUrl" /> |
|
|
|
<result column="phone" jdbcType="VARCHAR" property="phone" /> |
|
|
|
<result column="record_id" jdbcType="BIGINT" property="recordId" /> |
|
|
|
<result column="times" jdbcType="INTEGER" property="times" /> |
|
|
|
<result column="score" jdbcType="INTEGER" property="score" /> |
|
|
@ -75,8 +76,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, user_id, nickname, avatar_url, record_id, times, score, time_difference, local_start_time, |
|
|
|
local_end_time, created_at, updated_at, rec_status |
|
|
|
id, user_id, nickname, avatar_url, phone, 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 |
|
|
@ -110,15 +111,15 @@ |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.game.bean.po.GameUserJoin"> |
|
|
|
insert into t_game_user_join (id, user_id, nickname, |
|
|
|
avatar_url, record_id, times, |
|
|
|
score, time_difference, local_start_time, |
|
|
|
local_end_time, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
avatar_url, phone, 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}) |
|
|
|
#{avatarUrl,jdbcType=VARCHAR}, #{phone,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 |
|
|
@ -135,6 +136,9 @@ |
|
|
|
<if test="avatarUrl != null"> |
|
|
|
avatar_url, |
|
|
|
</if> |
|
|
|
<if test="phone != null"> |
|
|
|
phone, |
|
|
|
</if> |
|
|
|
<if test="recordId != null"> |
|
|
|
record_id, |
|
|
|
</if> |
|
|
@ -176,6 +180,9 @@ |
|
|
|
<if test="avatarUrl != null"> |
|
|
|
#{avatarUrl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="phone != null"> |
|
|
|
#{phone,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="recordId != null"> |
|
|
|
#{recordId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -226,6 +233,9 @@ |
|
|
|
<if test="record.avatarUrl != null"> |
|
|
|
avatar_url = #{record.avatarUrl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.phone != null"> |
|
|
|
phone = #{record.phone,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.recordId != null"> |
|
|
|
record_id = #{record.recordId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -264,6 +274,7 @@ |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
nickname = #{record.nickname,jdbcType=VARCHAR}, |
|
|
|
avatar_url = #{record.avatarUrl,jdbcType=VARCHAR}, |
|
|
|
phone = #{record.phone,jdbcType=VARCHAR}, |
|
|
|
record_id = #{record.recordId,jdbcType=BIGINT}, |
|
|
|
times = #{record.times,jdbcType=INTEGER}, |
|
|
|
score = #{record.score,jdbcType=INTEGER}, |
|
|
@ -289,6 +300,9 @@ |
|
|
|
<if test="avatarUrl != null"> |
|
|
|
avatar_url = #{avatarUrl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="phone != null"> |
|
|
|
phone = #{phone,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="recordId != null"> |
|
|
|
record_id = #{recordId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -324,6 +338,7 @@ |
|
|
|
set user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
nickname = #{nickname,jdbcType=VARCHAR}, |
|
|
|
avatar_url = #{avatarUrl,jdbcType=VARCHAR}, |
|
|
|
phone = #{phone,jdbcType=VARCHAR}, |
|
|
|
record_id = #{recordId,jdbcType=BIGINT}, |
|
|
|
times = #{times,jdbcType=INTEGER}, |
|
|
|
score = #{score,jdbcType=INTEGER}, |
|
|
|