123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386 |
- <?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.PeConfirmsponsorUserMapper">
- <resultMap id="BaseResultMap" type="com.ghsc.partybuild.model.PeConfirmsponsorUser">
- <id column="ID" jdbcType="VARCHAR" property="id" />
- <result column="CONFIRMSPONSORID" jdbcType="VARCHAR" property="confirmsponsorid" />
- <result column="USERNAME" jdbcType="VARCHAR" property="username" />
- <result column="USERCODE" jdbcType="VARCHAR" property="usercode" />
- <result column="POSITION" jdbcType="VARCHAR" property="position" />
- <result column="JOINTIME" jdbcType="TIMESTAMP" property="jointime" />
- <result column="ISLINECLAN" jdbcType="DECIMAL" property="islineclan" />
- <result column="CREATETIME" jdbcType="TIMESTAMP" property="createtime" />
- <result column="CREATEUSERID" jdbcType="VARCHAR" property="createuserid" />
- <result column="CREATEUSERNAME" jdbcType="VARCHAR" property="createusername" />
- <result column="UPDATETIME" jdbcType="TIMESTAMP" property="updatetime" />
- <result column="UPDATEUSERID" jdbcType="VARCHAR" property="updateuserid" />
- <result column="UPDATEUSERNAME" jdbcType="VARCHAR" property="updateusername" />
- <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">
- ID, CONFIRMSPONSORID, USERNAME, USERCODE, POSITION, JOINTIME, ISLINECLAN, CREATETIME,
- CREATEUSERID, CREATEUSERNAME, UPDATETIME, UPDATEUSERID, UPDATEUSERNAME, OPERATETIME,
- OPERATESTATE, SYNCSTATE
- </sql>
- <select id="selectByExample" parameterType="com.ghsc.partybuild.model.PeConfirmsponsorUserExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from pe_confirmsponsor_user
- <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 pe_confirmsponsor_user
- where ID = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from pe_confirmsponsor_user
- where ID = #{id,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.ghsc.partybuild.model.PeConfirmsponsorUserExample">
- delete from pe_confirmsponsor_user
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.ghsc.partybuild.model.PeConfirmsponsorUser">
- insert into pe_confirmsponsor_user (ID, CONFIRMSPONSORID, USERNAME,
- USERCODE, POSITION, JOINTIME,
- ISLINECLAN, CREATETIME, CREATEUSERID,
- CREATEUSERNAME, UPDATETIME, UPDATEUSERID,
- UPDATEUSERNAME, OPERATETIME, OPERATESTATE,
- SYNCSTATE)
- values (#{id,jdbcType=VARCHAR}, #{confirmsponsorid,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
- #{usercode,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}, #{jointime,jdbcType=TIMESTAMP},
- #{islineclan,jdbcType=DECIMAL}, #{createtime,jdbcType=TIMESTAMP}, #{createuserid,jdbcType=VARCHAR},
- #{createusername,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, #{updateuserid,jdbcType=VARCHAR},
- #{updateusername,jdbcType=VARCHAR}, #{operatetime,jdbcType=TIMESTAMP}, #{operatestate,jdbcType=VARCHAR},
- #{syncstate,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.ghsc.partybuild.model.PeConfirmsponsorUser">
- insert into pe_confirmsponsor_user
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- ID,
- </if>
- <if test="confirmsponsorid != null">
- CONFIRMSPONSORID,
- </if>
- <if test="username != null">
- USERNAME,
- </if>
- <if test="usercode != null">
- USERCODE,
- </if>
- <if test="position != null">
- POSITION,
- </if>
- <if test="jointime != null">
- JOINTIME,
- </if>
- <if test="islineclan != null">
- ISLINECLAN,
- </if>
- <if test="createtime != null">
- CREATETIME,
- </if>
- <if test="createuserid != null">
- CREATEUSERID,
- </if>
- <if test="createusername != null">
- CREATEUSERNAME,
- </if>
- <if test="updatetime != null">
- UPDATETIME,
- </if>
- <if test="updateuserid != null">
- UPDATEUSERID,
- </if>
- <if test="updateusername != null">
- UPDATEUSERNAME,
- </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="id != null">
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="confirmsponsorid != null">
- #{confirmsponsorid,jdbcType=VARCHAR},
- </if>
- <if test="username != null">
- #{username,jdbcType=VARCHAR},
- </if>
- <if test="usercode != null">
- #{usercode,jdbcType=VARCHAR},
- </if>
- <if test="position != null">
- #{position,jdbcType=VARCHAR},
- </if>
- <if test="jointime != null">
- #{jointime,jdbcType=TIMESTAMP},
- </if>
- <if test="islineclan != null">
- #{islineclan,jdbcType=DECIMAL},
- </if>
- <if test="createtime != null">
- #{createtime,jdbcType=TIMESTAMP},
- </if>
- <if test="createuserid != null">
- #{createuserid,jdbcType=VARCHAR},
- </if>
- <if test="createusername != null">
- #{createusername,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null">
- #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateuserid != null">
- #{updateuserid,jdbcType=VARCHAR},
- </if>
- <if test="updateusername != null">
- #{updateusername,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.PeConfirmsponsorUserExample" resultType="java.lang.Long">
- select count(*) from pe_confirmsponsor_user
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update pe_confirmsponsor_user
- <set>
- <if test="record.id != null">
- ID = #{record.id,jdbcType=VARCHAR},
- </if>
- <if test="record.confirmsponsorid != null">
- CONFIRMSPONSORID = #{record.confirmsponsorid,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.position != null">
- POSITION = #{record.position,jdbcType=VARCHAR},
- </if>
- <if test="record.jointime != null">
- JOINTIME = #{record.jointime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.islineclan != null">
- ISLINECLAN = #{record.islineclan,jdbcType=DECIMAL},
- </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.createusername != null">
- CREATEUSERNAME = #{record.createusername,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.updateusername != null">
- UPDATEUSERNAME = #{record.updateusername,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 pe_confirmsponsor_user
- set ID = #{record.id,jdbcType=VARCHAR},
- CONFIRMSPONSORID = #{record.confirmsponsorid,jdbcType=VARCHAR},
- USERNAME = #{record.username,jdbcType=VARCHAR},
- USERCODE = #{record.usercode,jdbcType=VARCHAR},
- POSITION = #{record.position,jdbcType=VARCHAR},
- JOINTIME = #{record.jointime,jdbcType=TIMESTAMP},
- ISLINECLAN = #{record.islineclan,jdbcType=DECIMAL},
- CREATETIME = #{record.createtime,jdbcType=TIMESTAMP},
- CREATEUSERID = #{record.createuserid,jdbcType=VARCHAR},
- CREATEUSERNAME = #{record.createusername,jdbcType=VARCHAR},
- UPDATETIME = #{record.updatetime,jdbcType=TIMESTAMP},
- UPDATEUSERID = #{record.updateuserid,jdbcType=VARCHAR},
- UPDATEUSERNAME = #{record.updateusername,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.PeConfirmsponsorUser">
- update pe_confirmsponsor_user
- <set>
- <if test="confirmsponsorid != null">
- CONFIRMSPONSORID = #{confirmsponsorid,jdbcType=VARCHAR},
- </if>
- <if test="username != null">
- USERNAME = #{username,jdbcType=VARCHAR},
- </if>
- <if test="usercode != null">
- USERCODE = #{usercode,jdbcType=VARCHAR},
- </if>
- <if test="position != null">
- POSITION = #{position,jdbcType=VARCHAR},
- </if>
- <if test="jointime != null">
- JOINTIME = #{jointime,jdbcType=TIMESTAMP},
- </if>
- <if test="islineclan != null">
- ISLINECLAN = #{islineclan,jdbcType=DECIMAL},
- </if>
- <if test="createtime != null">
- CREATETIME = #{createtime,jdbcType=TIMESTAMP},
- </if>
- <if test="createuserid != null">
- CREATEUSERID = #{createuserid,jdbcType=VARCHAR},
- </if>
- <if test="createusername != null">
- CREATEUSERNAME = #{createusername,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null">
- UPDATETIME = #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateuserid != null">
- UPDATEUSERID = #{updateuserid,jdbcType=VARCHAR},
- </if>
- <if test="updateusername != null">
- UPDATEUSERNAME = #{updateusername,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 ID = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.ghsc.partybuild.model.PeConfirmsponsorUser">
- update pe_confirmsponsor_user
- set CONFIRMSPONSORID = #{confirmsponsorid,jdbcType=VARCHAR},
- USERNAME = #{username,jdbcType=VARCHAR},
- USERCODE = #{usercode,jdbcType=VARCHAR},
- POSITION = #{position,jdbcType=VARCHAR},
- JOINTIME = #{jointime,jdbcType=TIMESTAMP},
- ISLINECLAN = #{islineclan,jdbcType=DECIMAL},
- CREATETIME = #{createtime,jdbcType=TIMESTAMP},
- CREATEUSERID = #{createuserid,jdbcType=VARCHAR},
- CREATEUSERNAME = #{createusername,jdbcType=VARCHAR},
- UPDATETIME = #{updatetime,jdbcType=TIMESTAMP},
- UPDATEUSERID = #{updateuserid,jdbcType=VARCHAR},
- UPDATEUSERNAME = #{updateusername,jdbcType=VARCHAR},
- OPERATETIME = #{operatetime,jdbcType=TIMESTAMP},
- OPERATESTATE = #{operatestate,jdbcType=VARCHAR},
- SYNCSTATE = #{syncstate,jdbcType=VARCHAR}
- where ID = #{id,jdbcType=VARCHAR}
- </update>
- </mapper>
|