|
@ -14,6 +14,10 @@ |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
|
|
<result column="group" jdbcType="TINYINT" property="group" /> |
|
|
|
|
|
<result column="duration" jdbcType="INTEGER" property="duration" /> |
|
|
|
|
|
<result column="member_limit" jdbcType="INTEGER" property="memberLimit" /> |
|
|
|
|
|
<result column="rank_rule" jdbcType="TINYINT" property="rankRule" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<where> |
|
|
<where> |
|
@ -75,7 +79,7 @@ |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, user_pay_id, task_id, url, QR_code_url, time_difference, start_time, end_time, |
|
|
id, user_pay_id, task_id, url, QR_code_url, time_difference, start_time, end_time, |
|
|
game_status, created_at, updated_at, rec_status |
|
|
game_status, created_at, updated_at, rec_status, group, duration, member_limit, rank_rule |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.game.bean.po.GameRecordExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.game.bean.po.GameRecordExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
@ -111,13 +115,15 @@ |
|
|
insert into t_game_record (id, user_pay_id, task_id, |
|
|
insert into t_game_record (id, user_pay_id, task_id, |
|
|
url, QR_code_url, time_difference, |
|
|
url, QR_code_url, time_difference, |
|
|
start_time, end_time, game_status, |
|
|
start_time, end_time, game_status, |
|
|
created_at, updated_at, rec_status |
|
|
created_at, updated_at, rec_status, |
|
|
) |
|
|
group, duration, member_limit, |
|
|
|
|
|
rank_rule) |
|
|
values (#{id,jdbcType=BIGINT}, #{userPayId,jdbcType=BIGINT}, #{taskId,jdbcType=BIGINT}, |
|
|
values (#{id,jdbcType=BIGINT}, #{userPayId,jdbcType=BIGINT}, #{taskId,jdbcType=BIGINT}, |
|
|
#{url,jdbcType=VARCHAR}, #{qrCodeUrl,jdbcType=VARCHAR}, #{timeDifference,jdbcType=INTEGER}, |
|
|
#{url,jdbcType=VARCHAR}, #{qrCodeUrl,jdbcType=VARCHAR}, #{timeDifference,jdbcType=INTEGER}, |
|
|
#{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{gameStatus,jdbcType=TINYINT}, |
|
|
#{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{gameStatus,jdbcType=TINYINT}, |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, |
|
|
) |
|
|
#{group,jdbcType=TINYINT}, #{duration,jdbcType=INTEGER}, #{memberLimit,jdbcType=INTEGER}, |
|
|
|
|
|
#{rankRule,jdbcType=TINYINT}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.game.bean.po.GameRecord"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.game.bean.po.GameRecord"> |
|
|
insert into t_game_record |
|
|
insert into t_game_record |
|
@ -158,6 +164,18 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status, |
|
|
rec_status, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="group != null"> |
|
|
|
|
|
group, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="duration != null"> |
|
|
|
|
|
duration, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="memberLimit != null"> |
|
|
|
|
|
member_limit, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="rankRule != null"> |
|
|
|
|
|
rank_rule, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
@ -196,6 +214,18 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="group != null"> |
|
|
|
|
|
#{group,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="duration != null"> |
|
|
|
|
|
#{duration,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="memberLimit != null"> |
|
|
|
|
|
#{memberLimit,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="rankRule != null"> |
|
|
|
|
|
#{rankRule,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.ccsens.game.bean.po.GameRecordExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.ccsens.game.bean.po.GameRecordExample" resultType="java.lang.Long"> |
|
@ -243,6 +273,18 @@ |
|
|
<if test="record.recStatus != null"> |
|
|
<if test="record.recStatus != null"> |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.group != null"> |
|
|
|
|
|
group = #{record.group,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.duration != null"> |
|
|
|
|
|
duration = #{record.duration,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.memberLimit != null"> |
|
|
|
|
|
member_limit = #{record.memberLimit,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.rankRule != null"> |
|
|
|
|
|
rank_rule = #{record.rankRule,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
@ -261,7 +303,11 @@ |
|
|
game_status = #{record.gameStatus,jdbcType=TINYINT}, |
|
|
game_status = #{record.gameStatus,jdbcType=TINYINT}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
|
|
group = #{record.group,jdbcType=TINYINT}, |
|
|
|
|
|
duration = #{record.duration,jdbcType=INTEGER}, |
|
|
|
|
|
member_limit = #{record.memberLimit,jdbcType=INTEGER}, |
|
|
|
|
|
rank_rule = #{record.rankRule,jdbcType=TINYINT} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
@ -302,6 +348,18 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="group != null"> |
|
|
|
|
|
group = #{group,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="duration != null"> |
|
|
|
|
|
duration = #{duration,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="memberLimit != null"> |
|
|
|
|
|
member_limit = #{memberLimit,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="rankRule != null"> |
|
|
|
|
|
rank_rule = #{rankRule,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
@ -317,7 +375,11 @@ |
|
|
game_status = #{gameStatus,jdbcType=TINYINT}, |
|
|
game_status = #{gameStatus,jdbcType=TINYINT}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
|
|
group = #{group,jdbcType=TINYINT}, |
|
|
|
|
|
duration = #{duration,jdbcType=INTEGER}, |
|
|
|
|
|
member_limit = #{memberLimit,jdbcType=INTEGER}, |
|
|
|
|
|
rank_rule = #{rankRule,jdbcType=TINYINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |