123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- <?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.PfPartylifemeetingMapper">
- <resultMap id="BaseResultMap" type="com.ghsc.partybuild.model.PfPartylifemeeting">
- <id column="partyLifeMeetingId" jdbcType="VARCHAR" property="partylifemeetingid" />
- <result column="title" jdbcType="VARCHAR" property="title" />
- <result column="partyCode" jdbcType="VARCHAR" property="partycode" />
- <result column="partyLifeMeetingType" jdbcType="INTEGER" property="partylifemeetingtype" />
- <result column="meetingDate" jdbcType="DATE" property="meetingdate" />
- <result column="userCount" jdbcType="INTEGER" property="usercount" />
- <result column="address" jdbcType="VARCHAR" property="address" />
- <result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
- <result column="createUserId" jdbcType="VARCHAR" property="createuserid" />
- <result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
- <result column="updateUserId" jdbcType="VARCHAR" property="updateuserid" />
- <result column="personnel" jdbcType="VARCHAR" property="personnel" />
- <result column="result" jdbcType="VARCHAR" property="result" />
- <result column="compere" jdbcType="VARCHAR" property="compere" />
- <result column="meetingType" jdbcType="INTEGER" property="meetingtype" />
- </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">
- partyLifeMeetingId, title, partyCode, partyLifeMeetingType, meetingDate, userCount,
- address, createTime, createUserId, updateTime, updateUserId, personnel, result, compere,
- meetingType
- </sql>
- <select id="selectByExample" parameterType="com.ghsc.partybuild.model.PfPartylifemeetingExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from pf_partylifemeeting
- <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 pf_partylifemeeting
- where partyLifeMeetingId = #{partylifemeetingid,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from pf_partylifemeeting
- where partyLifeMeetingId = #{partylifemeetingid,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.ghsc.partybuild.model.PfPartylifemeetingExample">
- delete from pf_partylifemeeting
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.ghsc.partybuild.model.PfPartylifemeeting">
- insert into pf_partylifemeeting (partyLifeMeetingId, title, partyCode,
- partyLifeMeetingType, meetingDate, userCount,
- address, createTime, createUserId,
- updateTime, updateUserId, personnel,
- result, compere, meetingType
- )
- values (#{partylifemeetingid,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{partycode,jdbcType=VARCHAR},
- #{partylifemeetingtype,jdbcType=INTEGER}, #{meetingdate,jdbcType=DATE}, #{usercount,jdbcType=INTEGER},
- #{address,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{createuserid,jdbcType=VARCHAR},
- #{updatetime,jdbcType=TIMESTAMP}, #{updateuserid,jdbcType=VARCHAR}, #{personnel,jdbcType=VARCHAR},
- #{result,jdbcType=VARCHAR}, #{compere,jdbcType=VARCHAR}, #{meetingtype,jdbcType=INTEGER}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.ghsc.partybuild.model.PfPartylifemeeting">
- insert into pf_partylifemeeting
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="partylifemeetingid != null">
- partyLifeMeetingId,
- </if>
- <if test="title != null">
- title,
- </if>
- <if test="partycode != null">
- partyCode,
- </if>
- <if test="partylifemeetingtype != null">
- partyLifeMeetingType,
- </if>
- <if test="meetingdate != null">
- meetingDate,
- </if>
- <if test="usercount != null">
- userCount,
- </if>
- <if test="address != null">
- address,
- </if>
- <if test="createtime != null">
- createTime,
- </if>
- <if test="createuserid != null">
- createUserId,
- </if>
- <if test="updatetime != null">
- updateTime,
- </if>
- <if test="updateuserid != null">
- updateUserId,
- </if>
- <if test="personnel != null">
- personnel,
- </if>
- <if test="result != null">
- result,
- </if>
- <if test="compere != null">
- compere,
- </if>
- <if test="meetingtype != null">
- meetingType,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="partylifemeetingid != null">
- #{partylifemeetingid,jdbcType=VARCHAR},
- </if>
- <if test="title != null">
- #{title,jdbcType=VARCHAR},
- </if>
- <if test="partycode != null">
- #{partycode,jdbcType=VARCHAR},
- </if>
- <if test="partylifemeetingtype != null">
- #{partylifemeetingtype,jdbcType=INTEGER},
- </if>
- <if test="meetingdate != null">
- #{meetingdate,jdbcType=DATE},
- </if>
- <if test="usercount != null">
- #{usercount,jdbcType=INTEGER},
- </if>
- <if test="address != null">
- #{address,jdbcType=VARCHAR},
- </if>
- <if test="createtime != null">
- #{createtime,jdbcType=TIMESTAMP},
- </if>
- <if test="createuserid != null">
- #{createuserid,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null">
- #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateuserid != null">
- #{updateuserid,jdbcType=VARCHAR},
- </if>
- <if test="personnel != null">
- #{personnel,jdbcType=VARCHAR},
- </if>
- <if test="result != null">
- #{result,jdbcType=VARCHAR},
- </if>
- <if test="compere != null">
- #{compere,jdbcType=VARCHAR},
- </if>
- <if test="meetingtype != null">
- #{meetingtype,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.ghsc.partybuild.model.PfPartylifemeetingExample" resultType="java.lang.Long">
- select count(*) from pf_partylifemeeting
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update pf_partylifemeeting
- <set>
- <if test="record.partylifemeetingid != null">
- partyLifeMeetingId = #{record.partylifemeetingid,jdbcType=VARCHAR},
- </if>
- <if test="record.title != null">
- title = #{record.title,jdbcType=VARCHAR},
- </if>
- <if test="record.partycode != null">
- partyCode = #{record.partycode,jdbcType=VARCHAR},
- </if>
- <if test="record.partylifemeetingtype != null">
- partyLifeMeetingType = #{record.partylifemeetingtype,jdbcType=INTEGER},
- </if>
- <if test="record.meetingdate != null">
- meetingDate = #{record.meetingdate,jdbcType=DATE},
- </if>
- <if test="record.usercount != null">
- userCount = #{record.usercount,jdbcType=INTEGER},
- </if>
- <if test="record.address != null">
- address = #{record.address,jdbcType=VARCHAR},
- </if>
- <if test="record.createtime != null">
- createTime = #{record.createtime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.createuserid != null">
- createUserId = #{record.createuserid,jdbcType=VARCHAR},
- </if>
- <if test="record.updatetime != null">
- updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.updateuserid != null">
- updateUserId = #{record.updateuserid,jdbcType=VARCHAR},
- </if>
- <if test="record.personnel != null">
- personnel = #{record.personnel,jdbcType=VARCHAR},
- </if>
- <if test="record.result != null">
- result = #{record.result,jdbcType=VARCHAR},
- </if>
- <if test="record.compere != null">
- compere = #{record.compere,jdbcType=VARCHAR},
- </if>
- <if test="record.meetingtype != null">
- meetingType = #{record.meetingtype,jdbcType=INTEGER},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update pf_partylifemeeting
- set partyLifeMeetingId = #{record.partylifemeetingid,jdbcType=VARCHAR},
- title = #{record.title,jdbcType=VARCHAR},
- partyCode = #{record.partycode,jdbcType=VARCHAR},
- partyLifeMeetingType = #{record.partylifemeetingtype,jdbcType=INTEGER},
- meetingDate = #{record.meetingdate,jdbcType=DATE},
- userCount = #{record.usercount,jdbcType=INTEGER},
- address = #{record.address,jdbcType=VARCHAR},
- createTime = #{record.createtime,jdbcType=TIMESTAMP},
- createUserId = #{record.createuserid,jdbcType=VARCHAR},
- updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
- updateUserId = #{record.updateuserid,jdbcType=VARCHAR},
- personnel = #{record.personnel,jdbcType=VARCHAR},
- result = #{record.result,jdbcType=VARCHAR},
- compere = #{record.compere,jdbcType=VARCHAR},
- meetingType = #{record.meetingtype,jdbcType=INTEGER}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.ghsc.partybuild.model.PfPartylifemeeting">
- update pf_partylifemeeting
- <set>
- <if test="title != null">
- title = #{title,jdbcType=VARCHAR},
- </if>
- <if test="partycode != null">
- partyCode = #{partycode,jdbcType=VARCHAR},
- </if>
- <if test="partylifemeetingtype != null">
- partyLifeMeetingType = #{partylifemeetingtype,jdbcType=INTEGER},
- </if>
- <if test="meetingdate != null">
- meetingDate = #{meetingdate,jdbcType=DATE},
- </if>
- <if test="usercount != null">
- userCount = #{usercount,jdbcType=INTEGER},
- </if>
- <if test="address != null">
- address = #{address,jdbcType=VARCHAR},
- </if>
- <if test="createtime != null">
- createTime = #{createtime,jdbcType=TIMESTAMP},
- </if>
- <if test="createuserid != null">
- createUserId = #{createuserid,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null">
- updateTime = #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateuserid != null">
- updateUserId = #{updateuserid,jdbcType=VARCHAR},
- </if>
- <if test="personnel != null">
- personnel = #{personnel,jdbcType=VARCHAR},
- </if>
- <if test="result != null">
- result = #{result,jdbcType=VARCHAR},
- </if>
- <if test="compere != null">
- compere = #{compere,jdbcType=VARCHAR},
- </if>
- <if test="meetingtype != null">
- meetingType = #{meetingtype,jdbcType=INTEGER},
- </if>
- </set>
- where partyLifeMeetingId = #{partylifemeetingid,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.ghsc.partybuild.model.PfPartylifemeeting">
- update pf_partylifemeeting
- set title = #{title,jdbcType=VARCHAR},
- partyCode = #{partycode,jdbcType=VARCHAR},
- partyLifeMeetingType = #{partylifemeetingtype,jdbcType=INTEGER},
- meetingDate = #{meetingdate,jdbcType=DATE},
- userCount = #{usercount,jdbcType=INTEGER},
- address = #{address,jdbcType=VARCHAR},
- createTime = #{createtime,jdbcType=TIMESTAMP},
- createUserId = #{createuserid,jdbcType=VARCHAR},
- updateTime = #{updatetime,jdbcType=TIMESTAMP},
- updateUserId = #{updateuserid,jdbcType=VARCHAR},
- personnel = #{personnel,jdbcType=VARCHAR},
- result = #{result,jdbcType=VARCHAR},
- compere = #{compere,jdbcType=VARCHAR},
- meetingType = #{meetingtype,jdbcType=INTEGER}
- where partyLifeMeetingId = #{partylifemeetingid,jdbcType=VARCHAR}
- </update>
- </mapper>
|