|
|
@ -4,13 +4,16 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteProjectConfig"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
|
|
|
<result column="project_duration" jdbcType="BIGINT" property="projectDuration" /> |
|
|
|
<result column="site_num" jdbcType="INTEGER" property="siteNum" /> |
|
|
|
<result column="start_time" jdbcType="BIGINT" property="startTime" /> |
|
|
|
<result column="end_time" jdbcType="BIGINT" property="endTime" /> |
|
|
|
<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="project_duration" jdbcType="BIGINT" property="projectDuration" /> |
|
|
|
<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" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -71,8 +74,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, project_id, site_num, start_time, end_time, created_at, updated_at, rec_status, |
|
|
|
project_duration |
|
|
|
id, project_id, project_duration, site_num, start_time, end_time, created_at, updated_at, |
|
|
|
rec_status, video_start_time, video_end_time, restrict |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfigExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -105,13 +108,15 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig"> |
|
|
|
insert into t_compete_project_config (id, project_id, site_num, |
|
|
|
start_time, end_time, created_at, |
|
|
|
updated_at, rec_status, project_duration |
|
|
|
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 |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{siteNum,jdbcType=INTEGER}, |
|
|
|
#{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{projectDuration,jdbcType=BIGINT} |
|
|
|
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} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig"> |
|
|
@ -123,6 +128,9 @@ |
|
|
|
<if test="projectId != null"> |
|
|
|
project_id, |
|
|
|
</if> |
|
|
|
<if test="projectDuration != null"> |
|
|
|
project_duration, |
|
|
|
</if> |
|
|
|
<if test="siteNum != null"> |
|
|
|
site_num, |
|
|
|
</if> |
|
|
@ -141,8 +149,14 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status, |
|
|
|
</if> |
|
|
|
<if test="projectDuration != null"> |
|
|
|
project_duration, |
|
|
|
<if test="videoStartTime != null"> |
|
|
|
video_start_time, |
|
|
|
</if> |
|
|
|
<if test="videoEndTime != null"> |
|
|
|
video_end_time, |
|
|
|
</if> |
|
|
|
<if test="restrict != null"> |
|
|
|
restrict, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
@ -152,6 +166,9 @@ |
|
|
|
<if test="projectId != null"> |
|
|
|
#{projectId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="projectDuration != null"> |
|
|
|
#{projectDuration,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="siteNum != null"> |
|
|
|
#{siteNum,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
@ -170,8 +187,14 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="projectDuration != null"> |
|
|
|
#{projectDuration,jdbcType=BIGINT}, |
|
|
|
<if test="videoStartTime != null"> |
|
|
|
#{videoStartTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="videoEndTime != null"> |
|
|
|
#{videoEndTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="restrict != null"> |
|
|
|
#{restrict,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
@ -190,6 +213,9 @@ |
|
|
|
<if test="record.projectId != null"> |
|
|
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.projectDuration != null"> |
|
|
|
project_duration = #{record.projectDuration,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.siteNum != null"> |
|
|
|
site_num = #{record.siteNum,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
@ -208,8 +234,14 @@ |
|
|
|
<if test="record.recStatus != null"> |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.projectDuration != null"> |
|
|
|
project_duration = #{record.projectDuration,jdbcType=BIGINT}, |
|
|
|
<if test="record.videoStartTime != null"> |
|
|
|
video_start_time = #{record.videoStartTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.videoEndTime != null"> |
|
|
|
video_end_time = #{record.videoEndTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.restrict != null"> |
|
|
|
restrict = #{record.restrict,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
@ -220,13 +252,16 @@ |
|
|
|
update t_compete_project_config |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
|
|
|
project_duration = #{record.projectDuration,jdbcType=BIGINT}, |
|
|
|
site_num = #{record.siteNum,jdbcType=INTEGER}, |
|
|
|
start_time = #{record.startTime,jdbcType=BIGINT}, |
|
|
|
end_time = #{record.endTime,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
project_duration = #{record.projectDuration,jdbcType=BIGINT} |
|
|
|
video_start_time = #{record.videoStartTime,jdbcType=BIGINT}, |
|
|
|
video_end_time = #{record.videoEndTime,jdbcType=BIGINT}, |
|
|
|
restrict = #{record.restrict,jdbcType=TINYINT} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -237,6 +272,9 @@ |
|
|
|
<if test="projectId != null"> |
|
|
|
project_id = #{projectId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="projectDuration != null"> |
|
|
|
project_duration = #{projectDuration,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="siteNum != null"> |
|
|
|
site_num = #{siteNum,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
@ -255,8 +293,14 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="projectDuration != null"> |
|
|
|
project_duration = #{projectDuration,jdbcType=BIGINT}, |
|
|
|
<if test="videoStartTime != null"> |
|
|
|
video_start_time = #{videoStartTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="videoEndTime != null"> |
|
|
|
video_end_time = #{videoEndTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="restrict != null"> |
|
|
|
restrict = #{restrict,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
@ -264,13 +308,16 @@ |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteProjectConfig"> |
|
|
|
update t_compete_project_config |
|
|
|
set project_id = #{projectId,jdbcType=BIGINT}, |
|
|
|
project_duration = #{projectDuration,jdbcType=BIGINT}, |
|
|
|
site_num = #{siteNum,jdbcType=INTEGER}, |
|
|
|
start_time = #{startTime,jdbcType=BIGINT}, |
|
|
|
end_time = #{endTime,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
project_duration = #{projectDuration,jdbcType=BIGINT} |
|
|
|
video_start_time = #{videoStartTime,jdbcType=BIGINT}, |
|
|
|
video_end_time = #{videoEndTime,jdbcType=BIGINT}, |
|
|
|
restrict = #{restrict,jdbcType=TINYINT} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |