|
|
@ -12,7 +12,7 @@ |
|
|
|
<result column="id_card_back" jdbcType="VARCHAR" property="idCardBack" /> |
|
|
|
<result column="prove_img" jdbcType="VARCHAR" property="proveImg" /> |
|
|
|
<result column="compete_group_id" jdbcType="BIGINT" property="competeGroupId" /> |
|
|
|
<result column="company_name" jdbcType="VARCHAR" property="companyName" /> |
|
|
|
<result column="company_id" jdbcType="BIGINT" property="companyId" /> |
|
|
|
<result column="authorization" jdbcType="TINYINT" property="authorization" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
@ -78,7 +78,7 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, user_id, name, id_card, phone, gender, id_card_front, id_card_back, prove_img, |
|
|
|
compete_group_id, company_name, authorization, created_at, updated_at, rec_status |
|
|
|
compete_group_id, company_id, authorization, created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompetePlayerExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -114,13 +114,13 @@ |
|
|
|
insert into t_compete_player (id, user_id, name, |
|
|
|
id_card, phone, gender, |
|
|
|
id_card_front, id_card_back, prove_img, |
|
|
|
compete_group_id, company_name, authorization, |
|
|
|
compete_group_id, company_id, authorization, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, |
|
|
|
#{idCard,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, |
|
|
|
#{idCardFront,jdbcType=VARCHAR}, #{idCardBack,jdbcType=VARCHAR}, #{proveImg,jdbcType=VARCHAR}, |
|
|
|
#{competeGroupId,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, #{authorization,jdbcType=TINYINT}, |
|
|
|
#{competeGroupId,jdbcType=BIGINT}, #{companyId,jdbcType=BIGINT}, #{authorization,jdbcType=TINYINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
</insert> |
|
|
@ -157,8 +157,8 @@ |
|
|
|
<if test="competeGroupId != null"> |
|
|
|
compete_group_id, |
|
|
|
</if> |
|
|
|
<if test="companyName != null"> |
|
|
|
company_name, |
|
|
|
<if test="companyId != null"> |
|
|
|
company_id, |
|
|
|
</if> |
|
|
|
<if test="authorization != null"> |
|
|
|
authorization, |
|
|
@ -204,8 +204,8 @@ |
|
|
|
<if test="competeGroupId != null"> |
|
|
|
#{competeGroupId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="companyName != null"> |
|
|
|
#{companyName,jdbcType=VARCHAR}, |
|
|
|
<if test="companyId != null"> |
|
|
|
#{companyId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="authorization != null"> |
|
|
|
#{authorization,jdbcType=TINYINT}, |
|
|
@ -260,8 +260,8 @@ |
|
|
|
<if test="record.competeGroupId != null"> |
|
|
|
compete_group_id = #{record.competeGroupId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.companyName != null"> |
|
|
|
company_name = #{record.companyName,jdbcType=VARCHAR}, |
|
|
|
<if test="record.companyId != null"> |
|
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.authorization != null"> |
|
|
|
authorization = #{record.authorization,jdbcType=TINYINT}, |
|
|
@ -292,7 +292,7 @@ |
|
|
|
id_card_back = #{record.idCardBack,jdbcType=VARCHAR}, |
|
|
|
prove_img = #{record.proveImg,jdbcType=VARCHAR}, |
|
|
|
compete_group_id = #{record.competeGroupId,jdbcType=BIGINT}, |
|
|
|
company_name = #{record.companyName,jdbcType=VARCHAR}, |
|
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
|
authorization = #{record.authorization,jdbcType=TINYINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
@ -331,8 +331,8 @@ |
|
|
|
<if test="competeGroupId != null"> |
|
|
|
compete_group_id = #{competeGroupId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="companyName != null"> |
|
|
|
company_name = #{companyName,jdbcType=VARCHAR}, |
|
|
|
<if test="companyId != null"> |
|
|
|
company_id = #{companyId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="authorization != null"> |
|
|
|
authorization = #{authorization,jdbcType=TINYINT}, |
|
|
@ -360,7 +360,7 @@ |
|
|
|
id_card_back = #{idCardBack,jdbcType=VARCHAR}, |
|
|
|
prove_img = #{proveImg,jdbcType=VARCHAR}, |
|
|
|
compete_group_id = #{competeGroupId,jdbcType=BIGINT}, |
|
|
|
company_name = #{companyName,jdbcType=VARCHAR}, |
|
|
|
company_id = #{companyId,jdbcType=BIGINT}, |
|
|
|
authorization = #{authorization,jdbcType=TINYINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|