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.
405 lines
15 KiB
405 lines
15 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.datangMeeting.system.persist.mapper.DmsMeetingInfoMapper">
|
|
<resultMap id="BaseResultMap" type="com.datangMeeting.system.domain.po.DmsMeetingInfo">
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="meeting_id" jdbcType="BIGINT" property="meetingId" />
|
|
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
|
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
<result column="title" jdbcType="VARCHAR" property="title" />
|
|
<result column="file_pdf_name" jdbcType="VARCHAR" property="filePdfName" />
|
|
<result column="file_pdf_url" jdbcType="VARCHAR" property="filePdfUrl" />
|
|
<result column="del_flag" jdbcType="TINYINT" property="delFlag" />
|
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
|
</resultMap>
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.datangMeeting.system.domain.po.DmsMeetingInfo">
|
|
<result column="richtext" jdbcType="LONGVARCHAR" property="richtext" />
|
|
</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, meeting_id, parent_id, type, title, file_pdf_name, file_pdf_url, del_flag, create_by,
|
|
create_time, update_by, update_time, remark
|
|
</sql>
|
|
<sql id="Blob_Column_List">
|
|
richtext
|
|
</sql>
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.datangMeeting.system.domain.po.DmsMeetingInfoExample" resultMap="ResultMapWithBLOBs">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
,
|
|
<include refid="Blob_Column_List" />
|
|
from dms_meeting_info
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
<if test="orderByClause != null">
|
|
order by ${orderByClause}
|
|
</if>
|
|
</select>
|
|
<select id="selectByExample" parameterType="com.datangMeeting.system.domain.po.DmsMeetingInfoExample" resultMap="BaseResultMap">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
from dms_meeting_info
|
|
<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="ResultMapWithBLOBs">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
,
|
|
<include refid="Blob_Column_List" />
|
|
from dms_meeting_info
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
delete from dms_meeting_info
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.datangMeeting.system.domain.po.DmsMeetingInfo">
|
|
insert into dms_meeting_info (id, meeting_id, parent_id,
|
|
type, title, file_pdf_name,
|
|
file_pdf_url, del_flag, create_by,
|
|
create_time, update_by, update_time,
|
|
remark, richtext)
|
|
values (#{id,jdbcType=BIGINT}, #{meetingId,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT},
|
|
#{type,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{filePdfName,jdbcType=VARCHAR},
|
|
#{filePdfUrl,jdbcType=VARCHAR}, #{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR},
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
#{remark,jdbcType=VARCHAR}, #{richtext,jdbcType=LONGVARCHAR})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.datangMeeting.system.domain.po.DmsMeetingInfo">
|
|
insert into dms_meeting_info
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="meetingId != null">
|
|
meeting_id,
|
|
</if>
|
|
<if test="parentId != null">
|
|
parent_id,
|
|
</if>
|
|
<if test="type != null">
|
|
type,
|
|
</if>
|
|
<if test="title != null">
|
|
title,
|
|
</if>
|
|
<if test="filePdfName != null">
|
|
file_pdf_name,
|
|
</if>
|
|
<if test="filePdfUrl != null">
|
|
file_pdf_url,
|
|
</if>
|
|
<if test="delFlag != null">
|
|
del_flag,
|
|
</if>
|
|
<if test="createBy != null">
|
|
create_by,
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time,
|
|
</if>
|
|
<if test="updateBy != null">
|
|
update_by,
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time,
|
|
</if>
|
|
<if test="remark != null">
|
|
remark,
|
|
</if>
|
|
<if test="richtext != null">
|
|
richtext,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="meetingId != null">
|
|
#{meetingId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="parentId != null">
|
|
#{parentId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="type != null">
|
|
#{type,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="title != null">
|
|
#{title,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="filePdfName != null">
|
|
#{filePdfName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="filePdfUrl != null">
|
|
#{filePdfUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="delFlag != null">
|
|
#{delFlag,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="createBy != null">
|
|
#{createBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateBy != null">
|
|
#{updateBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="remark != null">
|
|
#{remark,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="richtext != null">
|
|
#{richtext,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.datangMeeting.system.domain.po.DmsMeetingInfoExample" resultType="java.lang.Long">
|
|
select count(*) from dms_meeting_info
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</select>
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update dms_meeting_info
|
|
<set>
|
|
<if test="record.id != null">
|
|
id = #{record.id,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.meetingId != null">
|
|
meeting_id = #{record.meetingId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.parentId != null">
|
|
parent_id = #{record.parentId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.type != null">
|
|
type = #{record.type,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.title != null">
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.filePdfName != null">
|
|
file_pdf_name = #{record.filePdfName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.filePdfUrl != null">
|
|
file_pdf_url = #{record.filePdfUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.delFlag != null">
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.createBy != null">
|
|
create_by = #{record.createBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.createTime != null">
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.updateBy != null">
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.updateTime != null">
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.remark != null">
|
|
remark = #{record.remark,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.richtext != null">
|
|
richtext = #{record.richtext,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
update dms_meeting_info
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
meeting_id = #{record.meetingId,jdbcType=BIGINT},
|
|
parent_id = #{record.parentId,jdbcType=BIGINT},
|
|
type = #{record.type,jdbcType=VARCHAR},
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
file_pdf_name = #{record.filePdfName,jdbcType=VARCHAR},
|
|
file_pdf_url = #{record.filePdfUrl,jdbcType=VARCHAR},
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT},
|
|
create_by = #{record.createBy,jdbcType=VARCHAR},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR},
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
remark = #{record.remark,jdbcType=VARCHAR},
|
|
richtext = #{record.richtext,jdbcType=LONGVARCHAR}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExample" parameterType="map">
|
|
update dms_meeting_info
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
meeting_id = #{record.meetingId,jdbcType=BIGINT},
|
|
parent_id = #{record.parentId,jdbcType=BIGINT},
|
|
type = #{record.type,jdbcType=VARCHAR},
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
file_pdf_name = #{record.filePdfName,jdbcType=VARCHAR},
|
|
file_pdf_url = #{record.filePdfUrl,jdbcType=VARCHAR},
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT},
|
|
create_by = #{record.createBy,jdbcType=VARCHAR},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR},
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
remark = #{record.remark,jdbcType=VARCHAR}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.datangMeeting.system.domain.po.DmsMeetingInfo">
|
|
update dms_meeting_info
|
|
<set>
|
|
<if test="meetingId != null">
|
|
meeting_id = #{meetingId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="parentId != null">
|
|
parent_id = #{parentId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="type != null">
|
|
type = #{type,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="title != null">
|
|
title = #{title,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="filePdfName != null">
|
|
file_pdf_name = #{filePdfName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="filePdfUrl != null">
|
|
file_pdf_url = #{filePdfUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="delFlag != null">
|
|
del_flag = #{delFlag,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="createBy != null">
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateBy != null">
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="remark != null">
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="richtext != null">
|
|
richtext = #{richtext,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.datangMeeting.system.domain.po.DmsMeetingInfo">
|
|
update dms_meeting_info
|
|
set meeting_id = #{meetingId,jdbcType=BIGINT},
|
|
parent_id = #{parentId,jdbcType=BIGINT},
|
|
type = #{type,jdbcType=VARCHAR},
|
|
title = #{title,jdbcType=VARCHAR},
|
|
file_pdf_name = #{filePdfName,jdbcType=VARCHAR},
|
|
file_pdf_url = #{filePdfUrl,jdbcType=VARCHAR},
|
|
del_flag = #{delFlag,jdbcType=TINYINT},
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
richtext = #{richtext,jdbcType=LONGVARCHAR}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.datangMeeting.system.domain.po.DmsMeetingInfo">
|
|
update dms_meeting_info
|
|
set meeting_id = #{meetingId,jdbcType=BIGINT},
|
|
parent_id = #{parentId,jdbcType=BIGINT},
|
|
type = #{type,jdbcType=VARCHAR},
|
|
title = #{title,jdbcType=VARCHAR},
|
|
file_pdf_name = #{filePdfName,jdbcType=VARCHAR},
|
|
file_pdf_url = #{filePdfUrl,jdbcType=VARCHAR},
|
|
del_flag = #{delFlag,jdbcType=TINYINT},
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
remark = #{remark,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</mapper>
|