123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496 |
- <?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.ghsc.partybuild.mapper.ShykMeetinguserMapper">
- <resultMap id="BaseResultMap" type="com.ghsc.partybuild.model.ShykMeetinguser">
- <id column="MEETINGUSERID" jdbcType="VARCHAR" property="meetinguserid" />
- <result column="MEETINGID" jdbcType="VARCHAR" property="meetingid" />
- <result column="USERNAME" jdbcType="VARCHAR" property="username" />
- <result column="USERCODE" jdbcType="VARCHAR" property="usercode" />
- <result column="PARTYNAME" jdbcType="VARCHAR" property="partyname" />
- <result column="PARTYCODE" jdbcType="VARCHAR" property="partycode" />
- <result column="SIGNINSTATUS" jdbcType="DECIMAL" property="signinstatus" />
- <result column="SIGNINUSERCODE" jdbcType="VARCHAR" property="signinusercode" />
- <result column="SIGNINUSERNAME" jdbcType="VARCHAR" property="signinusername" />
- <result column="SIGNINTIME" jdbcType="TIMESTAMP" property="signintime" />
- <result column="CHECKINSTATUS" jdbcType="DECIMAL" property="checkinstatus" />
- <result column="CHECKINUSERCODE" jdbcType="VARCHAR" property="checkinusercode" />
- <result column="CHECKINUSERNAME" jdbcType="VARCHAR" property="checkinusername" />
- <result column="CHECKINTIME" jdbcType="TIMESTAMP" property="checkintime" />
- <result column="USERREMARK" jdbcType="VARCHAR" property="userremark" />
- <result column="APPROVESTATUS" jdbcType="DECIMAL" property="approvestatus" />
- <result column="APPROVEOPINION" jdbcType="VARCHAR" property="approveopinion" />
- <result column="APPROVEUSERCODE" jdbcType="VARCHAR" property="approveusercode" />
- <result column="APPROVEUSERNAME" jdbcType="VARCHAR" property="approveusername" />
- <result column="MAKEUUPSTUDY" jdbcType="VARCHAR" property="makeuupstudy" />
- <result column="OPERATETIME" jdbcType="TIMESTAMP" property="operatetime" />
- <result column="OPERATESTATE" jdbcType="VARCHAR" property="operatestate" />
- <result column="SYNCSTATE" jdbcType="VARCHAR" property="syncstate" />
- </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">
- MEETINGUSERID, MEETINGID, USERNAME, USERCODE, PARTYNAME, PARTYCODE, SIGNINSTATUS,
- SIGNINUSERCODE, SIGNINUSERNAME, SIGNINTIME, CHECKINSTATUS, CHECKINUSERCODE, CHECKINUSERNAME,
- CHECKINTIME, USERREMARK, APPROVESTATUS, APPROVEOPINION, APPROVEUSERCODE, APPROVEUSERNAME,
- MAKEUUPSTUDY, OPERATETIME, OPERATESTATE, SYNCSTATE
- </sql>
- <select id="selectByExample" parameterType="com.ghsc.partybuild.model.ShykMeetinguserExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from shyk_meetinguser
- <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.String" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from shyk_meetinguser
- where MEETINGUSERID = #{meetinguserid,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from shyk_meetinguser
- where MEETINGUSERID = #{meetinguserid,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.ghsc.partybuild.model.ShykMeetinguserExample">
- delete from shyk_meetinguser
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.ghsc.partybuild.model.ShykMeetinguser">
- insert into shyk_meetinguser (MEETINGUSERID, MEETINGID, USERNAME,
- USERCODE, PARTYNAME, PARTYCODE,
- SIGNINSTATUS, SIGNINUSERCODE, SIGNINUSERNAME,
- SIGNINTIME, CHECKINSTATUS, CHECKINUSERCODE,
- CHECKINUSERNAME, CHECKINTIME, USERREMARK,
- APPROVESTATUS, APPROVEOPINION, APPROVEUSERCODE,
- APPROVEUSERNAME, MAKEUUPSTUDY, OPERATETIME,
- OPERATESTATE, SYNCSTATE)
- values (#{meetinguserid,jdbcType=VARCHAR}, #{meetingid,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
- #{usercode,jdbcType=VARCHAR}, #{partyname,jdbcType=VARCHAR}, #{partycode,jdbcType=VARCHAR},
- #{signinstatus,jdbcType=DECIMAL}, #{signinusercode,jdbcType=VARCHAR}, #{signinusername,jdbcType=VARCHAR},
- #{signintime,jdbcType=TIMESTAMP}, #{checkinstatus,jdbcType=DECIMAL}, #{checkinusercode,jdbcType=VARCHAR},
- #{checkinusername,jdbcType=VARCHAR}, #{checkintime,jdbcType=TIMESTAMP}, #{userremark,jdbcType=VARCHAR},
- #{approvestatus,jdbcType=DECIMAL}, #{approveopinion,jdbcType=VARCHAR}, #{approveusercode,jdbcType=VARCHAR},
- #{approveusername,jdbcType=VARCHAR}, #{makeuupstudy,jdbcType=VARCHAR}, #{operatetime,jdbcType=TIMESTAMP},
- #{operatestate,jdbcType=VARCHAR}, #{syncstate,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.ghsc.partybuild.model.ShykMeetinguser">
- insert into shyk_meetinguser
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="meetinguserid != null">
- MEETINGUSERID,
- </if>
- <if test="meetingid != null">
- MEETINGID,
- </if>
- <if test="username != null">
- USERNAME,
- </if>
- <if test="usercode != null">
- USERCODE,
- </if>
- <if test="partyname != null">
- PARTYNAME,
- </if>
- <if test="partycode != null">
- PARTYCODE,
- </if>
- <if test="signinstatus != null">
- SIGNINSTATUS,
- </if>
- <if test="signinusercode != null">
- SIGNINUSERCODE,
- </if>
- <if test="signinusername != null">
- SIGNINUSERNAME,
- </if>
- <if test="signintime != null">
- SIGNINTIME,
- </if>
- <if test="checkinstatus != null">
- CHECKINSTATUS,
- </if>
- <if test="checkinusercode != null">
- CHECKINUSERCODE,
- </if>
- <if test="checkinusername != null">
- CHECKINUSERNAME,
- </if>
- <if test="checkintime != null">
- CHECKINTIME,
- </if>
- <if test="userremark != null">
- USERREMARK,
- </if>
- <if test="approvestatus != null">
- APPROVESTATUS,
- </if>
- <if test="approveopinion != null">
- APPROVEOPINION,
- </if>
- <if test="approveusercode != null">
- APPROVEUSERCODE,
- </if>
- <if test="approveusername != null">
- APPROVEUSERNAME,
- </if>
- <if test="makeuupstudy != null">
- MAKEUUPSTUDY,
- </if>
- <if test="operatetime != null">
- OPERATETIME,
- </if>
- <if test="operatestate != null">
- OPERATESTATE,
- </if>
- <if test="syncstate != null">
- SYNCSTATE,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="meetinguserid != null">
- #{meetinguserid,jdbcType=VARCHAR},
- </if>
- <if test="meetingid != null">
- #{meetingid,jdbcType=VARCHAR},
- </if>
- <if test="username != null">
- #{username,jdbcType=VARCHAR},
- </if>
- <if test="usercode != null">
- #{usercode,jdbcType=VARCHAR},
- </if>
- <if test="partyname != null">
- #{partyname,jdbcType=VARCHAR},
- </if>
- <if test="partycode != null">
- #{partycode,jdbcType=VARCHAR},
- </if>
- <if test="signinstatus != null">
- #{signinstatus,jdbcType=DECIMAL},
- </if>
- <if test="signinusercode != null">
- #{signinusercode,jdbcType=VARCHAR},
- </if>
- <if test="signinusername != null">
- #{signinusername,jdbcType=VARCHAR},
- </if>
- <if test="signintime != null">
- #{signintime,jdbcType=TIMESTAMP},
- </if>
- <if test="checkinstatus != null">
- #{checkinstatus,jdbcType=DECIMAL},
- </if>
- <if test="checkinusercode != null">
- #{checkinusercode,jdbcType=VARCHAR},
- </if>
- <if test="checkinusername != null">
- #{checkinusername,jdbcType=VARCHAR},
- </if>
- <if test="checkintime != null">
- #{checkintime,jdbcType=TIMESTAMP},
- </if>
- <if test="userremark != null">
- #{userremark,jdbcType=VARCHAR},
- </if>
- <if test="approvestatus != null">
- #{approvestatus,jdbcType=DECIMAL},
- </if>
- <if test="approveopinion != null">
- #{approveopinion,jdbcType=VARCHAR},
- </if>
- <if test="approveusercode != null">
- #{approveusercode,jdbcType=VARCHAR},
- </if>
- <if test="approveusername != null">
- #{approveusername,jdbcType=VARCHAR},
- </if>
- <if test="makeuupstudy != null">
- #{makeuupstudy,jdbcType=VARCHAR},
- </if>
- <if test="operatetime != null">
- #{operatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="operatestate != null">
- #{operatestate,jdbcType=VARCHAR},
- </if>
- <if test="syncstate != null">
- #{syncstate,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.ghsc.partybuild.model.ShykMeetinguserExample" resultType="java.lang.Long">
- select count(*) from shyk_meetinguser
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update shyk_meetinguser
- <set>
- <if test="record.meetinguserid != null">
- MEETINGUSERID = #{record.meetinguserid,jdbcType=VARCHAR},
- </if>
- <if test="record.meetingid != null">
- MEETINGID = #{record.meetingid,jdbcType=VARCHAR},
- </if>
- <if test="record.username != null">
- USERNAME = #{record.username,jdbcType=VARCHAR},
- </if>
- <if test="record.usercode != null">
- USERCODE = #{record.usercode,jdbcType=VARCHAR},
- </if>
- <if test="record.partyname != null">
- PARTYNAME = #{record.partyname,jdbcType=VARCHAR},
- </if>
- <if test="record.partycode != null">
- PARTYCODE = #{record.partycode,jdbcType=VARCHAR},
- </if>
- <if test="record.signinstatus != null">
- SIGNINSTATUS = #{record.signinstatus,jdbcType=DECIMAL},
- </if>
- <if test="record.signinusercode != null">
- SIGNINUSERCODE = #{record.signinusercode,jdbcType=VARCHAR},
- </if>
- <if test="record.signinusername != null">
- SIGNINUSERNAME = #{record.signinusername,jdbcType=VARCHAR},
- </if>
- <if test="record.signintime != null">
- SIGNINTIME = #{record.signintime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.checkinstatus != null">
- CHECKINSTATUS = #{record.checkinstatus,jdbcType=DECIMAL},
- </if>
- <if test="record.checkinusercode != null">
- CHECKINUSERCODE = #{record.checkinusercode,jdbcType=VARCHAR},
- </if>
- <if test="record.checkinusername != null">
- CHECKINUSERNAME = #{record.checkinusername,jdbcType=VARCHAR},
- </if>
- <if test="record.checkintime != null">
- CHECKINTIME = #{record.checkintime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.userremark != null">
- USERREMARK = #{record.userremark,jdbcType=VARCHAR},
- </if>
- <if test="record.approvestatus != null">
- APPROVESTATUS = #{record.approvestatus,jdbcType=DECIMAL},
- </if>
- <if test="record.approveopinion != null">
- APPROVEOPINION = #{record.approveopinion,jdbcType=VARCHAR},
- </if>
- <if test="record.approveusercode != null">
- APPROVEUSERCODE = #{record.approveusercode,jdbcType=VARCHAR},
- </if>
- <if test="record.approveusername != null">
- APPROVEUSERNAME = #{record.approveusername,jdbcType=VARCHAR},
- </if>
- <if test="record.makeuupstudy != null">
- MAKEUUPSTUDY = #{record.makeuupstudy,jdbcType=VARCHAR},
- </if>
- <if test="record.operatetime != null">
- OPERATETIME = #{record.operatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.operatestate != null">
- OPERATESTATE = #{record.operatestate,jdbcType=VARCHAR},
- </if>
- <if test="record.syncstate != null">
- SYNCSTATE = #{record.syncstate,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update shyk_meetinguser
- set MEETINGUSERID = #{record.meetinguserid,jdbcType=VARCHAR},
- MEETINGID = #{record.meetingid,jdbcType=VARCHAR},
- USERNAME = #{record.username,jdbcType=VARCHAR},
- USERCODE = #{record.usercode,jdbcType=VARCHAR},
- PARTYNAME = #{record.partyname,jdbcType=VARCHAR},
- PARTYCODE = #{record.partycode,jdbcType=VARCHAR},
- SIGNINSTATUS = #{record.signinstatus,jdbcType=DECIMAL},
- SIGNINUSERCODE = #{record.signinusercode,jdbcType=VARCHAR},
- SIGNINUSERNAME = #{record.signinusername,jdbcType=VARCHAR},
- SIGNINTIME = #{record.signintime,jdbcType=TIMESTAMP},
- CHECKINSTATUS = #{record.checkinstatus,jdbcType=DECIMAL},
- CHECKINUSERCODE = #{record.checkinusercode,jdbcType=VARCHAR},
- CHECKINUSERNAME = #{record.checkinusername,jdbcType=VARCHAR},
- CHECKINTIME = #{record.checkintime,jdbcType=TIMESTAMP},
- USERREMARK = #{record.userremark,jdbcType=VARCHAR},
- APPROVESTATUS = #{record.approvestatus,jdbcType=DECIMAL},
- APPROVEOPINION = #{record.approveopinion,jdbcType=VARCHAR},
- APPROVEUSERCODE = #{record.approveusercode,jdbcType=VARCHAR},
- APPROVEUSERNAME = #{record.approveusername,jdbcType=VARCHAR},
- MAKEUUPSTUDY = #{record.makeuupstudy,jdbcType=VARCHAR},
- OPERATETIME = #{record.operatetime,jdbcType=TIMESTAMP},
- OPERATESTATE = #{record.operatestate,jdbcType=VARCHAR},
- SYNCSTATE = #{record.syncstate,jdbcType=VARCHAR}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.ghsc.partybuild.model.ShykMeetinguser">
- update shyk_meetinguser
- <set>
- <if test="meetingid != null">
- MEETINGID = #{meetingid,jdbcType=VARCHAR},
- </if>
- <if test="username != null">
- USERNAME = #{username,jdbcType=VARCHAR},
- </if>
- <if test="usercode != null">
- USERCODE = #{usercode,jdbcType=VARCHAR},
- </if>
- <if test="partyname != null">
- PARTYNAME = #{partyname,jdbcType=VARCHAR},
- </if>
- <if test="partycode != null">
- PARTYCODE = #{partycode,jdbcType=VARCHAR},
- </if>
- <if test="signinstatus != null">
- SIGNINSTATUS = #{signinstatus,jdbcType=DECIMAL},
- </if>
- <if test="signinusercode != null">
- SIGNINUSERCODE = #{signinusercode,jdbcType=VARCHAR},
- </if>
- <if test="signinusername != null">
- SIGNINUSERNAME = #{signinusername,jdbcType=VARCHAR},
- </if>
- <if test="signintime != null">
- SIGNINTIME = #{signintime,jdbcType=TIMESTAMP},
- </if>
- <if test="checkinstatus != null">
- CHECKINSTATUS = #{checkinstatus,jdbcType=DECIMAL},
- </if>
- <if test="checkinusercode != null">
- CHECKINUSERCODE = #{checkinusercode,jdbcType=VARCHAR},
- </if>
- <if test="checkinusername != null">
- CHECKINUSERNAME = #{checkinusername,jdbcType=VARCHAR},
- </if>
- <if test="checkintime != null">
- CHECKINTIME = #{checkintime,jdbcType=TIMESTAMP},
- </if>
- <if test="userremark != null">
- USERREMARK = #{userremark,jdbcType=VARCHAR},
- </if>
- <if test="approvestatus != null">
- APPROVESTATUS = #{approvestatus,jdbcType=DECIMAL},
- </if>
- <if test="approveopinion != null">
- APPROVEOPINION = #{approveopinion,jdbcType=VARCHAR},
- </if>
- <if test="approveusercode != null">
- APPROVEUSERCODE = #{approveusercode,jdbcType=VARCHAR},
- </if>
- <if test="approveusername != null">
- APPROVEUSERNAME = #{approveusername,jdbcType=VARCHAR},
- </if>
- <if test="makeuupstudy != null">
- MAKEUUPSTUDY = #{makeuupstudy,jdbcType=VARCHAR},
- </if>
- <if test="operatetime != null">
- OPERATETIME = #{operatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="operatestate != null">
- OPERATESTATE = #{operatestate,jdbcType=VARCHAR},
- </if>
- <if test="syncstate != null">
- SYNCSTATE = #{syncstate,jdbcType=VARCHAR},
- </if>
- </set>
- where MEETINGUSERID = #{meetinguserid,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.ghsc.partybuild.model.ShykMeetinguser">
- update shyk_meetinguser
- set MEETINGID = #{meetingid,jdbcType=VARCHAR},
- USERNAME = #{username,jdbcType=VARCHAR},
- USERCODE = #{usercode,jdbcType=VARCHAR},
- PARTYNAME = #{partyname,jdbcType=VARCHAR},
- PARTYCODE = #{partycode,jdbcType=VARCHAR},
- SIGNINSTATUS = #{signinstatus,jdbcType=DECIMAL},
- SIGNINUSERCODE = #{signinusercode,jdbcType=VARCHAR},
- SIGNINUSERNAME = #{signinusername,jdbcType=VARCHAR},
- SIGNINTIME = #{signintime,jdbcType=TIMESTAMP},
- CHECKINSTATUS = #{checkinstatus,jdbcType=DECIMAL},
- CHECKINUSERCODE = #{checkinusercode,jdbcType=VARCHAR},
- CHECKINUSERNAME = #{checkinusername,jdbcType=VARCHAR},
- CHECKINTIME = #{checkintime,jdbcType=TIMESTAMP},
- USERREMARK = #{userremark,jdbcType=VARCHAR},
- APPROVESTATUS = #{approvestatus,jdbcType=DECIMAL},
- APPROVEOPINION = #{approveopinion,jdbcType=VARCHAR},
- APPROVEUSERCODE = #{approveusercode,jdbcType=VARCHAR},
- APPROVEUSERNAME = #{approveusername,jdbcType=VARCHAR},
- MAKEUUPSTUDY = #{makeuupstudy,jdbcType=VARCHAR},
- OPERATETIME = #{operatetime,jdbcType=TIMESTAMP},
- OPERATESTATE = #{operatestate,jdbcType=VARCHAR},
- SYNCSTATE = #{syncstate,jdbcType=VARCHAR}
- where MEETINGUSERID = #{meetinguserid,jdbcType=VARCHAR}
- </update>
- </mapper>
|