|
|
@ -4,6 +4,7 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteTeamMember"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="player_id" jdbcType="BIGINT" property="playerId" /> |
|
|
|
<result column="compete_team_id" jdbcType="BIGINT" property="competeTeamId" /> |
|
|
|
<result column="captain" jdbcType="TINYINT" property="captain" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
@ -68,7 +69,7 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, player_id, captain, created_at, updated_at, rec_status |
|
|
|
id, player_id, compete_team_id, captain, created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteTeamMemberExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -101,12 +102,12 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteTeamMember"> |
|
|
|
insert into t_compete_team_member (id, player_id, captain, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{playerId,jdbcType=BIGINT}, #{captain,jdbcType=TINYINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
insert into t_compete_team_member (id, player_id, compete_team_id, |
|
|
|
captain, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{playerId,jdbcType=BIGINT}, #{competeTeamId,jdbcType=BIGINT}, |
|
|
|
#{captain,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteTeamMember"> |
|
|
|
insert into t_compete_team_member |
|
|
@ -117,6 +118,9 @@ |
|
|
|
<if test="playerId != null"> |
|
|
|
player_id, |
|
|
|
</if> |
|
|
|
<if test="competeTeamId != null"> |
|
|
|
compete_team_id, |
|
|
|
</if> |
|
|
|
<if test="captain != null"> |
|
|
|
captain, |
|
|
|
</if> |
|
|
@ -137,6 +141,9 @@ |
|
|
|
<if test="playerId != null"> |
|
|
|
#{playerId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="competeTeamId != null"> |
|
|
|
#{competeTeamId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="captain != null"> |
|
|
|
#{captain,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
@ -166,6 +173,9 @@ |
|
|
|
<if test="record.playerId != null"> |
|
|
|
player_id = #{record.playerId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.competeTeamId != null"> |
|
|
|
compete_team_id = #{record.competeTeamId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.captain != null"> |
|
|
|
captain = #{record.captain,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
@ -187,6 +197,7 @@ |
|
|
|
update t_compete_team_member |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
player_id = #{record.playerId,jdbcType=BIGINT}, |
|
|
|
compete_team_id = #{record.competeTeamId,jdbcType=BIGINT}, |
|
|
|
captain = #{record.captain,jdbcType=TINYINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
@ -201,6 +212,9 @@ |
|
|
|
<if test="playerId != null"> |
|
|
|
player_id = #{playerId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="competeTeamId != null"> |
|
|
|
compete_team_id = #{competeTeamId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="captain != null"> |
|
|
|
captain = #{captain,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
@ -219,6 +233,7 @@ |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteTeamMember"> |
|
|
|
update t_compete_team_member |
|
|
|
set player_id = #{playerId,jdbcType=BIGINT}, |
|
|
|
compete_team_id = #{competeTeamId,jdbcType=BIGINT}, |
|
|
|
captain = #{captain,jdbcType=TINYINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|