|
@@ -0,0 +1,413 @@
|
|
|
+<?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.VmHlAccountMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.minpay.db.table.model.VmHlAccount">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <id column="ACT_ID" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="ACT_CHANNEL" jdbcType="VARCHAR" property="channel" />
|
|
|
+ <result column="ACT_USRID" jdbcType="VARCHAR" property="usrid" />
|
|
|
+ <result column="ACT_TYPE" jdbcType="VARCHAR" property="type" />
|
|
|
+ <result column="ACT_NAME" jdbcType="VARCHAR" property="name" />
|
|
|
+ <result column="ACT_NUMBER" jdbcType="VARCHAR" property="number" />
|
|
|
+ <result column="ACT_AMT" jdbcType="VARCHAR" property="amt" />
|
|
|
+ <result column="ACT_AVA_AMT" jdbcType="VARCHAR" property="avaAmt" />
|
|
|
+ <result column="ACT_CREATE_USER" jdbcType="VARCHAR" property="createUser" />
|
|
|
+ <result column="ACT_CREATE_TIME" jdbcType="VARCHAR" property="createTime" />
|
|
|
+ <result column="ACT_MODIFY_USER" jdbcType="VARCHAR" property="modifyUser" />
|
|
|
+ <result column="ACT_MODIFY_TIME" jdbcType="VARCHAR" property="modifyTime" />
|
|
|
+ <result column="ACT_STATE" jdbcType="VARCHAR" property="state" />
|
|
|
+ <result column="ACT_EQUIPMENT_ID" jdbcType="VARCHAR" property="equipmentId" />
|
|
|
+ </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.
|
|
|
+ -->
|
|
|
+ ACT_ID, ACT_CHANNEL, ACT_USRID, ACT_TYPE, ACT_NAME, ACT_NUMBER, ACT_AMT, ACT_AVA_AMT,
|
|
|
+ ACT_CREATE_USER, ACT_CREATE_TIME, ACT_MODIFY_USER, ACT_MODIFY_TIME, ACT_STATE, ACT_EQUIPMENT_ID
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.minpay.db.table.model.VmHlAccountExample" 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_hl_account
|
|
|
+ <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_hl_account
|
|
|
+ where ACT_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_hl_account
|
|
|
+ where ACT_ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.minpay.db.table.model.VmHlAccountExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ delete from vm_hl_account
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.minpay.db.table.model.VmHlAccount">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into vm_hl_account (ACT_ID, ACT_CHANNEL, ACT_USRID,
|
|
|
+ ACT_TYPE, ACT_NAME, ACT_NUMBER,
|
|
|
+ ACT_AMT, ACT_AVA_AMT, ACT_CREATE_USER,
|
|
|
+ ACT_CREATE_TIME, ACT_MODIFY_USER, ACT_MODIFY_TIME,
|
|
|
+ ACT_STATE, ACT_EQUIPMENT_ID)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{usrid,jdbcType=VARCHAR},
|
|
|
+ #{type,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{number,jdbcType=VARCHAR},
|
|
|
+ #{amt,jdbcType=VARCHAR}, #{avaAmt,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
|
|
|
+ #{createTime,jdbcType=VARCHAR}, #{modifyUser,jdbcType=VARCHAR}, #{modifyTime,jdbcType=VARCHAR},
|
|
|
+ #{state,jdbcType=VARCHAR}, #{equipmentId,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.minpay.db.table.model.VmHlAccount">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into vm_hl_account
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ ACT_ID,
|
|
|
+ </if>
|
|
|
+ <if test="channel != null">
|
|
|
+ ACT_CHANNEL,
|
|
|
+ </if>
|
|
|
+ <if test="usrid != null">
|
|
|
+ ACT_USRID,
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ ACT_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ ACT_NAME,
|
|
|
+ </if>
|
|
|
+ <if test="number != null">
|
|
|
+ ACT_NUMBER,
|
|
|
+ </if>
|
|
|
+ <if test="amt != null">
|
|
|
+ ACT_AMT,
|
|
|
+ </if>
|
|
|
+ <if test="avaAmt != null">
|
|
|
+ ACT_AVA_AMT,
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ ACT_CREATE_USER,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ ACT_CREATE_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="modifyUser != null">
|
|
|
+ ACT_MODIFY_USER,
|
|
|
+ </if>
|
|
|
+ <if test="modifyTime != null">
|
|
|
+ ACT_MODIFY_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="state != null">
|
|
|
+ ACT_STATE,
|
|
|
+ </if>
|
|
|
+ <if test="equipmentId != null">
|
|
|
+ ACT_EQUIPMENT_ID,
|
|
|
+ </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="usrid != null">
|
|
|
+ #{usrid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ #{type,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="number != null">
|
|
|
+ #{number,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="amt != null">
|
|
|
+ #{amt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="avaAmt != null">
|
|
|
+ #{avaAmt,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="state != null">
|
|
|
+ #{state,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="equipmentId != null">
|
|
|
+ #{equipmentId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.minpay.db.table.model.VmHlAccountExample" resultType="java.lang.Integer">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select count(*) from vm_hl_account
|
|
|
+ <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_hl_account
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ ACT_ID = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.channel != null">
|
|
|
+ ACT_CHANNEL = #{record.channel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.usrid != null">
|
|
|
+ ACT_USRID = #{record.usrid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.type != null">
|
|
|
+ ACT_TYPE = #{record.type,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.name != null">
|
|
|
+ ACT_NAME = #{record.name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.number != null">
|
|
|
+ ACT_NUMBER = #{record.number,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.amt != null">
|
|
|
+ ACT_AMT = #{record.amt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.avaAmt != null">
|
|
|
+ ACT_AVA_AMT = #{record.avaAmt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createUser != null">
|
|
|
+ ACT_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createTime != null">
|
|
|
+ ACT_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.modifyUser != null">
|
|
|
+ ACT_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.modifyTime != null">
|
|
|
+ ACT_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.state != null">
|
|
|
+ ACT_STATE = #{record.state,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.equipmentId != null">
|
|
|
+ ACT_EQUIPMENT_ID = #{record.equipmentId,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_hl_account
|
|
|
+ set ACT_ID = #{record.id,jdbcType=VARCHAR},
|
|
|
+ ACT_CHANNEL = #{record.channel,jdbcType=VARCHAR},
|
|
|
+ ACT_USRID = #{record.usrid,jdbcType=VARCHAR},
|
|
|
+ ACT_TYPE = #{record.type,jdbcType=VARCHAR},
|
|
|
+ ACT_NAME = #{record.name,jdbcType=VARCHAR},
|
|
|
+ ACT_NUMBER = #{record.number,jdbcType=VARCHAR},
|
|
|
+ ACT_AMT = #{record.amt,jdbcType=VARCHAR},
|
|
|
+ ACT_AVA_AMT = #{record.avaAmt,jdbcType=VARCHAR},
|
|
|
+ ACT_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
|
|
|
+ ACT_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
|
|
|
+ ACT_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
|
|
|
+ ACT_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
|
|
|
+ ACT_STATE = #{record.state,jdbcType=VARCHAR},
|
|
|
+ ACT_EQUIPMENT_ID = #{record.equipmentId,jdbcType=VARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.VmHlAccount">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update vm_hl_account
|
|
|
+ <set>
|
|
|
+ <if test="channel != null">
|
|
|
+ ACT_CHANNEL = #{channel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="usrid != null">
|
|
|
+ ACT_USRID = #{usrid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ ACT_TYPE = #{type,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ ACT_NAME = #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="number != null">
|
|
|
+ ACT_NUMBER = #{number,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="amt != null">
|
|
|
+ ACT_AMT = #{amt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="avaAmt != null">
|
|
|
+ ACT_AVA_AMT = #{avaAmt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ ACT_CREATE_USER = #{createUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ ACT_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modifyUser != null">
|
|
|
+ ACT_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modifyTime != null">
|
|
|
+ ACT_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="state != null">
|
|
|
+ ACT_STATE = #{state,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="equipmentId != null">
|
|
|
+ ACT_EQUIPMENT_ID = #{equipmentId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where ACT_ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.VmHlAccount">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbggenerated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update vm_hl_account
|
|
|
+ set ACT_CHANNEL = #{channel,jdbcType=VARCHAR},
|
|
|
+ ACT_USRID = #{usrid,jdbcType=VARCHAR},
|
|
|
+ ACT_TYPE = #{type,jdbcType=VARCHAR},
|
|
|
+ ACT_NAME = #{name,jdbcType=VARCHAR},
|
|
|
+ ACT_NUMBER = #{number,jdbcType=VARCHAR},
|
|
|
+ ACT_AMT = #{amt,jdbcType=VARCHAR},
|
|
|
+ ACT_AVA_AMT = #{avaAmt,jdbcType=VARCHAR},
|
|
|
+ ACT_CREATE_USER = #{createUser,jdbcType=VARCHAR},
|
|
|
+ ACT_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
|
|
|
+ ACT_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
|
|
|
+ ACT_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
|
|
|
+ ACT_STATE = #{state,jdbcType=VARCHAR},
|
|
|
+ ACT_EQUIPMENT_ID = #{equipmentId,jdbcType=VARCHAR}
|
|
|
+ where ACT_ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|