|
|
@ -4,6 +4,7 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.game.bean.po.GameRecord"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="user_pay_id" jdbcType="BIGINT" property="userPayId" /> |
|
|
|
<result column="task_id" jdbcType="BIGINT" property="taskId" /> |
|
|
|
<result column="url" jdbcType="VARCHAR" property="url" /> |
|
|
|
<result column="QR_code_url" jdbcType="VARCHAR" property="qrCodeUrl" /> |
|
|
|
<result column="time_difference" jdbcType="INTEGER" property="timeDifference" /> |
|
|
@ -73,8 +74,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, user_pay_id, url, QR_code_url, time_difference, start_time, end_time, game_status, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
id, user_pay_id, task_id, url, QR_code_url, time_difference, start_time, end_time, |
|
|
|
game_status, created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.game.bean.po.GameRecordExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -107,14 +108,16 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.game.bean.po.GameRecord"> |
|
|
|
insert into t_game_record (id, user_pay_id, url, |
|
|
|
QR_code_url, time_difference, start_time, |
|
|
|
end_time, game_status, created_at, |
|
|
|
updated_at, rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{userPayId,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}) |
|
|
|
insert into t_game_record (id, user_pay_id, task_id, |
|
|
|
url, QR_code_url, time_difference, |
|
|
|
start_time, end_time, game_status, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
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} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.game.bean.po.GameRecord"> |
|
|
|
insert into t_game_record |
|
|
@ -125,6 +128,9 @@ |
|
|
|
<if test="userPayId != null"> |
|
|
|
user_pay_id, |
|
|
|
</if> |
|
|
|
<if test="taskId != null"> |
|
|
|
task_id, |
|
|
|
</if> |
|
|
|
<if test="url != null"> |
|
|
|
url, |
|
|
|
</if> |
|
|
@ -160,6 +166,9 @@ |
|
|
|
<if test="userPayId != null"> |
|
|
|
#{userPayId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="taskId != null"> |
|
|
|
#{taskId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="url != null"> |
|
|
|
#{url,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
@ -204,6 +213,9 @@ |
|
|
|
<if test="record.userPayId != null"> |
|
|
|
user_pay_id = #{record.userPayId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.taskId != null"> |
|
|
|
task_id = #{record.taskId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.url != null"> |
|
|
|
url = #{record.url,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
@ -240,6 +252,7 @@ |
|
|
|
update t_game_record |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
user_pay_id = #{record.userPayId,jdbcType=BIGINT}, |
|
|
|
task_id = #{record.taskId,jdbcType=BIGINT}, |
|
|
|
url = #{record.url,jdbcType=VARCHAR}, |
|
|
|
QR_code_url = #{record.qrCodeUrl,jdbcType=VARCHAR}, |
|
|
|
time_difference = #{record.timeDifference,jdbcType=INTEGER}, |
|
|
@ -259,6 +272,9 @@ |
|
|
|
<if test="userPayId != null"> |
|
|
|
user_pay_id = #{userPayId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="taskId != null"> |
|
|
|
task_id = #{taskId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="url != null"> |
|
|
|
url = #{url,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
@ -292,6 +308,7 @@ |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.game.bean.po.GameRecord"> |
|
|
|
update t_game_record |
|
|
|
set user_pay_id = #{userPayId,jdbcType=BIGINT}, |
|
|
|
task_id = #{taskId,jdbcType=BIGINT}, |
|
|
|
url = #{url,jdbcType=VARCHAR}, |
|
|
|
QR_code_url = #{qrCodeUrl,jdbcType=VARCHAR}, |
|
|
|
time_difference = #{timeDifference,jdbcType=INTEGER}, |
|
|
|