|
|
@ -7,6 +7,8 @@ |
|
|
|
<result column="record_id" jdbcType="BIGINT" property="recordId" /> |
|
|
|
<result column="times" jdbcType="VARCHAR" property="times" /> |
|
|
|
<result column="score" jdbcType="VARCHAR" property="score" /> |
|
|
|
<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" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
@ -70,7 +72,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, member_id, record_id, times, score, created_at, updated_at, rec_status |
|
|
|
id, member_id, record_id, times, score, 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 |
|
|
@ -104,11 +107,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, created_at, |
|
|
|
updated_at, rec_status) |
|
|
|
times, score, 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}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
|
#{times,jdbcType=VARCHAR}, #{score,jdbcType=VARCHAR}, #{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 |
|
|
@ -128,6 +133,12 @@ |
|
|
|
<if test="score != null"> |
|
|
|
score, |
|
|
|
</if> |
|
|
|
<if test="localStartTime != null"> |
|
|
|
local_start_time, |
|
|
|
</if> |
|
|
|
<if test="localEndTime != null"> |
|
|
|
local_end_time, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
created_at, |
|
|
|
</if> |
|
|
@ -154,6 +165,12 @@ |
|
|
|
<if test="score != null"> |
|
|
|
#{score,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="localStartTime != null"> |
|
|
|
#{localStartTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="localEndTime != null"> |
|
|
|
#{localEndTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -189,6 +206,12 @@ |
|
|
|
<if test="record.score != null"> |
|
|
|
score = #{record.score,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.localStartTime != null"> |
|
|
|
local_start_time = #{record.localStartTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.localEndTime != null"> |
|
|
|
local_end_time = #{record.localEndTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.createdAt != null"> |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -210,6 +233,8 @@ |
|
|
|
record_id = #{record.recordId,jdbcType=BIGINT}, |
|
|
|
times = #{record.times,jdbcType=VARCHAR}, |
|
|
|
score = #{record.score,jdbcType=VARCHAR}, |
|
|
|
local_start_time = #{record.localStartTime,jdbcType=BIGINT}, |
|
|
|
local_end_time = #{record.localEndTime,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
@ -232,6 +257,12 @@ |
|
|
|
<if test="score != null"> |
|
|
|
score = #{score,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="localStartTime != null"> |
|
|
|
local_start_time = #{localStartTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="localEndTime != null"> |
|
|
|
local_end_time = #{localEndTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -250,6 +281,8 @@ |
|
|
|
record_id = #{recordId,jdbcType=BIGINT}, |
|
|
|
times = #{times,jdbcType=VARCHAR}, |
|
|
|
score = #{score,jdbcType=VARCHAR}, |
|
|
|
local_start_time = #{localStartTime,jdbcType=BIGINT}, |
|
|
|
local_end_time = #{localEndTime,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
|