|
|
@ -7,6 +7,7 @@ |
|
|
|
<result column="record_id" jdbcType="BIGINT" property="recordId" /> |
|
|
|
<result column="times" jdbcType="VARCHAR" property="times" /> |
|
|
|
<result column="score" jdbcType="VARCHAR" 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" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
@ -72,8 +73,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, member_id, record_id, times, score, local_start_time, local_end_time, created_at, |
|
|
|
updated_at, rec_status |
|
|
|
id, member_id, 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.GameMemberJoinExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -107,13 +108,13 @@ |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.game.bean.po.GameMemberJoin"> |
|
|
|
insert into t_game_member_join (id, member_id, record_id, |
|
|
|
times, score, local_start_time, |
|
|
|
local_end_time, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
times, score, time_difference, |
|
|
|
local_start_time, local_end_time, created_at, |
|
|
|
updated_at, rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{recordId,jdbcType=BIGINT}, |
|
|
|
#{times,jdbcType=VARCHAR}, #{score,jdbcType=VARCHAR}, #{localStartTime,jdbcType=BIGINT}, |
|
|
|
#{localEndTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
#{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> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.game.bean.po.GameMemberJoin"> |
|
|
|
insert into t_game_member_join |
|
|
@ -133,6 +134,9 @@ |
|
|
|
<if test="score != null"> |
|
|
|
score, |
|
|
|
</if> |
|
|
|
<if test="timeDifference != null"> |
|
|
|
time_difference, |
|
|
|
</if> |
|
|
|
<if test="localStartTime != null"> |
|
|
|
local_start_time, |
|
|
|
</if> |
|
|
@ -165,6 +169,9 @@ |
|
|
|
<if test="score != null"> |
|
|
|
#{score,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="timeDifference != null"> |
|
|
|
#{timeDifference,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="localStartTime != null"> |
|
|
|
#{localStartTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -206,6 +213,9 @@ |
|
|
|
<if test="record.score != null"> |
|
|
|
score = #{record.score,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.timeDifference != null"> |
|
|
|
time_difference = #{record.timeDifference,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.localStartTime != null"> |
|
|
|
local_start_time = #{record.localStartTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -233,6 +243,7 @@ |
|
|
|
record_id = #{record.recordId,jdbcType=BIGINT}, |
|
|
|
times = #{record.times,jdbcType=VARCHAR}, |
|
|
|
score = #{record.score,jdbcType=VARCHAR}, |
|
|
|
time_difference = #{record.timeDifference,jdbcType=INTEGER}, |
|
|
|
local_start_time = #{record.localStartTime,jdbcType=BIGINT}, |
|
|
|
local_end_time = #{record.localEndTime,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
@ -257,6 +268,9 @@ |
|
|
|
<if test="score != null"> |
|
|
|
score = #{score,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="timeDifference != null"> |
|
|
|
time_difference = #{timeDifference,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="localStartTime != null"> |
|
|
|
local_start_time = #{localStartTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -281,6 +295,7 @@ |
|
|
|
record_id = #{recordId,jdbcType=BIGINT}, |
|
|
|
times = #{times,jdbcType=VARCHAR}, |
|
|
|
score = #{score,jdbcType=VARCHAR}, |
|
|
|
time_difference = #{timeDifference,jdbcType=INTEGER}, |
|
|
|
local_start_time = #{localStartTime,jdbcType=BIGINT}, |
|
|
|
local_end_time = #{localEndTime,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|