|
|
@ -12,6 +12,9 @@ |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
<result column="sex" jdbcType="TINYINT" property="sex" /> |
|
|
|
<result column="max_age" jdbcType="TINYINT" property="maxAge" /> |
|
|
|
<result column="min_age" jdbcType="TINYINT" property="minAge" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -73,7 +76,7 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, group_name, description, start_age, end_age, sequence, type, created_at, updated_at, |
|
|
|
rec_status |
|
|
|
rec_status, sex, max_age, min_age |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteGroupExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -109,11 +112,13 @@ |
|
|
|
insert into t_compete_group (id, group_name, description, |
|
|
|
start_age, end_age, sequence, |
|
|
|
type, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
rec_status, sex, max_age, |
|
|
|
min_age) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{groupName,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, |
|
|
|
#{startAge,jdbcType=INTEGER}, #{endAge,jdbcType=INTEGER}, #{sequence,jdbcType=INTEGER}, |
|
|
|
#{type,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
#{recStatus,jdbcType=TINYINT}, #{sex,jdbcType=TINYINT}, #{maxAge,jdbcType=TINYINT}, |
|
|
|
#{minAge,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteGroup"> |
|
|
|
insert into t_compete_group |
|
|
@ -148,6 +153,15 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status, |
|
|
|
</if> |
|
|
|
<if test="sex != null"> |
|
|
|
sex, |
|
|
|
</if> |
|
|
|
<if test="maxAge != null"> |
|
|
|
max_age, |
|
|
|
</if> |
|
|
|
<if test="minAge != null"> |
|
|
|
min_age, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -180,6 +194,15 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="sex != null"> |
|
|
|
#{sex,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="maxAge != null"> |
|
|
|
#{maxAge,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="minAge != null"> |
|
|
|
#{minAge,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteGroupExample" resultType="java.lang.Long"> |
|
|
@ -221,6 +244,15 @@ |
|
|
|
<if test="record.recStatus != null"> |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.sex != null"> |
|
|
|
sex = #{record.sex,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.maxAge != null"> |
|
|
|
max_age = #{record.maxAge,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.minAge != null"> |
|
|
|
min_age = #{record.minAge,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -237,7 +269,10 @@ |
|
|
|
type = #{record.type,jdbcType=TINYINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
sex = #{record.sex,jdbcType=TINYINT}, |
|
|
|
max_age = #{record.maxAge,jdbcType=TINYINT}, |
|
|
|
min_age = #{record.minAge,jdbcType=TINYINT} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -272,6 +307,15 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="sex != null"> |
|
|
|
sex = #{sex,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="maxAge != null"> |
|
|
|
max_age = #{maxAge,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="minAge != null"> |
|
|
|
min_age = #{minAge,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -285,7 +329,10 @@ |
|
|
|
type = #{type,jdbcType=TINYINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
sex = #{sex,jdbcType=TINYINT}, |
|
|
|
max_age = #{maxAge,jdbcType=TINYINT}, |
|
|
|
min_age = #{minAge,jdbcType=TINYINT} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |