You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
448 lines
17 KiB
448 lines
17 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.ccsens.tall.persist.mapper.ProShowMapper">
|
|
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProShow">
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="project_id" jdbcType="BIGINT" property="projectId" />
|
|
<result column="slide" jdbcType="TINYINT" property="slide" />
|
|
<result column="filter" jdbcType="TINYINT" property="filter" />
|
|
<result column="is_show_mvp" jdbcType="TINYINT" property="isShowMvp" />
|
|
<result column="style" jdbcType="TINYINT" property="style" />
|
|
<result column="create_task" jdbcType="TINYINT" property="createTask" />
|
|
<result column="time_show" jdbcType="VARCHAR" property="timeShow" />
|
|
<result column="duration" jdbcType="TINYINT" property="duration" />
|
|
<result column="show_shortcuts" jdbcType="TINYINT" property="showShortcuts" />
|
|
<result column="select_task_type" jdbcType="TINYINT" property="selectTaskType" />
|
|
<result column="detail_path" jdbcType="VARCHAR" property="detailPath" />
|
|
<result column="pims_nav_type" jdbcType="TINYINT" property="pimsNavType" />
|
|
<result column="share_change" jdbcType="TINYINT" property="shareChange" />
|
|
<result column="share_change_code" jdbcType="VARCHAR" property="shareChangeCode" />
|
|
<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="role_belong" jdbcType="TINYINT" property="roleBelong" />
|
|
<result column="milestone_subtask" jdbcType="TINYINT" property="milestoneSubtask" />
|
|
</resultMap>
|
|
<sql id="Example_Where_Clause">
|
|
<where>
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<if test="criteria.valid">
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
<choose>
|
|
<when test="criterion.noValue">
|
|
and ${criterion.condition}
|
|
</when>
|
|
<when test="criterion.singleValue">
|
|
and ${criterion.condition} #{criterion.value}
|
|
</when>
|
|
<when test="criterion.betweenValue">
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
</when>
|
|
<when test="criterion.listValue">
|
|
and ${criterion.condition}
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
#{listItem}
|
|
</foreach>
|
|
</when>
|
|
</choose>
|
|
</foreach>
|
|
</trim>
|
|
</if>
|
|
</foreach>
|
|
</where>
|
|
</sql>
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
<where>
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<if test="criteria.valid">
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
<choose>
|
|
<when test="criterion.noValue">
|
|
and ${criterion.condition}
|
|
</when>
|
|
<when test="criterion.singleValue">
|
|
and ${criterion.condition} #{criterion.value}
|
|
</when>
|
|
<when test="criterion.betweenValue">
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
</when>
|
|
<when test="criterion.listValue">
|
|
and ${criterion.condition}
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
#{listItem}
|
|
</foreach>
|
|
</when>
|
|
</choose>
|
|
</foreach>
|
|
</trim>
|
|
</if>
|
|
</foreach>
|
|
</where>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
id, project_id, slide, filter, is_show_mvp, style, create_task, time_show, duration,
|
|
show_shortcuts, select_task_type, detail_path, pims_nav_type, share_change, share_change_code,
|
|
created_at, updated_at, rec_status, role_belong, milestone_subtask
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProShowExample" resultMap="BaseResultMap">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
from t_pro_show
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
<if test="orderByClause != null">
|
|
order by ${orderByClause}
|
|
</if>
|
|
</select>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from t_pro_show
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
delete from t_pro_show
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</delete>
|
|
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProShowExample">
|
|
delete from t_pro_show
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProShow">
|
|
insert into t_pro_show (id, project_id, slide,
|
|
filter, is_show_mvp, style,
|
|
create_task, time_show, duration,
|
|
show_shortcuts, select_task_type, detail_path,
|
|
pims_nav_type, share_change, share_change_code,
|
|
created_at, updated_at, rec_status,
|
|
role_belong, milestone_subtask)
|
|
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{slide,jdbcType=TINYINT},
|
|
#{filter,jdbcType=TINYINT}, #{isShowMvp,jdbcType=TINYINT}, #{style,jdbcType=TINYINT},
|
|
#{createTask,jdbcType=TINYINT}, #{timeShow,jdbcType=VARCHAR}, #{duration,jdbcType=TINYINT},
|
|
#{showShortcuts,jdbcType=TINYINT}, #{selectTaskType,jdbcType=TINYINT}, #{detailPath,jdbcType=VARCHAR},
|
|
#{pimsNavType,jdbcType=TINYINT}, #{shareChange,jdbcType=TINYINT}, #{shareChangeCode,jdbcType=VARCHAR},
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT},
|
|
#{roleBelong,jdbcType=TINYINT}, #{milestoneSubtask,jdbcType=TINYINT})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProShow">
|
|
insert into t_pro_show
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="projectId != null">
|
|
project_id,
|
|
</if>
|
|
<if test="slide != null">
|
|
slide,
|
|
</if>
|
|
<if test="filter != null">
|
|
filter,
|
|
</if>
|
|
<if test="isShowMvp != null">
|
|
is_show_mvp,
|
|
</if>
|
|
<if test="style != null">
|
|
style,
|
|
</if>
|
|
<if test="createTask != null">
|
|
create_task,
|
|
</if>
|
|
<if test="timeShow != null">
|
|
time_show,
|
|
</if>
|
|
<if test="duration != null">
|
|
duration,
|
|
</if>
|
|
<if test="showShortcuts != null">
|
|
show_shortcuts,
|
|
</if>
|
|
<if test="selectTaskType != null">
|
|
select_task_type,
|
|
</if>
|
|
<if test="detailPath != null">
|
|
detail_path,
|
|
</if>
|
|
<if test="pimsNavType != null">
|
|
pims_nav_type,
|
|
</if>
|
|
<if test="shareChange != null">
|
|
share_change,
|
|
</if>
|
|
<if test="shareChangeCode != null">
|
|
share_change_code,
|
|
</if>
|
|
<if test="createdAt != null">
|
|
created_at,
|
|
</if>
|
|
<if test="updatedAt != null">
|
|
updated_at,
|
|
</if>
|
|
<if test="recStatus != null">
|
|
rec_status,
|
|
</if>
|
|
<if test="roleBelong != null">
|
|
role_belong,
|
|
</if>
|
|
<if test="milestoneSubtask != null">
|
|
milestone_subtask,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="projectId != null">
|
|
#{projectId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="slide != null">
|
|
#{slide,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="filter != null">
|
|
#{filter,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="isShowMvp != null">
|
|
#{isShowMvp,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="style != null">
|
|
#{style,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="createTask != null">
|
|
#{createTask,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="timeShow != null">
|
|
#{timeShow,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="duration != null">
|
|
#{duration,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="showShortcuts != null">
|
|
#{showShortcuts,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="selectTaskType != null">
|
|
#{selectTaskType,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="detailPath != null">
|
|
#{detailPath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="pimsNavType != null">
|
|
#{pimsNavType,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="shareChange != null">
|
|
#{shareChange,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="shareChangeCode != null">
|
|
#{shareChangeCode,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createdAt != null">
|
|
#{createdAt,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updatedAt != null">
|
|
#{updatedAt,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="recStatus != null">
|
|
#{recStatus,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="roleBelong != null">
|
|
#{roleBelong,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="milestoneSubtask != null">
|
|
#{milestoneSubtask,jdbcType=TINYINT},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProShowExample" resultType="java.lang.Long">
|
|
select count(*) from t_pro_show
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</select>
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update t_pro_show
|
|
<set>
|
|
<if test="record.id != null">
|
|
id = #{record.id,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.projectId != null">
|
|
project_id = #{record.projectId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.slide != null">
|
|
slide = #{record.slide,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.filter != null">
|
|
filter = #{record.filter,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.isShowMvp != null">
|
|
is_show_mvp = #{record.isShowMvp,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.style != null">
|
|
style = #{record.style,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.createTask != null">
|
|
create_task = #{record.createTask,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.timeShow != null">
|
|
time_show = #{record.timeShow,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.duration != null">
|
|
duration = #{record.duration,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.showShortcuts != null">
|
|
show_shortcuts = #{record.showShortcuts,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.selectTaskType != null">
|
|
select_task_type = #{record.selectTaskType,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.detailPath != null">
|
|
detail_path = #{record.detailPath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.pimsNavType != null">
|
|
pims_nav_type = #{record.pimsNavType,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.shareChange != null">
|
|
share_change = #{record.shareChange,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.shareChangeCode != null">
|
|
share_change_code = #{record.shareChangeCode,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.createdAt != null">
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.updatedAt != null">
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.recStatus != null">
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.roleBelong != null">
|
|
role_belong = #{record.roleBelong,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.milestoneSubtask != null">
|
|
milestone_subtask = #{record.milestoneSubtask,jdbcType=TINYINT},
|
|
</if>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExample" parameterType="map">
|
|
update t_pro_show
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
project_id = #{record.projectId,jdbcType=BIGINT},
|
|
slide = #{record.slide,jdbcType=TINYINT},
|
|
filter = #{record.filter,jdbcType=TINYINT},
|
|
is_show_mvp = #{record.isShowMvp,jdbcType=TINYINT},
|
|
style = #{record.style,jdbcType=TINYINT},
|
|
create_task = #{record.createTask,jdbcType=TINYINT},
|
|
time_show = #{record.timeShow,jdbcType=VARCHAR},
|
|
duration = #{record.duration,jdbcType=TINYINT},
|
|
show_shortcuts = #{record.showShortcuts,jdbcType=TINYINT},
|
|
select_task_type = #{record.selectTaskType,jdbcType=TINYINT},
|
|
detail_path = #{record.detailPath,jdbcType=VARCHAR},
|
|
pims_nav_type = #{record.pimsNavType,jdbcType=TINYINT},
|
|
share_change = #{record.shareChange,jdbcType=TINYINT},
|
|
share_change_code = #{record.shareChangeCode,jdbcType=VARCHAR},
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT},
|
|
role_belong = #{record.roleBelong,jdbcType=TINYINT},
|
|
milestone_subtask = #{record.milestoneSubtask,jdbcType=TINYINT}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProShow">
|
|
update t_pro_show
|
|
<set>
|
|
<if test="projectId != null">
|
|
project_id = #{projectId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="slide != null">
|
|
slide = #{slide,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="filter != null">
|
|
filter = #{filter,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="isShowMvp != null">
|
|
is_show_mvp = #{isShowMvp,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="style != null">
|
|
style = #{style,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="createTask != null">
|
|
create_task = #{createTask,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="timeShow != null">
|
|
time_show = #{timeShow,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="duration != null">
|
|
duration = #{duration,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="showShortcuts != null">
|
|
show_shortcuts = #{showShortcuts,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="selectTaskType != null">
|
|
select_task_type = #{selectTaskType,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="detailPath != null">
|
|
detail_path = #{detailPath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="pimsNavType != null">
|
|
pims_nav_type = #{pimsNavType,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="shareChange != null">
|
|
share_change = #{shareChange,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="shareChangeCode != null">
|
|
share_change_code = #{shareChangeCode,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createdAt != null">
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updatedAt != null">
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="recStatus != null">
|
|
rec_status = #{recStatus,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="roleBelong != null">
|
|
role_belong = #{roleBelong,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="milestoneSubtask != null">
|
|
milestone_subtask = #{milestoneSubtask,jdbcType=TINYINT},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProShow">
|
|
update t_pro_show
|
|
set project_id = #{projectId,jdbcType=BIGINT},
|
|
slide = #{slide,jdbcType=TINYINT},
|
|
filter = #{filter,jdbcType=TINYINT},
|
|
is_show_mvp = #{isShowMvp,jdbcType=TINYINT},
|
|
style = #{style,jdbcType=TINYINT},
|
|
create_task = #{createTask,jdbcType=TINYINT},
|
|
time_show = #{timeShow,jdbcType=VARCHAR},
|
|
duration = #{duration,jdbcType=TINYINT},
|
|
show_shortcuts = #{showShortcuts,jdbcType=TINYINT},
|
|
select_task_type = #{selectTaskType,jdbcType=TINYINT},
|
|
detail_path = #{detailPath,jdbcType=VARCHAR},
|
|
pims_nav_type = #{pimsNavType,jdbcType=TINYINT},
|
|
share_change = #{shareChange,jdbcType=TINYINT},
|
|
share_change_code = #{shareChangeCode,jdbcType=VARCHAR},
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
rec_status = #{recStatus,jdbcType=TINYINT},
|
|
role_belong = #{roleBelong,jdbcType=TINYINT},
|
|
milestone_subtask = #{milestoneSubtask,jdbcType=TINYINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</mapper>
|