New file |
| | |
| | | <?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.yeshi.fanli.dao.mybatis.user.vip.UserVIPPreInfoMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.user.vip.UserVIPPreInfo"> |
| | | <id column="vpi_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="vpi_uid" property="uid" jdbcType="BIGINT" /> |
| | | <result column="vpi_process" property="process" jdbcType="INTEGER" /> |
| | | <result column="vpi_beizhu" property="beizhu" jdbcType="VARCHAR" /> |
| | | <result column="vpi_create_time" property="createTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="vpi_update_time" property="updateTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">vpi_id,vpi_uid,vpi_process,vpi_beizhu,vpi_create_time,vpi_update_time |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_user_vip_pre_info where vpi_id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_user_vip_pre_info where vpi_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.vip.UserVIPPreInfo" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_user_vip_pre_info |
| | | (vpi_id,vpi_uid,vpi_process,vpi_beizhu,vpi_create_time,vpi_update_time) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{uid,jdbcType=BIGINT},#{process,jdbcType=INTEGER},#{beizhu,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.vip.UserVIPPreInfo" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_user_vip_pre_info |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">vpi_id,</if> |
| | | <if test="uid != null">vpi_uid,</if> |
| | | <if test="process != null">vpi_process,</if> |
| | | <if test="beizhu != null">vpi_beizhu,</if> |
| | | <if test="createTime != null">vpi_create_time,</if> |
| | | <if test="updateTime != null">vpi_update_time,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="uid != null">#{uid,jdbcType=BIGINT},</if> |
| | | <if test="process != null">#{process,jdbcType=INTEGER},</if> |
| | | <if test="beizhu != null">#{beizhu,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.vip.UserVIPPreInfo">update |
| | | yeshi_ec_user_vip_pre_info set vpi_uid = |
| | | #{uid,jdbcType=BIGINT},vpi_process = |
| | | #{process,jdbcType=INTEGER},vpi_beizhu = |
| | | #{beizhu,jdbcType=VARCHAR},vpi_create_time = |
| | | #{createTime,jdbcType=TIMESTAMP},vpi_update_time = |
| | | #{updateTime,jdbcType=TIMESTAMP} where vpi_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.vip.UserVIPPreInfo"> |
| | | update yeshi_ec_user_vip_pre_info |
| | | <set> |
| | | <if test="uid != null">vpi_uid=#{uid,jdbcType=BIGINT},</if> |
| | | <if test="process != null">vpi_process=#{process,jdbcType=INTEGER},</if> |
| | | <if test="beizhu != null">vpi_beizhu=#{beizhu,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">vpi_create_time=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">vpi_update_time=#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </set> |
| | | where vpi_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | |
| | | <select id="selectByUidAndProcess" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_user_vip_pre_info where vpi_uid = #{uid} and |
| | | vpi_process=#{process} |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="listByUid" resultMap="BaseResultMap" parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_user_vip_pre_info where vpi_uid = #{uid} |
| | | </select> |
| | | |
| | | </mapper> |