ganzi-api/inventory-dao/src/main/resources/mapper/check/BookTalkMapper.xml
2022-09-16 15:07:17 +08:00

565 lines
22 KiB
XML

<?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.rzyc.mapper.check.BookTalkMapper">
<resultMap id="BaseResultMap" type="com.rzyc.model.check.BookTalk">
<id column="BookTalkId" jdbcType="VARCHAR" property="booktalkid" />
<result column="SysEnterpriseId" jdbcType="VARCHAR" property="sysenterpriseid" />
<result column="bookenthtid" jdbcType="VARCHAR" property="bookenthtid" />
<result column="BookTalkTextId" jdbcType="VARCHAR" property="booktalktextid" />
<result column="TalkPeople" jdbcType="VARCHAR" property="talkpeople" />
<result column="ListenPeople" jdbcType="VARCHAR" property="listenpeople" />
<result column="RecordPeople" jdbcType="VARCHAR" property="recordpeople" />
<result column="TalkPeopleSign" jdbcType="VARCHAR" property="talkpeoplesign" />
<result column="ListenPeopleSign" jdbcType="VARCHAR" property="listenpeoplesign" />
<result column="TalkTime" jdbcType="TIMESTAMP" property="talktime" />
<result column="TalkAddress" jdbcType="VARCHAR" property="talkaddress" />
<result column="TalkTel" jdbcType="VARCHAR" property="talktel" />
<result column="CreatedOn" jdbcType="TIMESTAMP" property="createdon" />
<result column="CreatedBy" jdbcType="VARCHAR" property="createdby" />
<result column="ModifiedOn" jdbcType="TIMESTAMP" property="modifiedon" />
<result column="ModifiedBy" jdbcType="VARCHAR" property="modifiedby" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.rzyc.model.check.BookTalkWithBLOBs">
<result column="TalkContent" jdbcType="LONGVARCHAR" property="talkcontent" />
<result column="Remake" jdbcType="LONGVARCHAR" property="remake" />
</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">
BookTalkId, SysEnterpriseId, bookenthtid,BookTalkTextId, TalkPeople, ListenPeople, RecordPeople,
TalkPeopleSign, ListenPeopleSign, TalkTime, TalkAddress, TalkTel, CreatedOn, CreatedBy,
ModifiedOn, ModifiedBy
</sql>
<sql id="Blob_Column_List">
TalkContent, Ramake
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.rzyc.model.check.BookTalkExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from BookTalk
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.rzyc.model.check.BookTalkExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from BookTalk
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
<if test="limit != null">
<if test="offset != null">
limit ${offset}, ${limit}
</if>
<if test="offset == null">
limit ${limit}
</if>
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from BookTalk
where BookTalkId = #{booktalkid,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from BookTalk
where BookTalkId = #{booktalkid,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.rzyc.model.check.BookTalkExample">
delete from BookTalk
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.rzyc.model.check.BookTalkWithBLOBs">
insert into BookTalk (BookTalkId, SysEnterpriseId,bookenthtid, BookTalkTextId,
TalkPeople, ListenPeople, RecordPeople,
TalkPeopleSign, ListenPeopleSign, TalkTime,
TalkAddress, TalkTel, CreatedOn,
CreatedBy, ModifiedOn, ModifiedBy,
TalkContent, Remake)
values (#{booktalkid,jdbcType=VARCHAR},
#{sysenterpriseid,jdbcType=VARCHAR},
#{bookenthtid,jdbcType=VARCHAR},
#{booktalktextid,jdbcType=VARCHAR},
#{talkpeople,jdbcType=VARCHAR}, #{listenpeople,jdbcType=VARCHAR}, #{recordpeople,jdbcType=VARCHAR},
#{talkpeoplesign,jdbcType=VARCHAR}, #{listenpeoplesign,jdbcType=VARCHAR}, #{talktime,jdbcType=TIMESTAMP},
#{talkaddress,jdbcType=VARCHAR}, #{talktel,jdbcType=VARCHAR}, #{createdon,jdbcType=TIMESTAMP},
#{createdby,jdbcType=VARCHAR}, #{modifiedon,jdbcType=TIMESTAMP}, #{modifiedby,jdbcType=VARCHAR},
#{talkcontent,jdbcType=LONGVARCHAR}, #{remake,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.rzyc.model.check.BookTalkWithBLOBs">
insert into BookTalk
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="booktalkid != null">
BookTalkId,
</if>
<if test="sysenterpriseid != null">
SysEnterpriseId,
</if>
<if test="bookenthtid != null">
bookenthtid,
</if>
<if test="booktalktextid != null">
BookTalkTextId,
</if>
<if test="talkpeople != null">
TalkPeople,
</if>
<if test="listenpeople != null">
ListenPeople,
</if>
<if test="recordpeople != null">
RecordPeople,
</if>
<if test="talkpeoplesign != null">
TalkPeopleSign,
</if>
<if test="listenpeoplesign != null">
ListenPeopleSign,
</if>
<if test="talktime != null">
TalkTime,
</if>
<if test="talkaddress != null">
TalkAddress,
</if>
<if test="talktel != null">
TalkTel,
</if>
<if test="createdon != null">
CreatedOn,
</if>
<if test="createdby != null">
CreatedBy,
</if>
<if test="modifiedon != null">
ModifiedOn,
</if>
<if test="modifiedby != null">
ModifiedBy,
</if>
<if test="talkcontent != null">
TalkContent,
</if>
<if test="ramake != null">
Ramake,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="booktalkid != null">
#{booktalkid,jdbcType=VARCHAR},
</if>
<if test="sysenterpriseid != null">
#{sysenterpriseid,jdbcType=VARCHAR},
</if>
<if test="bookenthtid != null">
#{bookenthtid,jdbcType=VARCHAR},
</if>
<if test="booktalktextid != null">
#{booktalktextid,jdbcType=VARCHAR},
</if>
<if test="talkpeople != null">
#{talkpeople,jdbcType=VARCHAR},
</if>
<if test="listenpeople != null">
#{listenpeople,jdbcType=VARCHAR},
</if>
<if test="recordpeople != null">
#{recordpeople,jdbcType=VARCHAR},
</if>
<if test="talkpeoplesign != null">
#{talkpeoplesign,jdbcType=VARCHAR},
</if>
<if test="listenpeoplesign != null">
#{listenpeoplesign,jdbcType=VARCHAR},
</if>
<if test="talktime != null">
#{talktime,jdbcType=TIMESTAMP},
</if>
<if test="talkaddress != null">
#{talkaddress,jdbcType=VARCHAR},
</if>
<if test="talktel != null">
#{talktel,jdbcType=VARCHAR},
</if>
<if test="createdon != null">
#{createdon,jdbcType=TIMESTAMP},
</if>
<if test="createdby != null">
#{createdby,jdbcType=VARCHAR},
</if>
<if test="modifiedon != null">
#{modifiedon,jdbcType=TIMESTAMP},
</if>
<if test="modifiedby != null">
#{modifiedby,jdbcType=VARCHAR},
</if>
<if test="talkcontent != null">
#{talkcontent,jdbcType=LONGVARCHAR},
</if>
<if test="ramake != null">
#{ramake,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.rzyc.model.check.BookTalkExample" resultType="java.lang.Long">
select count(*) from BookTalk
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update BookTalk
<set>
<if test="record.booktalkid != null">
BookTalkId = #{record.booktalkid,jdbcType=VARCHAR},
</if>
<if test="record.sysenterpriseid != null">
SysEnterpriseId = #{record.sysenterpriseid,jdbcType=VARCHAR},
</if>
<if test="record.bookenthtid != null">
bookenthtid = #{record.bookenthtid,jdbcType=VARCHAR},
</if>
<if test="record.booktalktextid != null">
BookTalkTextId = #{record.booktalktextid,jdbcType=VARCHAR},
</if>
<if test="record.talkpeople != null">
TalkPeople = #{record.talkpeople,jdbcType=VARCHAR},
</if>
<if test="record.listenpeople != null">
ListenPeople = #{record.listenpeople,jdbcType=VARCHAR},
</if>
<if test="record.recordpeople != null">
RecordPeople = #{record.recordpeople,jdbcType=VARCHAR},
</if>
<if test="record.talkpeoplesign != null">
TalkPeopleSign = #{record.talkpeoplesign,jdbcType=VARCHAR},
</if>
<if test="record.listenpeoplesign != null">
ListenPeopleSign = #{record.listenpeoplesign,jdbcType=VARCHAR},
</if>
<if test="record.talktime != null">
TalkTime = #{record.talktime,jdbcType=TIMESTAMP},
</if>
<if test="record.talkaddress != null">
TalkAddress = #{record.talkaddress,jdbcType=VARCHAR},
</if>
<if test="record.talktel != null">
TalkTel = #{record.talktel,jdbcType=VARCHAR},
</if>
<if test="record.createdon != null">
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
</if>
<if test="record.createdby != null">
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
</if>
<if test="record.modifiedon != null">
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
</if>
<if test="record.modifiedby != null">
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
</if>
<if test="record.talkcontent != null">
TalkContent = #{record.talkcontent,jdbcType=LONGVARCHAR},
</if>
<if test="record.ramake != null">
Ramake = #{record.ramake,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update BookTalk
set BookTalkId = #{record.booktalkid,jdbcType=VARCHAR},
SysEnterpriseId = #{record.sysenterpriseid,jdbcType=VARCHAR},
bookenthtid = #{record.bookenthtid,jdbcType=VARCHAR},
BookTalkTextId = #{record.booktalktextid,jdbcType=VARCHAR},
TalkPeople = #{record.talkpeople,jdbcType=VARCHAR},
ListenPeople = #{record.listenpeople,jdbcType=VARCHAR},
RecordPeople = #{record.recordpeople,jdbcType=VARCHAR},
TalkPeopleSign = #{record.talkpeoplesign,jdbcType=VARCHAR},
ListenPeopleSign = #{record.listenpeoplesign,jdbcType=VARCHAR},
TalkTime = #{record.talktime,jdbcType=TIMESTAMP},
TalkAddress = #{record.talkaddress,jdbcType=VARCHAR},
TalkTel = #{record.talktel,jdbcType=VARCHAR},
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
TalkContent = #{record.talkcontent,jdbcType=LONGVARCHAR},
Ramake = #{record.ramake,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update BookTalk
set BookTalkId = #{record.booktalkid,jdbcType=VARCHAR},
SysEnterpriseId = #{record.sysenterpriseid,jdbcType=VARCHAR},
bookenthtid = #{record.bookenthtid,jdbcType=VARCHAR},
BookTalkTextId = #{record.booktalktextid,jdbcType=VARCHAR},
TalkPeople = #{record.talkpeople,jdbcType=VARCHAR},
ListenPeople = #{record.listenpeople,jdbcType=VARCHAR},
RecordPeople = #{record.recordpeople,jdbcType=VARCHAR},
TalkPeopleSign = #{record.talkpeoplesign,jdbcType=VARCHAR},
ListenPeopleSign = #{record.listenpeoplesign,jdbcType=VARCHAR},
TalkTime = #{record.talktime,jdbcType=TIMESTAMP},
TalkAddress = #{record.talkaddress,jdbcType=VARCHAR},
TalkTel = #{record.talktel,jdbcType=VARCHAR},
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.rzyc.model.check.BookTalkWithBLOBs">
update BookTalk
<set>
<if test="sysenterpriseid != null">
SysEnterpriseId = #{sysenterpriseid,jdbcType=VARCHAR},
</if>
<if test="bookenthtid != null">
bookenthtid = #{bookenthtid,jdbcType=VARCHAR},
</if>
<if test="booktalktextid != null">
BookTalkTextId = #{booktalktextid,jdbcType=VARCHAR},
</if>
<if test="talkpeople != null">
TalkPeople = #{talkpeople,jdbcType=VARCHAR},
</if>
<if test="listenpeople != null">
ListenPeople = #{listenpeople,jdbcType=VARCHAR},
</if>
<if test="recordpeople != null">
RecordPeople = #{recordpeople,jdbcType=VARCHAR},
</if>
<if test="talkpeoplesign != null">
TalkPeopleSign = #{talkpeoplesign,jdbcType=VARCHAR},
</if>
<if test="listenpeoplesign != null">
ListenPeopleSign = #{listenpeoplesign,jdbcType=VARCHAR},
</if>
<if test="talktime != null">
TalkTime = #{talktime,jdbcType=TIMESTAMP},
</if>
<if test="talkaddress != null">
TalkAddress = #{talkaddress,jdbcType=VARCHAR},
</if>
<if test="talktel != null">
TalkTel = #{talktel,jdbcType=VARCHAR},
</if>
<if test="createdon != null">
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
</if>
<if test="createdby != null">
CreatedBy = #{createdby,jdbcType=VARCHAR},
</if>
<if test="modifiedon != null">
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
</if>
<if test="modifiedby != null">
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
</if>
<if test="talkcontent != null">
TalkContent = #{talkcontent,jdbcType=LONGVARCHAR},
</if>
<if test="ramake != null">
Ramake = #{ramake,jdbcType=LONGVARCHAR},
</if>
</set>
where BookTalkId = #{booktalkid,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.rzyc.model.check.BookTalkWithBLOBs">
update BookTalk
set
SysEnterpriseId = #{sysenterpriseid,jdbcType=VARCHAR},
bookenthtid = #{bookenthtid,jdbcType=VARCHAR},
BookTalkTextId = #{booktalktextid,jdbcType=VARCHAR},
TalkPeople = #{talkpeople,jdbcType=VARCHAR},
ListenPeople = #{listenpeople,jdbcType=VARCHAR},
RecordPeople = #{recordpeople,jdbcType=VARCHAR},
TalkPeopleSign = #{talkpeoplesign,jdbcType=VARCHAR},
ListenPeopleSign = #{listenpeoplesign,jdbcType=VARCHAR},
TalkTime = #{talktime,jdbcType=TIMESTAMP},
TalkAddress = #{talkaddress,jdbcType=VARCHAR},
TalkTel = #{talktel,jdbcType=VARCHAR},
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
CreatedBy = #{createdby,jdbcType=VARCHAR},
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
TalkContent = #{talkcontent,jdbcType=LONGVARCHAR},
Ramake = #{ramake,jdbcType=LONGVARCHAR}
where BookTalkId = #{booktalkid,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.rzyc.model.check.BookTalk">
update BookTalk
set
SysEnterpriseId = #{sysenterpriseid,jdbcType=VARCHAR},
bookenthtid = #{bookenthtid,jdbcType=VARCHAR},
BookTalkTextId = #{booktalktextid,jdbcType=VARCHAR},
TalkPeople = #{talkpeople,jdbcType=VARCHAR},
ListenPeople = #{listenpeople,jdbcType=VARCHAR},
RecordPeople = #{recordpeople,jdbcType=VARCHAR},
TalkPeopleSign = #{talkpeoplesign,jdbcType=VARCHAR},
ListenPeopleSign = #{listenpeoplesign,jdbcType=VARCHAR},
TalkTime = #{talktime,jdbcType=TIMESTAMP},
TalkAddress = #{talkaddress,jdbcType=VARCHAR},
TalkTel = #{talktel,jdbcType=VARCHAR},
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
CreatedBy = #{createdby,jdbcType=VARCHAR},
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{modifiedby,jdbcType=VARCHAR}
where BookTalkId = #{booktalkid,jdbcType=VARCHAR}
</update>
<!--企业约谈-->
<select id="findByCompanyId" resultMap="ResultMapWithBLOBs">
SELECT * FROM `BookTalk` bt
WHERE bt.`SysEnterpriseId` = #{companyId}
</select>
<select id="interviewDetailByCompanyId" resultMap="ResultMapWithBLOBs">
select * from BookTalk
where SysEnterpriseId = #{companyId}
<if test="null != bookenthtid and '' != bookenthtid">
and bookenthtid = #{bookenthtid}
</if>
</select>
<!--约谈列表-->
<resultMap id="TalkResultMap" type="com.rzyc.model.check.BookTalk">
<id column="BookTalkId" jdbcType="VARCHAR" property="booktalkid" />
<result column="SysEnterpriseId" jdbcType="VARCHAR" property="sysenterpriseid" />
<result column="bookenthtid" jdbcType="VARCHAR" property="bookenthtid" />
<result column="EntName" jdbcType="VARCHAR" property="entName" />
<result column="BookTalkTextId" jdbcType="VARCHAR" property="booktalktextid" />
<result column="TalkPeople" jdbcType="VARCHAR" property="talkpeople" />
<result column="ListenPeople" jdbcType="VARCHAR" property="listenpeople" />
<result column="RecordPeople" jdbcType="VARCHAR" property="recordpeople" />
<result column="TalkPeopleSign" jdbcType="VARCHAR" property="talkpeoplesign" />
<result column="ListenPeopleSign" jdbcType="VARCHAR" property="listenpeoplesign" />
<result column="TalkTime" jdbcType="TIMESTAMP" property="talktime" />
<result column="TalkAddress" jdbcType="VARCHAR" property="talkaddress" />
<result column="TalkTel" jdbcType="VARCHAR" property="talktel" />
<result column="CreatedOn" jdbcType="TIMESTAMP" property="createdon" />
<result column="CreatedBy" jdbcType="VARCHAR" property="createdby" />
<result column="ModifiedOn" jdbcType="TIMESTAMP" property="modifiedon" />
<result column="ModifiedBy" jdbcType="VARCHAR" property="modifiedby" />
</resultMap>
<!--约谈列表-->
<resultMap extends="TalkResultMap" id="TalkResultMapWithBLOBs" type="com.rzyc.model.check.BookTalkWithBLOBs">
<result column="TalkContent" jdbcType="LONGVARCHAR" property="talkcontent" />
<result column="Remake" jdbcType="LONGVARCHAR" property="remake" />
</resultMap>
<!--约谈列表-->
<select id="talkPage" resultMap="TalkResultMapWithBLOBs">
SELECT se.`EntName`,bt.*
FROM `BookTalk` bt
LEFT JOIN SysEnterprise se ON bt.`SysEnterpriseId` = se.`SysEnterpriseId`
WHERE (bt.`TalkContent` LIKE #{condition}
OR bt.`Remake` LIKE #{condition}
or se.`EntName` like #{condition})
<if test="null != bookenthtid and '' != bookenthtid">
and bt.bookenthtid = #{bookenthtid}
</if>
ORDER BY bt.`ModifiedBy` DESC
</select>
<!--修改约谈-->
<update id="changeTalk">
update BookTalk
set SysEnterpriseId = #{record.sysenterpriseid,jdbcType=VARCHAR},
TalkTime = #{record.talktime,jdbcType=TIMESTAMP},
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
TalkContent = #{record.talkcontent,jdbcType=LONGVARCHAR},
Remake = #{record.remake,jdbcType=LONGVARCHAR}
where BookTalkId = #{record.booktalkid,jdbcType=VARCHAR}
</update>
<select id="countByTime" resultType="java.lang.Integer">
select count(*) from BookTalk where SysEnterpriseId in(select SysEnterpriseId from SysEnterprise
where ManagerDept= #{sysUnitOrEntId} ) and TalkTime>#{time2} and TalkTime &lt; #{time}
</select>
</mapper>