123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347 |
- <?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.juxiao.xchat.module.xbd.mapper.users.NobleUsersMapper">
- <resultMap id="BaseResultMap" type="com.juxiao.xchat.module.xbd.domain.users.NobleUsers" >
- <id column="uid" property="uid" jdbcType="BIGINT" />
- <result column="noble_id" property="nobleId" jdbcType="INTEGER" />
- <result column="noble_name" property="nobleName" jdbcType="VARCHAR" />
- <result column="expire" property="expire" jdbcType="TIMESTAMP" />
- <result column="badge_id" property="badgeId" jdbcType="INTEGER" />
- <result column="badge" property="badge" jdbcType="VARCHAR" />
- <result column="cardbg_id" property="cardbgId" jdbcType="INTEGER" />
- <result column="cardbg" property="cardbg" jdbcType="VARCHAR" />
- <result column="zonebg_id" property="zonebgId" jdbcType="INTEGER" />
- <result column="zonebg" property="zonebg" jdbcType="VARCHAR" />
- <result column="room_background_id" property="roomBackgroundId" jdbcType="INTEGER" />
- <result column="room_background" property="roomBackground" jdbcType="VARCHAR" />
- <result column="mic_decorate_id" property="micDecorateId" jdbcType="INTEGER" />
- <result column="mic_decorate" property="micDecorate" jdbcType="VARCHAR" />
- <result column="chat_bubble_id" property="chatBubbleId" jdbcType="INTEGER" />
- <result column="chat_bubble" property="chatBubble" jdbcType="VARCHAR" />
- <result column="mic_halo_id" property="micHaloId" jdbcType="INTEGER" />
- <result column="mic_halo" property="micHalo" jdbcType="VARCHAR" />
- <result column="enter_hide" property="enterHide" jdbcType="TINYINT" />
- <result column="rank_hide" property="rankHide" jdbcType="TINYINT" />
- <result column="good_num" property="goodNum" jdbcType="BIGINT" />
- <result column="recom_count" property="recomCount" jdbcType="TINYINT" />
- <result column="status" property="status" jdbcType="TINYINT" />
- <result column="open_time" property="openTime" jdbcType="TIMESTAMP" />
- <result column="renew_time" property="renewTime" jdbcType="TIMESTAMP" />
- </resultMap>
- <sql id="Base_Column_List" >
- uid, noble_id, noble_name, expire, badge_id, badge, cardbg_id, cardbg, zonebg_id,
- zonebg, room_background_id, room_background, mic_decorate_id, mic_decorate, chat_bubble_id,
- chat_bubble, mic_halo_id, mic_halo, enter_hide, rank_hide, good_num, recom_count,
- status, open_time, renew_time
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
- select
- <include refid="Base_Column_List" />
- from noble_users
- where uid = #{uid,jdbcType=BIGINT}
- </select>
- <insert id="insert" parameterType="com.juxiao.xchat.module.xbd.domain.users.NobleUsers" >
- insert into noble_users (uid, noble_id, noble_name,
- expire, badge_id, badge,
- cardbg_id, cardbg, zonebg_id,
- zonebg, room_background_id, room_background,
- mic_decorate_id, mic_decorate, chat_bubble_id,
- chat_bubble, mic_halo_id, mic_halo,
- enter_hide, rank_hide, good_num,
- recom_count, status, open_time,
- renew_time)
- values (#{uid,jdbcType=BIGINT}, #{nobleId,jdbcType=INTEGER}, #{nobleName,jdbcType=VARCHAR},
- #{expire,jdbcType=TIMESTAMP}, #{badgeId,jdbcType=INTEGER}, #{badge,jdbcType=VARCHAR},
- #{cardbgId,jdbcType=INTEGER}, #{cardbg,jdbcType=VARCHAR}, #{zonebgId,jdbcType=INTEGER},
- #{zonebg,jdbcType=VARCHAR}, #{roomBackgroundId,jdbcType=INTEGER}, #{roomBackground,jdbcType=VARCHAR},
- #{micDecorateId,jdbcType=INTEGER}, #{micDecorate,jdbcType=VARCHAR}, #{chatBubbleId,jdbcType=INTEGER},
- #{chatBubble,jdbcType=VARCHAR}, #{micHaloId,jdbcType=INTEGER}, #{micHalo,jdbcType=VARCHAR},
- #{enterHide,jdbcType=TINYINT}, #{rankHide,jdbcType=TINYINT}, #{goodNum,jdbcType=BIGINT},
- #{recomCount,jdbcType=TINYINT}, #{status,jdbcType=TINYINT}, #{openTime,jdbcType=TIMESTAMP},
- #{renewTime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.juxiao.xchat.module.xbd.domain.users.NobleUsers" >
- insert into noble_users
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="uid != null" >
- uid,
- </if>
- <if test="nobleId != null" >
- noble_id,
- </if>
- <if test="nobleName != null" >
- noble_name,
- </if>
- <if test="expire != null" >
- expire,
- </if>
- <if test="badgeId != null" >
- badge_id,
- </if>
- <if test="badge != null" >
- badge,
- </if>
- <if test="cardbgId != null" >
- cardbg_id,
- </if>
- <if test="cardbg != null" >
- cardbg,
- </if>
- <if test="zonebgId != null" >
- zonebg_id,
- </if>
- <if test="zonebg != null" >
- zonebg,
- </if>
- <if test="roomBackgroundId != null" >
- room_background_id,
- </if>
- <if test="roomBackground != null" >
- room_background,
- </if>
- <if test="micDecorateId != null" >
- mic_decorate_id,
- </if>
- <if test="micDecorate != null" >
- mic_decorate,
- </if>
- <if test="chatBubbleId != null" >
- chat_bubble_id,
- </if>
- <if test="chatBubble != null" >
- chat_bubble,
- </if>
- <if test="micHaloId != null" >
- mic_halo_id,
- </if>
- <if test="micHalo != null" >
- mic_halo,
- </if>
- <if test="enterHide != null" >
- enter_hide,
- </if>
- <if test="rankHide != null" >
- rank_hide,
- </if>
- <if test="goodNum != null" >
- good_num,
- </if>
- <if test="recomCount != null" >
- recom_count,
- </if>
- <if test="status != null" >
- status,
- </if>
- <if test="openTime != null" >
- open_time,
- </if>
- <if test="renewTime != null" >
- renew_time,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="uid != null" >
- #{uid,jdbcType=BIGINT},
- </if>
- <if test="nobleId != null" >
- #{nobleId,jdbcType=INTEGER},
- </if>
- <if test="nobleName != null" >
- #{nobleName,jdbcType=VARCHAR},
- </if>
- <if test="expire != null" >
- #{expire,jdbcType=TIMESTAMP},
- </if>
- <if test="badgeId != null" >
- #{badgeId,jdbcType=INTEGER},
- </if>
- <if test="badge != null" >
- #{badge,jdbcType=VARCHAR},
- </if>
- <if test="cardbgId != null" >
- #{cardbgId,jdbcType=INTEGER},
- </if>
- <if test="cardbg != null" >
- #{cardbg,jdbcType=VARCHAR},
- </if>
- <if test="zonebgId != null" >
- #{zonebgId,jdbcType=INTEGER},
- </if>
- <if test="zonebg != null" >
- #{zonebg,jdbcType=VARCHAR},
- </if>
- <if test="roomBackgroundId != null" >
- #{roomBackgroundId,jdbcType=INTEGER},
- </if>
- <if test="roomBackground != null" >
- #{roomBackground,jdbcType=VARCHAR},
- </if>
- <if test="micDecorateId != null" >
- #{micDecorateId,jdbcType=INTEGER},
- </if>
- <if test="micDecorate != null" >
- #{micDecorate,jdbcType=VARCHAR},
- </if>
- <if test="chatBubbleId != null" >
- #{chatBubbleId,jdbcType=INTEGER},
- </if>
- <if test="chatBubble != null" >
- #{chatBubble,jdbcType=VARCHAR},
- </if>
- <if test="micHaloId != null" >
- #{micHaloId,jdbcType=INTEGER},
- </if>
- <if test="micHalo != null" >
- #{micHalo,jdbcType=VARCHAR},
- </if>
- <if test="enterHide != null" >
- #{enterHide,jdbcType=TINYINT},
- </if>
- <if test="rankHide != null" >
- #{rankHide,jdbcType=TINYINT},
- </if>
- <if test="goodNum != null" >
- #{goodNum,jdbcType=BIGINT},
- </if>
- <if test="recomCount != null" >
- #{recomCount,jdbcType=TINYINT},
- </if>
- <if test="status != null" >
- #{status,jdbcType=TINYINT},
- </if>
- <if test="openTime != null" >
- #{openTime,jdbcType=TIMESTAMP},
- </if>
- <if test="renewTime != null" >
- #{renewTime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.juxiao.xchat.module.xbd.domain.users.NobleUsers" >
- update noble_users
- <set >
- <if test="nobleId != null" >
- noble_id = #{nobleId,jdbcType=INTEGER},
- </if>
- <if test="nobleName != null" >
- noble_name = #{nobleName,jdbcType=VARCHAR},
- </if>
- <if test="expire != null" >
- expire = #{expire,jdbcType=TIMESTAMP},
- </if>
- <if test="badgeId != null" >
- badge_id = #{badgeId,jdbcType=INTEGER},
- </if>
- <if test="badge != null" >
- badge = #{badge,jdbcType=VARCHAR},
- </if>
- <if test="cardbgId != null" >
- cardbg_id = #{cardbgId,jdbcType=INTEGER},
- </if>
- <if test="cardbg != null" >
- cardbg = #{cardbg,jdbcType=VARCHAR},
- </if>
- <if test="zonebgId != null" >
- zonebg_id = #{zonebgId,jdbcType=INTEGER},
- </if>
- <if test="zonebg != null" >
- zonebg = #{zonebg,jdbcType=VARCHAR},
- </if>
- <if test="roomBackgroundId != null" >
- room_background_id = #{roomBackgroundId,jdbcType=INTEGER},
- </if>
- <if test="roomBackground != null" >
- room_background = #{roomBackground,jdbcType=VARCHAR},
- </if>
- <if test="micDecorateId != null" >
- mic_decorate_id = #{micDecorateId,jdbcType=INTEGER},
- </if>
- <if test="micDecorate != null" >
- mic_decorate = #{micDecorate,jdbcType=VARCHAR},
- </if>
- <if test="chatBubbleId != null" >
- chat_bubble_id = #{chatBubbleId,jdbcType=INTEGER},
- </if>
- <if test="chatBubble != null" >
- chat_bubble = #{chatBubble,jdbcType=VARCHAR},
- </if>
- <if test="micHaloId != null" >
- mic_halo_id = #{micHaloId,jdbcType=INTEGER},
- </if>
- <if test="micHalo != null" >
- mic_halo = #{micHalo,jdbcType=VARCHAR},
- </if>
- <if test="enterHide != null" >
- enter_hide = #{enterHide,jdbcType=TINYINT},
- </if>
- <if test="rankHide != null" >
- rank_hide = #{rankHide,jdbcType=TINYINT},
- </if>
- <if test="goodNum != null" >
- good_num = #{goodNum,jdbcType=BIGINT},
- </if>
- <if test="recomCount != null" >
- recom_count = #{recomCount,jdbcType=TINYINT},
- </if>
- <if test="status != null" >
- status = #{status,jdbcType=TINYINT},
- </if>
- <if test="openTime != null" >
- open_time = #{openTime,jdbcType=TIMESTAMP},
- </if>
- <if test="renewTime != null" >
- renew_time = #{renewTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where uid = #{uid,jdbcType=BIGINT}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.juxiao.xchat.module.xbd.domain.users.NobleUsers" >
- update noble_users
- set noble_id = #{nobleId,jdbcType=INTEGER},
- noble_name = #{nobleName,jdbcType=VARCHAR},
- expire = #{expire,jdbcType=TIMESTAMP},
- badge_id = #{badgeId,jdbcType=INTEGER},
- badge = #{badge,jdbcType=VARCHAR},
- cardbg_id = #{cardbgId,jdbcType=INTEGER},
- cardbg = #{cardbg,jdbcType=VARCHAR},
- zonebg_id = #{zonebgId,jdbcType=INTEGER},
- zonebg = #{zonebg,jdbcType=VARCHAR},
- room_background_id = #{roomBackgroundId,jdbcType=INTEGER},
- room_background = #{roomBackground,jdbcType=VARCHAR},
- mic_decorate_id = #{micDecorateId,jdbcType=INTEGER},
- mic_decorate = #{micDecorate,jdbcType=VARCHAR},
- chat_bubble_id = #{chatBubbleId,jdbcType=INTEGER},
- chat_bubble = #{chatBubble,jdbcType=VARCHAR},
- mic_halo_id = #{micHaloId,jdbcType=INTEGER},
- mic_halo = #{micHalo,jdbcType=VARCHAR},
- enter_hide = #{enterHide,jdbcType=TINYINT},
- rank_hide = #{rankHide,jdbcType=TINYINT},
- good_num = #{goodNum,jdbcType=BIGINT},
- recom_count = #{recomCount,jdbcType=TINYINT},
- status = #{status,jdbcType=TINYINT},
- open_time = #{openTime,jdbcType=TIMESTAMP},
- renew_time = #{renewTime,jdbcType=TIMESTAMP}
- where uid = #{uid,jdbcType=BIGINT}
- </update>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
- delete from noble_users
- where uid = #{uid,jdbcType=BIGINT}
- </delete>
- <select id="selectByUid" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from noble_users
- where uid = #{uid} and expire >= #{expire} and status = #{status}
- </select>
- </mapper>
|