| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- <?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="cn.com.goldenwater.dcproj.dao.BisInspMeetRoomDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspMeetRoom" id="bisInspMeetRoomResultMap">
- <result property="persName" column="PERS_NAME"/>
- <result property="orgNm" column="ORG_NM"/>
- <result property="usOrgNm" column="US_ORG_NM"/>
- <result property="id" column="ID"/>
- <result property="meetingNumber" column="MEETING_NUMBER"/>
- <result property="meetingName" column="MEETING_NAME"/>
- <result property="startTime" column="START_TIME"/>
- <result property="endTime" column="END_TIME"/>
- <result property="maxParticipant" column="MAX_PARTICIPANT"/>
- <result property="requirePassword" column="REQUIRE_PASSWORD"/>
- <result property="inPassword" column="IN_PASSWORD"/>
- <result property="controlPassword" column="CONTROL_PASSWORD"/>
- <result property="autoMute" column="AUTO_MUTE"/>
- <result property="autoRecord" column="AUTO_RECORD"/>
- <result property="smartMuteperson" column="SMART_MUTEPERSON"/>
- <result property="shareUrl" column="SHARE_URL"/>
- <result property="usOrgId" column="US_ORG_ID"/>
- <result property="persId" column="PERS_ID"/>
- <result property="orgId" column="ORG_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="flagValid" column="FLAG_VALID"/>
- </resultMap>
- <sql id="table_columns">
- PERS_NAME,
- ORG_NM,
- US_ORG_NM,
- ID,
- MEETING_NUMBER,
- MEETING_NAME,
- START_TIME,
- END_TIME,
- MAX_PARTICIPANT,
- REQUIRE_PASSWORD,
- IN_PASSWORD,
- CONTROL_PASSWORD,
- AUTO_MUTE,
- AUTO_RECORD,
- SMART_MUTEPERSON,
- SHARE_URL,
- US_ORG_ID,
- PERS_ID,
- ORG_ID,
- INTM,
- UPTM,
- FLAG_VALID
- </sql>
- <sql id="table_columns_bak">
- PERS_NAME,
- ORG_NM,
- US_ORG_NM,
- ID,
- MEETING_NUMBER,
- MEETING_NAME,
- START_TIME,
- END_TIME,
- MAX_PARTICIPANT,
- AUTO_MUTE,
- AUTO_RECORD,
- SMART_MUTEPERSON,
- SHARE_URL,
- US_ORG_ID,
- PERS_ID,
- ORG_ID,
- INTM,
- UPTM,
- FLAG_VALID
- </sql>
- <sql id="entity_properties">
- #{persName},
- #{orgNm},
- #{usOrgNm},
- #{id},
- #{meetingNumber},
- #{meetingName},
- #{startTime},
- #{endTime},
- #{maxParticipant},
- #{requirePassword},
- #{inPassword},
- #{controlPassword},
- #{autoMute},
- #{autoRecord},
- #{smartMuteperson},
- #{shareUrl},
- #{usOrgId},
- #{persId},
- #{orgId},
- #{intm},
- #{uptm},
- #{flagValid}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="orgNm != null and orgNm != ''">and ORG_NM = #{orgNm}</if>
- <if test="usOrgNm != null and usOrgNm != ''">and US_ORG_NM = #{usOrgNm}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="meetingNumber != null and meetingNumber != ''">and MEETING_NUMBER = #{meetingNumber}</if>
- <if test="meetingName != null and meetingName != ''">and MEETING_NAME = #{meetingName}</if>
- <if test="startTime != null">and START_TIME = #{startTime}</if>
- <if test="endTime != null">and END_TIME = #{endTime}</if>
- <if test="maxParticipant != null and maxParticipant != ''">and MAX_PARTICIPANT = #{maxParticipant}</if>
- <if test="requirePassword != null and requirePassword != ''">and REQUIRE_PASSWORD = #{requirePassword}</if>
- <if test="inPassword != null and inPassword != ''">and IN_PASSWORD = #{inPassword}</if>
- <if test="controlPassword != null and controlPassword != ''">and CONTROL_PASSWORD = #{controlPassword}</if>
- <if test="autoMute != null and autoMute != ''">and AUTO_MUTE = #{autoMute}</if>
- <if test="autoRecord != null and autoRecord != ''">and AUTO_RECORD = #{autoRecord}</if>
- <if test="smartMuteperson != null and smartMuteperson != ''">and SMART_MUTEPERSON = #{smartMuteperson}</if>
- <if test="shareUrl != null and shareUrl != ''">and SHARE_URL = #{shareUrl}</if>
- <if test="usOrgId != null and usOrgId != ''">and US_ORG_ID = #{usOrgId}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="orgId != null and orgId != ''">and ORG_ID = #{orgId}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="flagValid != null and flagValid != ''">and FLAG_VALID = #{flagValid}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspMeetRoomResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_MEET_ROOM where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspMeetRoomResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_MEET_ROOM
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspMeetRoomResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_MEET_ROOM
- </select>
- <select id="findList" resultMap="bisInspMeetRoomResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_MEET_ROOM
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_MEET_ROOM
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspMeetRoom">
- insert into BIS_INSP_MEET_ROOM(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_MEET_ROOM where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspMeetRoom">
- delete from BIS_INSP_MEET_ROOM
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_MEET_ROOM set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspMeetRoom">
- update BIS_INSP_MEET_ROOM
- <trim prefix="set" suffixOverrides=",">
- <if test="orgNm != null and orgNm != ''">ORG_NM = #{orgNm},</if>
- <if test="usOrgNm != null and usOrgNm != ''">US_ORG_NM = #{usOrgNm},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="meetingNumber != null and meetingNumber != ''">MEETING_NUMBER = #{meetingNumber},</if>
- <if test="meetingName != null and meetingName != ''">MEETING_NAME = #{meetingName},</if>
- <if test="startTime != null">START_TIME = #{startTime},</if>
- <if test="endTime != null">END_TIME = #{endTime},</if>
- <if test="maxParticipant != null and maxParticipant != ''">MAX_PARTICIPANT = #{maxParticipant},</if>
- <if test="requirePassword != null and requirePassword != ''">REQUIRE_PASSWORD = #{requirePassword},</if>
- <if test="inPassword != null and inPassword != ''">IN_PASSWORD = #{inPassword},</if>
- <if test="controlPassword != null and controlPassword != ''">CONTROL_PASSWORD = #{controlPassword},</if>
- <if test="autoMute != null and autoMute != ''">AUTO_MUTE = #{autoMute},</if>
- <if test="autoRecord != null and autoRecord != ''">AUTO_RECORD = #{autoRecord},</if>
- <if test="smartMuteperson != null and smartMuteperson != ''">SMART_MUTEPERSON = #{smartMuteperson},</if>
- <if test="shareUrl != null and shareUrl != ''">SHARE_URL = #{shareUrl},</if>
- <if test="usOrgId != null and usOrgId != ''">US_ORG_ID = #{usOrgId},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="orgId != null and orgId != ''">ORG_ID = #{orgId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="flagValid != null and flagValid != ''">FLAG_VALID = #{flagValid},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspMeetRoom">
- update BIS_INSP_MEET_ROOM
- <trim prefix="set" suffixOverrides=",">
- <if test="orgNm != null and orgNm != ''">ORG_NM = #{orgNm},</if>
- <if test="usOrgNm != null and usOrgNm != ''">US_ORG_NM = #{usOrgNm},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="meetingNumber != null and meetingNumber != ''">MEETING_NUMBER = #{meetingNumber},</if>
- <if test="meetingName != null and meetingName != ''">MEETING_NAME = #{meetingName},</if>
- <if test="startTime != null">START_TIME = #{startTime},</if>
- <if test="endTime != null">END_TIME = #{endTime},</if>
- <if test="maxParticipant != null and maxParticipant != ''">MAX_PARTICIPANT = #{maxParticipant},</if>
- <if test="requirePassword != null and requirePassword != ''">REQUIRE_PASSWORD = #{requirePassword},</if>
- <if test="inPassword != null and inPassword != ''">IN_PASSWORD = #{inPassword},</if>
- <if test="controlPassword != null and controlPassword != ''">CONTROL_PASSWORD = #{controlPassword},</if>
- <if test="autoMute != null and autoMute != ''">AUTO_MUTE = #{autoMute},</if>
- <if test="autoRecord != null and autoRecord != ''">AUTO_RECORD = #{autoRecord},</if>
- <if test="smartMuteperson != null and smartMuteperson != ''">SMART_MUTEPERSON = #{smartMuteperson},</if>
- <if test="shareUrl != null and shareUrl != ''">SHARE_URL = #{shareUrl},</if>
- <if test="usOrgId != null and usOrgId != ''">US_ORG_ID = #{usOrgId},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="orgId != null and orgId != ''">ORG_ID = #{orgId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="flagValid != null and flagValid != ''">FLAG_VALID = #{flagValid},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- <select id="getRoomByPersId" resultType="cn.com.goldenwater.dcproj.dto.BisInspMeetRoomDto">
- SELECT <include refid="table_columns_bak"/> FROM BIS_INSP_MEET_ROOM where 1=1
- <if test="persId != null and persId != ''">and pers_id=#{persId} or us_org_id=#{usOrgId}</if>
- </select>
- </mapper>
|