|
|
@@ -0,0 +1,429 @@
|
|
|
+<?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.minpay.db.table.mapper.VmPersonInfMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.minpay.db.table.model.VmPersonInf">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <id column="VCI_ID" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="VCI_CHANNEL" jdbcType="VARCHAR" property="channel" />
|
|
|
+ <result column="VCI_NAME" jdbcType="VARCHAR" property="name" />
|
|
|
+ <result column="VCI_TYPE" jdbcType="CHAR" property="type" />
|
|
|
+ <result column="VCI_PHONE" jdbcType="VARCHAR" property="phone" />
|
|
|
+ <result column="VCI_OPENID" jdbcType="VARCHAR" property="openid" />
|
|
|
+ <result column="VCI_HEADPATH" jdbcType="VARCHAR" property="headpath" />
|
|
|
+ <result column="VCI_IS_USER" jdbcType="VARCHAR" property="isUser" />
|
|
|
+ <result column="VCI_USER_ID" jdbcType="VARCHAR" property="userId" />
|
|
|
+ <result column="VCI_CREATE_USER" jdbcType="VARCHAR" property="createUser" />
|
|
|
+ <result column="VCI_CREATE_TIME" jdbcType="VARCHAR" property="createTime" />
|
|
|
+ <result column="VCI_MODIFY_USER" jdbcType="VARCHAR" property="modifyUser" />
|
|
|
+ <result column="VCI_MODIFY_TIME" jdbcType="VARCHAR" property="modifyTime" />
|
|
|
+ <result column="VCI_STATUS" jdbcType="CHAR" property="status" />
|
|
|
+ <result column="VCI_ROLE" jdbcType="VARCHAR" property="role" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <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">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <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">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ VCI_ID, VCI_CHANNEL, VCI_NAME, VCI_TYPE, VCI_PHONE, VCI_OPENID, VCI_HEADPATH, VCI_IS_USER,
|
|
|
+ VCI_USER_ID, VCI_CREATE_USER, VCI_CREATE_TIME, VCI_MODIFY_USER, VCI_MODIFY_TIME,
|
|
|
+ VCI_STATUS, VCI_ROLE
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.minpay.db.table.model.VmPersonInfExample" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from vm_person_inf
|
|
|
+ <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">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from vm_person_inf
|
|
|
+ where VCI_ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ delete from vm_person_inf
|
|
|
+ where VCI_ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.minpay.db.table.model.VmPersonInfExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ delete from vm_person_inf
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.minpay.db.table.model.VmPersonInf">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into vm_person_inf (VCI_ID, VCI_CHANNEL, VCI_NAME,
|
|
|
+ VCI_TYPE, VCI_PHONE, VCI_OPENID, VCI_HEADPATH,
|
|
|
+ VCI_IS_USER, VCI_USER_ID, VCI_CREATE_USER,
|
|
|
+ VCI_CREATE_TIME, VCI_MODIFY_USER, VCI_MODIFY_TIME,
|
|
|
+ VCI_STATUS, VCI_ROLE)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
|
|
+ #{type,jdbcType=CHAR}, #{phone,jdbcType=VARCHAR}, #{openid,jdbcType=VARCHAR}, #{headpath,jdbcType=VARCHAR},
|
|
|
+ #{isUser,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
|
|
|
+ #{createTime,jdbcType=VARCHAR}, #{modifyUser,jdbcType=VARCHAR}, #{modifyTime,jdbcType=VARCHAR},
|
|
|
+ #{status,jdbcType=CHAR}, #{role,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.minpay.db.table.model.VmPersonInf">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into vm_person_inf
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ VCI_ID,
|
|
|
+ </if>
|
|
|
+ <if test="channel != null">
|
|
|
+ VCI_CHANNEL,
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ VCI_NAME,
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ VCI_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="phone != null">
|
|
|
+ VCI_PHONE,
|
|
|
+ </if>
|
|
|
+ <if test="openid != null">
|
|
|
+ VCI_OPENID,
|
|
|
+ </if>
|
|
|
+ <if test="headpath != null">
|
|
|
+ VCI_HEADPATH,
|
|
|
+ </if>
|
|
|
+ <if test="isUser != null">
|
|
|
+ VCI_IS_USER,
|
|
|
+ </if>
|
|
|
+ <if test="userId != null">
|
|
|
+ VCI_USER_ID,
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ VCI_CREATE_USER,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ VCI_CREATE_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="modifyUser != null">
|
|
|
+ VCI_MODIFY_USER,
|
|
|
+ </if>
|
|
|
+ <if test="modifyTime != null">
|
|
|
+ VCI_MODIFY_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ VCI_STATUS,
|
|
|
+ </if>
|
|
|
+ <if test="role != null">
|
|
|
+ VCI_ROLE,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="channel != null">
|
|
|
+ #{channel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ #{type,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="phone != null">
|
|
|
+ #{phone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="openid != null">
|
|
|
+ #{openid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="headpath != null">
|
|
|
+ #{headpath,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isUser != null">
|
|
|
+ #{isUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="userId != null">
|
|
|
+ #{userId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ #{createUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modifyUser != null">
|
|
|
+ #{modifyUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modifyTime != null">
|
|
|
+ #{modifyTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ #{status,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="role != null">
|
|
|
+ #{role,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.minpay.db.table.model.VmPersonInfExample" resultType="java.lang.Integer">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select count(*) from vm_person_inf
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update vm_person_inf
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ VCI_ID = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.channel != null">
|
|
|
+ VCI_CHANNEL = #{record.channel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.name != null">
|
|
|
+ VCI_NAME = #{record.name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.type != null">
|
|
|
+ VCI_TYPE = #{record.type,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.phone != null">
|
|
|
+ VCI_PHONE = #{record.phone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.openid != null">
|
|
|
+ VCI_OPENID = #{record.openid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.headpath != null">
|
|
|
+ VCI_HEADPATH = #{record.headpath,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.isUser != null">
|
|
|
+ VCI_IS_USER = #{record.isUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.userId != null">
|
|
|
+ VCI_USER_ID = #{record.userId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createUser != null">
|
|
|
+ VCI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createTime != null">
|
|
|
+ VCI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.modifyUser != null">
|
|
|
+ VCI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.modifyTime != null">
|
|
|
+ VCI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.status != null">
|
|
|
+ VCI_STATUS = #{record.status,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.role != null">
|
|
|
+ VCI_ROLE = #{record.role,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update vm_person_inf
|
|
|
+ set VCI_ID = #{record.id,jdbcType=VARCHAR},
|
|
|
+ VCI_CHANNEL = #{record.channel,jdbcType=VARCHAR},
|
|
|
+ VCI_NAME = #{record.name,jdbcType=VARCHAR},
|
|
|
+ VCI_TYPE = #{record.type,jdbcType=CHAR},
|
|
|
+ VCI_PHONE = #{record.phone,jdbcType=VARCHAR},
|
|
|
+ VCI_OPENID = #{record.openid,jdbcType=VARCHAR},
|
|
|
+ VCI_HEADPATH = #{record.headpath,jdbcType=VARCHAR},
|
|
|
+ VCI_IS_USER = #{record.isUser,jdbcType=VARCHAR},
|
|
|
+ VCI_USER_ID = #{record.userId,jdbcType=VARCHAR},
|
|
|
+ VCI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
|
|
|
+ VCI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
|
|
|
+ VCI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
|
|
|
+ VCI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
|
|
|
+ VCI_STATUS = #{record.status,jdbcType=CHAR},
|
|
|
+ VCI_ROLE = #{record.role,jdbcType=VARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.VmPersonInf">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update vm_person_inf
|
|
|
+ <set>
|
|
|
+ <if test="channel != null">
|
|
|
+ VCI_CHANNEL = #{channel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ VCI_NAME = #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ VCI_TYPE = #{type,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="phone != null">
|
|
|
+ VCI_PHONE = #{phone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="openid != null">
|
|
|
+ VCI_OPENID = #{openid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="headpath != null">
|
|
|
+ VCI_HEADPATH = #{headpath,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isUser != null">
|
|
|
+ VCI_IS_USER = #{isUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="userId != null">
|
|
|
+ VCI_USER_ID = #{userId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ VCI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ VCI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modifyUser != null">
|
|
|
+ VCI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modifyTime != null">
|
|
|
+ VCI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ VCI_STATUS = #{status,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="role != null">
|
|
|
+ VCI_ROLE = #{role,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where VCI_ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.VmPersonInf">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update vm_person_inf
|
|
|
+ set VCI_CHANNEL = #{channel,jdbcType=VARCHAR},
|
|
|
+ VCI_NAME = #{name,jdbcType=VARCHAR},
|
|
|
+ VCI_TYPE = #{type,jdbcType=CHAR},
|
|
|
+ VCI_PHONE = #{phone,jdbcType=VARCHAR},
|
|
|
+ VCI_OPENID = #{openid,jdbcType=VARCHAR},
|
|
|
+ VCI_HEADPATH = #{headpath,jdbcType=VARCHAR},
|
|
|
+ VCI_IS_USER = #{isUser,jdbcType=VARCHAR},
|
|
|
+ VCI_USER_ID = #{userId,jdbcType=VARCHAR},
|
|
|
+ VCI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
|
|
|
+ VCI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
|
|
|
+ VCI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
|
|
|
+ VCI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
|
|
|
+ VCI_STATUS = #{status,jdbcType=CHAR},
|
|
|
+ VCI_ROLE = #{role,jdbcType=VARCHAR}
|
|
|
+ where VCI_ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|