|
|
@ -11,7 +11,7 @@ |
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
|
<result column="join_num" jdbcType="INTEGER" property="joinNum" /> |
|
|
|
<result column="leader_num" jdbcType="INTEGER" property="leaderNum" /> |
|
|
|
<result column="judgment_num" jdbcType="INTEGER" property="judgmentNum" /> |
|
|
|
<result column="coach_num" jdbcType="INTEGER" property="coachNum" /> |
|
|
|
<result column="authorization" jdbcType="TINYINT" property="authorization" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
@ -77,7 +77,7 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, name, type, compete_time_id, contacts_name, contacts_phone, user_id, join_num, |
|
|
|
leader_num, judgment_num, authorization, created_at, updated_at, rec_status |
|
|
|
leader_num, coach_num, authorization, created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteCompanyExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -113,12 +113,12 @@ |
|
|
|
insert into t_compete_company (id, name, type, |
|
|
|
compete_time_id, contacts_name, contacts_phone, |
|
|
|
user_id, join_num, leader_num, |
|
|
|
judgment_num, authorization, created_at, |
|
|
|
coach_num, authorization, created_at, |
|
|
|
updated_at, rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, |
|
|
|
#{competeTimeId,jdbcType=BIGINT}, #{contactsName,jdbcType=VARCHAR}, #{contactsPhone,jdbcType=VARCHAR}, |
|
|
|
#{userId,jdbcType=BIGINT}, #{joinNum,jdbcType=INTEGER}, #{leaderNum,jdbcType=INTEGER}, |
|
|
|
#{judgmentNum,jdbcType=INTEGER}, #{authorization,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{coachNum,jdbcType=INTEGER}, #{authorization,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteCompany"> |
|
|
@ -151,8 +151,8 @@ |
|
|
|
<if test="leaderNum != null"> |
|
|
|
leader_num, |
|
|
|
</if> |
|
|
|
<if test="judgmentNum != null"> |
|
|
|
judgment_num, |
|
|
|
<if test="coachNum != null"> |
|
|
|
coach_num, |
|
|
|
</if> |
|
|
|
<if test="authorization != null"> |
|
|
|
authorization, |
|
|
@ -195,8 +195,8 @@ |
|
|
|
<if test="leaderNum != null"> |
|
|
|
#{leaderNum,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="judgmentNum != null"> |
|
|
|
#{judgmentNum,jdbcType=INTEGER}, |
|
|
|
<if test="coachNum != null"> |
|
|
|
#{coachNum,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="authorization != null"> |
|
|
|
#{authorization,jdbcType=TINYINT}, |
|
|
@ -248,8 +248,8 @@ |
|
|
|
<if test="record.leaderNum != null"> |
|
|
|
leader_num = #{record.leaderNum,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.judgmentNum != null"> |
|
|
|
judgment_num = #{record.judgmentNum,jdbcType=INTEGER}, |
|
|
|
<if test="record.coachNum != null"> |
|
|
|
coach_num = #{record.coachNum,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.authorization != null"> |
|
|
|
authorization = #{record.authorization,jdbcType=TINYINT}, |
|
|
@ -279,7 +279,7 @@ |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
join_num = #{record.joinNum,jdbcType=INTEGER}, |
|
|
|
leader_num = #{record.leaderNum,jdbcType=INTEGER}, |
|
|
|
judgment_num = #{record.judgmentNum,jdbcType=INTEGER}, |
|
|
|
coach_num = #{record.coachNum,jdbcType=INTEGER}, |
|
|
|
authorization = #{record.authorization,jdbcType=TINYINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
@ -315,8 +315,8 @@ |
|
|
|
<if test="leaderNum != null"> |
|
|
|
leader_num = #{leaderNum,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="judgmentNum != null"> |
|
|
|
judgment_num = #{judgmentNum,jdbcType=INTEGER}, |
|
|
|
<if test="coachNum != null"> |
|
|
|
coach_num = #{coachNum,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="authorization != null"> |
|
|
|
authorization = #{authorization,jdbcType=TINYINT}, |
|
|
@ -343,7 +343,7 @@ |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
join_num = #{joinNum,jdbcType=INTEGER}, |
|
|
|
leader_num = #{leaderNum,jdbcType=INTEGER}, |
|
|
|
judgment_num = #{judgmentNum,jdbcType=INTEGER}, |
|
|
|
coach_num = #{coachNum,jdbcType=INTEGER}, |
|
|
|
authorization = #{authorization,jdbcType=TINYINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|