add: 内外部会议模块增删改查
This commit is contained in:
+109
@@ -0,0 +1,109 @@
|
||||
<?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.adc.da.slrs.InsideOntSideMeeting.dao.InsideOutsideMeetingDao">
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.InsideOntSideMeeting.entity.InsideOutSideMeeting" >
|
||||
<id column="id" property="id" />
|
||||
<result column="MEETING_NAME" property="meetingName" />
|
||||
<result column="TOPIC_NAME" property="topicName" />
|
||||
<result column="MEETING_ORGANIZER" property="meetingOrganizer" />
|
||||
<result column="MEETING_TIME" property="meetingTime" />
|
||||
<result column="MEETING_ADDRESS" property="meetingAddress" />
|
||||
<result column="PARTICIPANTS" property="participants" />
|
||||
<result column="MEETING_MINUTES" property="meetingMinutes" />
|
||||
<result column="MEETING_CONTENT" property="meetingContent" />
|
||||
<result column="FIRST_MEETING_TYPE" property="firstMeetingType" />
|
||||
<result column="SECOND_MEETING_TYPE" property="secondMeetingType" />
|
||||
<result column="VALID_FLAG" property="validFlag" />
|
||||
<result column="CREATE_TIME" property="createTime" />
|
||||
<result column="MODIFY_TIME" property="modifyTime" />
|
||||
<collection property="meetingTopicList" ofType="com.adc.da.slrs.InsideOntSideMeeting.entity.MeetingTopic">
|
||||
<id column="ID" property="id" />
|
||||
<result column="MEETING_ID" property="meetingId" />
|
||||
<result column="AGENDA_NAME" property="agendaName" />
|
||||
<result column="AGENDA_MATERIALS" property="agendaMaterials" />
|
||||
<result column="REPORTER" property="reporter" />
|
||||
<result column="REPORTING_UNIT" property="reportingUnit" />
|
||||
<result column="AGENDA_CONTENT" property="agendaContent" />
|
||||
<result column="VALID_FLAG" property="validFlag" />
|
||||
<result column="CREATE_TIME" property="createTime" />
|
||||
<result column="MODIFY_TIME" property="modifyTime" />
|
||||
</collection>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
ID,MEETING_NAME,TOPIC_NAME,MEETING_ORGANIZER,MEETING_TIME,MEETING_ADDRESS,
|
||||
PARTICIPANTS,MEETING_MINUTES,MEETING_CONTENT,FIRST_MEETING_TYPE,SECOND_MEETING_TYPE,VALID_FLAG,CREATE_TIME,MODIFY_TIME
|
||||
</sql>
|
||||
<sql id="Base_Column_Join_MeetingTopic_List">
|
||||
iom.ID,iom.MEETING_NAME,iom.TOPIC_NAME,iom.MEETING_ORGANIZER,iom.MEETING_TIME,iom.MEETING_ADDRESS,
|
||||
iom.PARTICIPANTS,iom.MEETING_MINUTES,iom.MEETING_CONTENT,iom.FIRST_MEETING_TYPE,iom.SECOND_MEETING_TYPE,
|
||||
mt.ID,mt.MEETING_ID,mt.AGENDA_NAME,mt.AGENDA_MATERIALS,mt.REPORTER,mt.REPORTING_UNIT,
|
||||
mt.AGENDA_CONTENT,mt.VALID_FLAG,mt.CREATE_TIME,mt.MODIFY_TIME,
|
||||
iom.VALID_FLAG,iom.CREATE_TIME,iom.MODIFY_TIME
|
||||
</sql>
|
||||
<sql id="Base_Where_Clause">
|
||||
<trim suffixOverrides="," >
|
||||
<if test="meetingName != null and meetingName !=''">
|
||||
and MEETING_NAME like concat('%',#{meetingName},'%')
|
||||
</if>
|
||||
<if test="topicName != null and topicName !=''">
|
||||
and TOPIC_NAME = #{topicName}
|
||||
</if>
|
||||
<if test="meetingOrganizer != null and meetingOrganizer != ''" >
|
||||
and MEETING_ORGANIZER like concat('%',#{meetingOrganizer},'%')
|
||||
</if>
|
||||
<if test="meetingTime != null and meetingTime !=''">
|
||||
and MEETING_TIME ${meetingTimeOperator} #{meetingTime}
|
||||
</if>
|
||||
<if test="meetingAddress != null and meetingAddress != ''" >
|
||||
and MEETING_ADDRESS like concat('%',#{meetingAddress},'%')
|
||||
</if>
|
||||
<if test="participantsList != null and participantsList.size() > 0" >
|
||||
and PARTICIPANTS in
|
||||
<foreach collection="participantsList" separator="," open="(" close=")" item="participant">
|
||||
#{participant}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="meetingContent != null" >
|
||||
and MEETING_CONTENT like concat('%',#{meetingContent},'%')
|
||||
</if>
|
||||
<if test="firstMeetingType != null and firstMeetingType != ''" >
|
||||
and FIRST_MEETING_TYPE = #{firstMeetingType}
|
||||
</if>
|
||||
<if test="secondMeetingType != null and secondMeetingType != ''" >
|
||||
and SECOND_MEETING_TYPE = #{secondMeetingType}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
<sql id="MeetingTopic_where">
|
||||
<if test="agendaName != null and agendaName != ''">
|
||||
and mt.AGENDA_NAME like concat('%',#{agendaName},'%')
|
||||
</if>
|
||||
<if test="reporter != null and reporter != ''">
|
||||
and mt.REPORTER like concat('%',#{reporter},'%')
|
||||
</if>
|
||||
<if test="reportingUnit != null and reportingUnit != ''">
|
||||
and mt.REPORTING_UNIT like concat('%',#{reportingUnit},'%')
|
||||
</if>
|
||||
<if test="agendaContent != null and agendaContent != ''">
|
||||
and mt.AGENDA_CONTENT like concat('%',#{agendaContent},'%')
|
||||
</if>
|
||||
</sql>
|
||||
<select id="queryByPageCount" resultType="java.lang.Integer">
|
||||
select count(1) from inside_outside_meeting
|
||||
where VALID_FLAG = 0
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
<select id="queryByPage" resultMap="BaseResultMap">
|
||||
select <include refid="Base_Column_Join_MeetingTopic_List" />
|
||||
from inside_outside_meeting iom join meeting_topic mt on iom.ID = mt.MEETING_ID
|
||||
where iom.VALID_FLAG = 0
|
||||
<include refid="Base_Where_Clause" />
|
||||
<include refid="MeetingTopic_where" />
|
||||
order by iom.ID
|
||||
limit #{page},#{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user