|
|
@ -14,7 +14,7 @@ |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
<result column="group" jdbcType="TINYINT" property="group" /> |
|
|
|
<result column="game_group" jdbcType="TINYINT" property="gameGroup" /> |
|
|
|
<result column="duration" jdbcType="INTEGER" property="duration" /> |
|
|
|
<result column="member_limit" jdbcType="INTEGER" property="memberLimit" /> |
|
|
|
<result column="rank_rule" jdbcType="TINYINT" property="rankRule" /> |
|
|
@ -79,7 +79,8 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, user_pay_id, task_id, url, QR_code_url, time_difference, start_time, end_time, |
|
|
|
game_status, created_at, updated_at, rec_status, group, duration, member_limit, rank_rule |
|
|
|
game_status, created_at, updated_at, rec_status, game_group, duration, member_limit, |
|
|
|
rank_rule |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.game.bean.po.GameRecordExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -116,13 +117,13 @@ |
|
|
|
url, QR_code_url, time_difference, |
|
|
|
start_time, end_time, game_status, |
|
|
|
created_at, updated_at, rec_status, |
|
|
|
group, duration, member_limit, |
|
|
|
game_group, duration, member_limit, |
|
|
|
rank_rule) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{userPayId,jdbcType=BIGINT}, #{taskId,jdbcType=BIGINT}, |
|
|
|
#{url,jdbcType=VARCHAR}, #{qrCodeUrl,jdbcType=VARCHAR}, #{timeDifference,jdbcType=INTEGER}, |
|
|
|
#{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{gameStatus,jdbcType=TINYINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, |
|
|
|
#{group,jdbcType=TINYINT}, #{duration,jdbcType=INTEGER}, #{memberLimit,jdbcType=INTEGER}, |
|
|
|
#{gameGroup,jdbcType=TINYINT}, #{duration,jdbcType=INTEGER}, #{memberLimit,jdbcType=INTEGER}, |
|
|
|
#{rankRule,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.game.bean.po.GameRecord"> |
|
|
@ -164,8 +165,8 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status, |
|
|
|
</if> |
|
|
|
<if test="group != null"> |
|
|
|
group, |
|
|
|
<if test="gameGroup != null"> |
|
|
|
game_group, |
|
|
|
</if> |
|
|
|
<if test="duration != null"> |
|
|
|
duration, |
|
|
@ -214,8 +215,8 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="group != null"> |
|
|
|
#{group,jdbcType=TINYINT}, |
|
|
|
<if test="gameGroup != null"> |
|
|
|
#{gameGroup,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="duration != null"> |
|
|
|
#{duration,jdbcType=INTEGER}, |
|
|
@ -273,8 +274,8 @@ |
|
|
|
<if test="record.recStatus != null"> |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.group != null"> |
|
|
|
group = #{record.group,jdbcType=TINYINT}, |
|
|
|
<if test="record.gameGroup != null"> |
|
|
|
game_group = #{record.gameGroup,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.duration != null"> |
|
|
|
duration = #{record.duration,jdbcType=INTEGER}, |
|
|
@ -304,7 +305,7 @@ |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
group = #{record.group,jdbcType=TINYINT}, |
|
|
|
game_group = #{record.gameGroup,jdbcType=TINYINT}, |
|
|
|
duration = #{record.duration,jdbcType=INTEGER}, |
|
|
|
member_limit = #{record.memberLimit,jdbcType=INTEGER}, |
|
|
|
rank_rule = #{record.rankRule,jdbcType=TINYINT} |
|
|
@ -348,8 +349,8 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="group != null"> |
|
|
|
group = #{group,jdbcType=TINYINT}, |
|
|
|
<if test="gameGroup != null"> |
|
|
|
game_group = #{gameGroup,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="duration != null"> |
|
|
|
duration = #{duration,jdbcType=INTEGER}, |
|
|
@ -376,7 +377,7 @@ |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
group = #{group,jdbcType=TINYINT}, |
|
|
|
game_group = #{gameGroup,jdbcType=TINYINT}, |
|
|
|
duration = #{duration,jdbcType=INTEGER}, |
|
|
|
member_limit = #{memberLimit,jdbcType=INTEGER}, |
|
|
|
rank_rule = #{rankRule,jdbcType=TINYINT} |
|
|
|