|
|
@ -13,7 +13,7 @@ |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
<result column="video_start_time" jdbcType="BIGINT" property="videoStartTime" /> |
|
|
|
<result column="video_end_time" jdbcType="BIGINT" property="videoEndTime" /> |
|
|
|
<result column="restrict" jdbcType="TINYINT" property="restrict" /> |
|
|
|
<result column="video_restrict" jdbcType="TINYINT" property="videoRestrict" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -75,7 +75,7 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, project_id, project_duration, site_num, start_time, end_time, created_at, updated_at, |
|
|
|
rec_status, video_start_time, video_end_time, restrict |
|
|
|
rec_status, video_start_time, video_end_time, video_restrict |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfigExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -111,12 +111,12 @@ |
|
|
|
insert into t_compete_project_config (id, project_id, project_duration, |
|
|
|
site_num, start_time, end_time, |
|
|
|
created_at, updated_at, rec_status, |
|
|
|
video_start_time, video_end_time, restrict |
|
|
|
video_start_time, video_end_time, video_restrict |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{projectDuration,jdbcType=BIGINT}, |
|
|
|
#{siteNum,jdbcType=INTEGER}, #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, |
|
|
|
#{videoStartTime,jdbcType=BIGINT}, #{videoEndTime,jdbcType=BIGINT}, #{restrict,jdbcType=TINYINT} |
|
|
|
#{videoStartTime,jdbcType=BIGINT}, #{videoEndTime,jdbcType=BIGINT}, #{videoRestrict,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig"> |
|
|
@ -155,8 +155,8 @@ |
|
|
|
<if test="videoEndTime != null"> |
|
|
|
video_end_time, |
|
|
|
</if> |
|
|
|
<if test="restrict != null"> |
|
|
|
restrict, |
|
|
|
<if test="videoRestrict != null"> |
|
|
|
video_restrict, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
@ -193,8 +193,8 @@ |
|
|
|
<if test="videoEndTime != null"> |
|
|
|
#{videoEndTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="restrict != null"> |
|
|
|
#{restrict,jdbcType=TINYINT}, |
|
|
|
<if test="videoRestrict != null"> |
|
|
|
#{videoRestrict,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
@ -240,8 +240,8 @@ |
|
|
|
<if test="record.videoEndTime != null"> |
|
|
|
video_end_time = #{record.videoEndTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.restrict != null"> |
|
|
|
restrict = #{record.restrict,jdbcType=TINYINT}, |
|
|
|
<if test="record.videoRestrict != null"> |
|
|
|
video_restrict = #{record.videoRestrict,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
@ -261,7 +261,7 @@ |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
video_start_time = #{record.videoStartTime,jdbcType=BIGINT}, |
|
|
|
video_end_time = #{record.videoEndTime,jdbcType=BIGINT}, |
|
|
|
restrict = #{record.restrict,jdbcType=TINYINT} |
|
|
|
video_restrict = #{record.videoRestrict,jdbcType=TINYINT} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -299,8 +299,8 @@ |
|
|
|
<if test="videoEndTime != null"> |
|
|
|
video_end_time = #{videoEndTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="restrict != null"> |
|
|
|
restrict = #{restrict,jdbcType=TINYINT}, |
|
|
|
<if test="videoRestrict != null"> |
|
|
|
video_restrict = #{videoRestrict,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
@ -317,7 +317,7 @@ |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
video_start_time = #{videoStartTime,jdbcType=BIGINT}, |
|
|
|
video_end_time = #{videoEndTime,jdbcType=BIGINT}, |
|
|
|
restrict = #{restrict,jdbcType=TINYINT} |
|
|
|
video_restrict = #{videoRestrict,jdbcType=TINYINT} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |