|
|
@ -15,6 +15,7 @@ |
|
|
|
<result column="compete_group_id" jdbcType="BIGINT" property="competeGroupId" /> |
|
|
|
<result column="success" jdbcType="TINYINT" property="success" /> |
|
|
|
<result column="company_id" jdbcType="BIGINT" property="companyId" /> |
|
|
|
<result column="group_remark" jdbcType="TINYINT" property="groupRemark" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -76,7 +77,7 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, creator, project_id, compete_time_id, gender_group, certificate, qr_code, created_at, |
|
|
|
updated_at, rec_status, compete_group_id, success, company_id |
|
|
|
updated_at, rec_status, compete_group_id, success, company_id, group_remark |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteTeamExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -113,12 +114,12 @@ |
|
|
|
compete_time_id, gender_group, certificate, |
|
|
|
qr_code, created_at, updated_at, |
|
|
|
rec_status, compete_group_id, success, |
|
|
|
company_id) |
|
|
|
company_id, group_remark) |
|
|
|
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}, #{competeGroupId,jdbcType=BIGINT}, #{success,jdbcType=TINYINT}, |
|
|
|
#{companyId,jdbcType=BIGINT}) |
|
|
|
#{companyId,jdbcType=BIGINT}, #{groupRemark,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteTeam"> |
|
|
|
insert into t_compete_team |
|
|
@ -162,6 +163,9 @@ |
|
|
|
<if test="companyId != null"> |
|
|
|
company_id, |
|
|
|
</if> |
|
|
|
<if test="groupRemark != null"> |
|
|
|
group_remark, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -203,6 +207,9 @@ |
|
|
|
<if test="companyId != null"> |
|
|
|
#{companyId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="groupRemark != null"> |
|
|
|
#{groupRemark,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteTeamExample" resultType="java.lang.Long"> |
|
|
@ -253,6 +260,9 @@ |
|
|
|
<if test="record.companyId != null"> |
|
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.groupRemark != null"> |
|
|
|
group_remark = #{record.groupRemark,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -272,7 +282,8 @@ |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
compete_group_id = #{record.competeGroupId,jdbcType=BIGINT}, |
|
|
|
success = #{record.success,jdbcType=TINYINT}, |
|
|
|
company_id = #{record.companyId,jdbcType=BIGINT} |
|
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
|
group_remark = #{record.groupRemark,jdbcType=TINYINT} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -316,6 +327,9 @@ |
|
|
|
<if test="companyId != null"> |
|
|
|
company_id = #{companyId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="groupRemark != null"> |
|
|
|
group_remark = #{groupRemark,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -332,7 +346,8 @@ |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
compete_group_id = #{competeGroupId,jdbcType=BIGINT}, |
|
|
|
success = #{success,jdbcType=TINYINT}, |
|
|
|
company_id = #{companyId,jdbcType=BIGINT} |
|
|
|
company_id = #{companyId,jdbcType=BIGINT}, |
|
|
|
group_remark = #{groupRemark,jdbcType=TINYINT} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |