|
|
@ -4,7 +4,7 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteTeam"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="creator" jdbcType="BIGINT" property="creator" /> |
|
|
|
<result column="porject_id" jdbcType="BIGINT" property="porjectId" /> |
|
|
|
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
|
|
|
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" /> |
|
|
|
<result column="gender_group" jdbcType="TINYINT" property="genderGroup" /> |
|
|
|
<result column="certificate" jdbcType="TINYINT" property="certificate" /> |
|
|
@ -72,7 +72,7 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, creator, porject_id, compete_time_id, gender_group, certificate, qr_code, created_at, |
|
|
|
id, creator, project_id, compete_time_id, gender_group, certificate, qr_code, created_at, |
|
|
|
updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteTeamExample" resultMap="BaseResultMap"> |
|
|
@ -106,11 +106,11 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteTeam"> |
|
|
|
insert into t_compete_team (id, creator, porject_id, |
|
|
|
insert into t_compete_team (id, creator, project_id, |
|
|
|
compete_time_id, gender_group, certificate, |
|
|
|
qr_code, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT}, #{porjectId,jdbcType=BIGINT}, |
|
|
|
values (#{id,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, |
|
|
|
#{competeTimeId,jdbcType=BIGINT}, #{genderGroup,jdbcType=TINYINT}, #{certificate,jdbcType=TINYINT}, |
|
|
|
#{qrCode,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
@ -124,8 +124,8 @@ |
|
|
|
<if test="creator != null"> |
|
|
|
creator, |
|
|
|
</if> |
|
|
|
<if test="porjectId != null"> |
|
|
|
porject_id, |
|
|
|
<if test="projectId != null"> |
|
|
|
project_id, |
|
|
|
</if> |
|
|
|
<if test="competeTimeId != null"> |
|
|
|
compete_time_id, |
|
|
@ -156,8 +156,8 @@ |
|
|
|
<if test="creator != null"> |
|
|
|
#{creator,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="porjectId != null"> |
|
|
|
#{porjectId,jdbcType=BIGINT}, |
|
|
|
<if test="projectId != null"> |
|
|
|
#{projectId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="competeTimeId != null"> |
|
|
|
#{competeTimeId,jdbcType=BIGINT}, |
|
|
@ -197,8 +197,8 @@ |
|
|
|
<if test="record.creator != null"> |
|
|
|
creator = #{record.creator,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.porjectId != null"> |
|
|
|
porject_id = #{record.porjectId,jdbcType=BIGINT}, |
|
|
|
<if test="record.projectId != null"> |
|
|
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.competeTimeId != null"> |
|
|
|
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|
|
@ -230,7 +230,7 @@ |
|
|
|
update t_compete_team |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
creator = #{record.creator,jdbcType=BIGINT}, |
|
|
|
porject_id = #{record.porjectId,jdbcType=BIGINT}, |
|
|
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
|
|
|
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|
|
|
gender_group = #{record.genderGroup,jdbcType=TINYINT}, |
|
|
|
certificate = #{record.certificate,jdbcType=TINYINT}, |
|
|
@ -248,8 +248,8 @@ |
|
|
|
<if test="creator != null"> |
|
|
|
creator = #{creator,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="porjectId != null"> |
|
|
|
porject_id = #{porjectId,jdbcType=BIGINT}, |
|
|
|
<if test="projectId != null"> |
|
|
|
project_id = #{projectId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="competeTimeId != null"> |
|
|
|
compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|
|
@ -278,7 +278,7 @@ |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteTeam"> |
|
|
|
update t_compete_team |
|
|
|
set creator = #{creator,jdbcType=BIGINT}, |
|
|
|
porject_id = #{porjectId,jdbcType=BIGINT}, |
|
|
|
project_id = #{projectId,jdbcType=BIGINT}, |
|
|
|
compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|
|
|
gender_group = #{genderGroup,jdbcType=TINYINT}, |
|
|
|
certificate = #{certificate,jdbcType=TINYINT}, |
|
|
|