123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <?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.UserConfigureMapper">
- <resultMap id="BaseResultMap" type="com.juxiao.xchat.module.xbd.domain.users.UserConfigure">
- <id column="uid" jdbcType="BIGINT" property="uid" />
- <result column="superior_bouns" jdbcType="TINYINT" property="superiorBouns" />
- <result column="occupation_ratio" jdbcType="TINYINT" property="occupationRatio" />
- <result column="bank_card" jdbcType="VARCHAR" property="bankCard" />
- <result column="cardholder" jdbcType="VARCHAR" property="cardholder" />
- <result column="green_recom" jdbcType="TINYINT" property="greenRecom" />
- <result column="new_users" jdbcType="TINYINT" property="newUsers" />
- <result column="game_room" jdbcType="TINYINT" property="gameRoom" />
- <result column="green_sort_no" jdbcType="INTEGER" property="greenSortNo" />
- <result column="suibao" jdbcType="INTEGER" property="suibao" />
- </resultMap>
- <sql id="Base_Column_List">
- uid, superior_bouns, occupation_ratio, bank_card, cardholder, green_recom, new_users,
- game_room, green_sort_no, suibao
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from user_configure
- where uid = #{uid,jdbcType=BIGINT}
- </select>
- <insert id="insert" parameterType="com.juxiao.xchat.module.xbd.domain.users.UserConfigure">
- insert into user_configure (uid, superior_bouns, occupation_ratio,
- bank_card, cardholder, green_recom,
- new_users, game_room, green_sort_no,
- suibao)
- values (#{uid,jdbcType=BIGINT}, #{superiorBouns,jdbcType=TINYINT}, #{occupationRatio,jdbcType=TINYINT},
- #{bankCard,jdbcType=VARCHAR}, #{cardholder,jdbcType=VARCHAR}, #{greenRecom,jdbcType=TINYINT},
- #{newUsers,jdbcType=TINYINT}, #{gameRoom,jdbcType=TINYINT}, #{greenSortNo,jdbcType=INTEGER},
- #{suibao,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.juxiao.xchat.module.xbd.domain.users.UserConfigure">
- insert into user_configure
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="uid != null">
- uid,
- </if>
- <if test="superiorBouns != null">
- superior_bouns,
- </if>
- <if test="occupationRatio != null">
- occupation_ratio,
- </if>
- <if test="bankCard != null">
- bank_card,
- </if>
- <if test="cardholder != null">
- cardholder,
- </if>
- <if test="greenRecom != null">
- green_recom,
- </if>
- <if test="newUsers != null">
- new_users,
- </if>
- <if test="gameRoom != null">
- game_room,
- </if>
- <if test="greenSortNo != null">
- green_sort_no,
- </if>
- <if test="suibao != null">
- suibao,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="uid != null">
- #{uid,jdbcType=BIGINT},
- </if>
- <if test="superiorBouns != null">
- #{superiorBouns,jdbcType=TINYINT},
- </if>
- <if test="occupationRatio != null">
- #{occupationRatio,jdbcType=TINYINT},
- </if>
- <if test="bankCard != null">
- #{bankCard,jdbcType=VARCHAR},
- </if>
- <if test="cardholder != null">
- #{cardholder,jdbcType=VARCHAR},
- </if>
- <if test="greenRecom != null">
- #{greenRecom,jdbcType=TINYINT},
- </if>
- <if test="newUsers != null">
- #{newUsers,jdbcType=TINYINT},
- </if>
- <if test="gameRoom != null">
- #{gameRoom,jdbcType=TINYINT},
- </if>
- <if test="greenSortNo != null">
- #{greenSortNo,jdbcType=INTEGER},
- </if>
- <if test="suibao != null">
- #{suibao,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.juxiao.xchat.module.xbd.domain.users.UserConfigure">
- update user_configure
- <set>
- <if test="superiorBouns != null">
- superior_bouns = #{superiorBouns,jdbcType=TINYINT},
- </if>
- <if test="occupationRatio != null">
- occupation_ratio = #{occupationRatio,jdbcType=TINYINT},
- </if>
- <if test="bankCard != null">
- bank_card = #{bankCard,jdbcType=VARCHAR},
- </if>
- <if test="cardholder != null">
- cardholder = #{cardholder,jdbcType=VARCHAR},
- </if>
- <if test="greenRecom != null">
- green_recom = #{greenRecom,jdbcType=TINYINT},
- </if>
- <if test="newUsers != null">
- new_users = #{newUsers,jdbcType=TINYINT},
- </if>
- <if test="gameRoom != null">
- game_room = #{gameRoom,jdbcType=TINYINT},
- </if>
- <if test="greenSortNo != null">
- green_sort_no = #{greenSortNo,jdbcType=INTEGER},
- </if>
- <if test="suibao != null">
- suibao = #{suibao,jdbcType=INTEGER},
- </if>
- </set>
- where uid = #{uid,jdbcType=BIGINT}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.juxiao.xchat.module.xbd.domain.users.UserConfigure">
- update user_configure
- set superior_bouns = #{superiorBouns,jdbcType=TINYINT},
- occupation_ratio = #{occupationRatio,jdbcType=TINYINT},
- bank_card = #{bankCard,jdbcType=VARCHAR},
- cardholder = #{cardholder,jdbcType=VARCHAR},
- green_recom = #{greenRecom,jdbcType=TINYINT},
- new_users = #{newUsers,jdbcType=TINYINT},
- game_room = #{gameRoom,jdbcType=TINYINT},
- green_sort_no = #{greenSortNo,jdbcType=INTEGER},
- suibao = #{suibao,jdbcType=INTEGER}
- where uid = #{uid,jdbcType=BIGINT}
- </update>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from user_configure
- where uid = #{uid,jdbcType=BIGINT}
- </delete>
- <select id="selectUidList" resultType="java.lang.Long">
- select uid from user_configure where suibao = 1
- </select>
- </mapper>
|