123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <?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.UserNoblePrettyNoAppMapper">
- <resultMap id="BaseResultMap" type="com.juxiao.xchat.module.xbd.domain.users.UserNoblePrettyNoApp" >
- <id column="record_id" property="recordId" jdbcType="INTEGER" />
- <result column="uid" property="uid" jdbcType="BIGINT" />
- <result column="erban_no" property="erbanNo" jdbcType="BIGINT" />
- <result column="noble_id" property="nobleId" jdbcType="INTEGER" />
- <result column="noble_name" property="nobleName" jdbcType="VARCHAR" />
- <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
- <result column="approve_erban_no" property="approveErbanNo" jdbcType="BIGINT" />
- <result column="approve_result" property="approveResult" jdbcType="TINYINT" />
- <result column="approve_desc" property="approveDesc" jdbcType="VARCHAR" />
- <result column="approve_time" property="approveTime" jdbcType="TIMESTAMP" />
- <result column="admin_id" property="adminId" jdbcType="INTEGER" />
- </resultMap>
- <resultMap id="UserNoblePrettyNoAppVOResultMap" type="com.juxiao.xchat.module.xbd.vo.UserNoblePrettyNoAppVO" >
- <id column="record_id" property="recordId" jdbcType="INTEGER" />
- <result column="uid" property="uid" jdbcType="BIGINT" />
- <result column="erban_no" property="erbanNo" jdbcType="BIGINT" />
- <result column="noble_id" property="nobleId" jdbcType="INTEGER" />
- <result column="noble_name" property="nobleName" jdbcType="VARCHAR" />
- <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
- <result column="approve_erban_no" property="approveErbanNo" jdbcType="BIGINT" />
- <result column="approve_result" property="approveResult" jdbcType="TINYINT" />
- <result column="approve_desc" property="approveDesc" jdbcType="VARCHAR" />
- <result column="approve_time" property="approveTime" jdbcType="TIMESTAMP" />
- <result column="admin_id" property="adminId" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- record_id, uid, erban_no, noble_id, noble_name, create_time, approve_erban_no, approve_result,
- approve_desc, approve_time, admin_id
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from user_noble_pretty_no_app
- where record_id = #{recordId,jdbcType=INTEGER}
- </select>
- <insert id="insert" parameterType="com.juxiao.xchat.module.xbd.domain.users.UserNoblePrettyNoApp" >
- <selectKey resultType="java.lang.Integer" keyProperty="recordId" order="AFTER" >
- SELECT LAST_INSERT_ID()
- </selectKey>
- insert into user_noble_pretty_no_app (uid, erban_no, noble_id,
- noble_name, create_time, approve_erban_no,
- approve_result, approve_desc, approve_time,
- admin_id)
- values (#{uid,jdbcType=BIGINT}, #{erbanNo,jdbcType=BIGINT}, #{nobleId,jdbcType=INTEGER},
- #{nobleName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{approveErbanNo,jdbcType=BIGINT},
- #{approveResult,jdbcType=TINYINT}, #{approveDesc,jdbcType=VARCHAR}, #{approveTime,jdbcType=TIMESTAMP},
- #{adminId,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.juxiao.xchat.module.xbd.domain.users.UserNoblePrettyNoApp" >
- <selectKey resultType="java.lang.Integer" keyProperty="recordId" order="AFTER" >
- SELECT LAST_INSERT_ID()
- </selectKey>
- insert into user_noble_pretty_no_app
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="uid != null" >
- uid,
- </if>
- <if test="erbanNo != null" >
- erban_no,
- </if>
- <if test="nobleId != null" >
- noble_id,
- </if>
- <if test="nobleName != null" >
- noble_name,
- </if>
- <if test="createTime != null" >
- create_time,
- </if>
- <if test="approveErbanNo != null" >
- approve_erban_no,
- </if>
- <if test="approveResult != null" >
- approve_result,
- </if>
- <if test="approveDesc != null" >
- approve_desc,
- </if>
- <if test="approveTime != null" >
- approve_time,
- </if>
- <if test="adminId != null" >
- admin_id,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="uid != null" >
- #{uid,jdbcType=BIGINT},
- </if>
- <if test="erbanNo != null" >
- #{erbanNo,jdbcType=BIGINT},
- </if>
- <if test="nobleId != null" >
- #{nobleId,jdbcType=INTEGER},
- </if>
- <if test="nobleName != null" >
- #{nobleName,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null" >
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="approveErbanNo != null" >
- #{approveErbanNo,jdbcType=BIGINT},
- </if>
- <if test="approveResult != null" >
- #{approveResult,jdbcType=TINYINT},
- </if>
- <if test="approveDesc != null" >
- #{approveDesc,jdbcType=VARCHAR},
- </if>
- <if test="approveTime != null" >
- #{approveTime,jdbcType=TIMESTAMP},
- </if>
- <if test="adminId != null" >
- #{adminId,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.juxiao.xchat.module.xbd.domain.users.UserNoblePrettyNoApp" >
- update user_noble_pretty_no_app
- <set >
- <if test="uid != null" >
- uid = #{uid,jdbcType=BIGINT},
- </if>
- <if test="erbanNo != null" >
- erban_no = #{erbanNo,jdbcType=BIGINT},
- </if>
- <if test="nobleId != null" >
- noble_id = #{nobleId,jdbcType=INTEGER},
- </if>
- <if test="nobleName != null" >
- noble_name = #{nobleName,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null" >
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="approveErbanNo != null" >
- approve_erban_no = #{approveErbanNo,jdbcType=BIGINT},
- </if>
- <if test="approveResult != null" >
- approve_result = #{approveResult,jdbcType=TINYINT},
- </if>
- <if test="approveDesc != null" >
- approve_desc = #{approveDesc,jdbcType=VARCHAR},
- </if>
- <if test="approveTime != null" >
- approve_time = #{approveTime,jdbcType=TIMESTAMP},
- </if>
- <if test="adminId != null" >
- admin_id = #{adminId,jdbcType=INTEGER},
- </if>
- </set>
- where record_id = #{recordId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.juxiao.xchat.module.xbd.domain.users.UserNoblePrettyNoApp" >
- update user_noble_pretty_no_app
- set uid = #{uid,jdbcType=BIGINT},
- erban_no = #{erbanNo,jdbcType=BIGINT},
- noble_id = #{nobleId,jdbcType=INTEGER},
- noble_name = #{nobleName,jdbcType=VARCHAR},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- approve_erban_no = #{approveErbanNo,jdbcType=BIGINT},
- approve_result = #{approveResult,jdbcType=TINYINT},
- approve_desc = #{approveDesc,jdbcType=VARCHAR},
- approve_time = #{approveTime,jdbcType=TIMESTAMP},
- admin_id = #{adminId,jdbcType=INTEGER}
- where record_id = #{recordId,jdbcType=INTEGER}
- </update>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from user_noble_pretty_no_app
- where record_id = #{recordId,jdbcType=INTEGER}
- </delete>
- <select id="selectUserNoblePrettyNoAppByList" resultMap="UserNoblePrettyNoAppVOResultMap">
- select
- <include refid="Base_Column_List" />
- from user_noble_pretty_no_app
- where 1 = 1
- <if test="prettyErBanNo != null">
- and approve_erban_no = #{prettyErBanNo}
- </if>
- <if test="userErBanNo != null">
- and erban_no = #{userErBanNo}
- </if>
- <if test="review != null">
- and approve_result = #{review}
- </if>
- order by create_time desc
- </select>
- <select id="selectUserNoblePrettyNoAppByUid" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from user_noble_pretty_no_app
- where uid = #{uid}
- </select>
- </mapper>
|