|
|
@@ -1,304 +0,0 @@
|
|
|
-<?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.VmRechargeRuleMapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.minpay.db.table.model.VmRechargeRule">
|
|
|
- <!--
|
|
|
- WARNING - @mbggenerated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- <id column="VRR_ID" jdbcType="VARCHAR" property="id" />
|
|
|
- <result column="VRR_RECHARGE_AMT" jdbcType="VARCHAR" property="rechargeAmt" />
|
|
|
- <result column="VRR_GIVE_AMT" jdbcType="VARCHAR" property="giveAmt" />
|
|
|
- <result column="VRR_DESC" jdbcType="VARCHAR" property="desc" />
|
|
|
- <result column="VRR_CREATE_TIME" jdbcType="VARCHAR" property="createTime" />
|
|
|
- <result column="VRR_CREATE_USER" jdbcType="VARCHAR" property="createUser" />
|
|
|
- <result column="VRR_STATE" jdbcType="VARCHAR" property="state" />
|
|
|
- </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.
|
|
|
- -->
|
|
|
- VRR_ID, VRR_RECHARGE_AMT, VRR_GIVE_AMT, VRR_DESC, VRR_CREATE_TIME, VRR_CREATE_USER,
|
|
|
- VRR_STATE
|
|
|
- </sql>
|
|
|
- <select id="selectByExample" parameterType="com.minpay.db.table.model.VmRechargeRuleExample" 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_recharge_rule
|
|
|
- <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_recharge_rule
|
|
|
- where VRR_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_recharge_rule
|
|
|
- where VRR_ID = #{id,jdbcType=VARCHAR}
|
|
|
- </delete>
|
|
|
- <delete id="deleteByExample" parameterType="com.minpay.db.table.model.VmRechargeRuleExample">
|
|
|
- <!--
|
|
|
- WARNING - @mbggenerated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- delete from vm_recharge_rule
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </delete>
|
|
|
- <insert id="insert" parameterType="com.minpay.db.table.model.VmRechargeRule">
|
|
|
- <!--
|
|
|
- WARNING - @mbggenerated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- insert into vm_recharge_rule (VRR_ID, VRR_RECHARGE_AMT, VRR_GIVE_AMT,
|
|
|
- VRR_DESC, VRR_CREATE_TIME, VRR_CREATE_USER,
|
|
|
- VRR_STATE)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{rechargeAmt,jdbcType=VARCHAR}, #{giveAmt,jdbcType=VARCHAR},
|
|
|
- #{desc,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
|
|
|
- #{state,jdbcType=VARCHAR})
|
|
|
- </insert>
|
|
|
- <insert id="insertSelective" parameterType="com.minpay.db.table.model.VmRechargeRule">
|
|
|
- <!--
|
|
|
- WARNING - @mbggenerated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- insert into vm_recharge_rule
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- VRR_ID,
|
|
|
- </if>
|
|
|
- <if test="rechargeAmt != null">
|
|
|
- VRR_RECHARGE_AMT,
|
|
|
- </if>
|
|
|
- <if test="giveAmt != null">
|
|
|
- VRR_GIVE_AMT,
|
|
|
- </if>
|
|
|
- <if test="desc != null">
|
|
|
- VRR_DESC,
|
|
|
- </if>
|
|
|
- <if test="createTime != null">
|
|
|
- VRR_CREATE_TIME,
|
|
|
- </if>
|
|
|
- <if test="createUser != null">
|
|
|
- VRR_CREATE_USER,
|
|
|
- </if>
|
|
|
- <if test="state != null">
|
|
|
- VRR_STATE,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- #{id,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="rechargeAmt != null">
|
|
|
- #{rechargeAmt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="giveAmt != null">
|
|
|
- #{giveAmt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="desc != null">
|
|
|
- #{desc,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="createTime != null">
|
|
|
- #{createTime,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="createUser != null">
|
|
|
- #{createUser,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="state != null">
|
|
|
- #{state,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <select id="countByExample" parameterType="com.minpay.db.table.model.VmRechargeRuleExample" resultType="java.lang.Integer">
|
|
|
- <!--
|
|
|
- WARNING - @mbggenerated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- select count(*) from vm_recharge_rule
|
|
|
- <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_recharge_rule
|
|
|
- <set>
|
|
|
- <if test="record.id != null">
|
|
|
- VRR_ID = #{record.id,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.rechargeAmt != null">
|
|
|
- VRR_RECHARGE_AMT = #{record.rechargeAmt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.giveAmt != null">
|
|
|
- VRR_GIVE_AMT = #{record.giveAmt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.desc != null">
|
|
|
- VRR_DESC = #{record.desc,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.createTime != null">
|
|
|
- VRR_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.createUser != null">
|
|
|
- VRR_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.state != null">
|
|
|
- VRR_STATE = #{record.state,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_recharge_rule
|
|
|
- set VRR_ID = #{record.id,jdbcType=VARCHAR},
|
|
|
- VRR_RECHARGE_AMT = #{record.rechargeAmt,jdbcType=VARCHAR},
|
|
|
- VRR_GIVE_AMT = #{record.giveAmt,jdbcType=VARCHAR},
|
|
|
- VRR_DESC = #{record.desc,jdbcType=VARCHAR},
|
|
|
- VRR_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
|
|
|
- VRR_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
|
|
|
- VRR_STATE = #{record.state,jdbcType=VARCHAR}
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.VmRechargeRule">
|
|
|
- <!--
|
|
|
- WARNING - @mbggenerated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- update vm_recharge_rule
|
|
|
- <set>
|
|
|
- <if test="rechargeAmt != null">
|
|
|
- VRR_RECHARGE_AMT = #{rechargeAmt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="giveAmt != null">
|
|
|
- VRR_GIVE_AMT = #{giveAmt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="desc != null">
|
|
|
- VRR_DESC = #{desc,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="createTime != null">
|
|
|
- VRR_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="createUser != null">
|
|
|
- VRR_CREATE_USER = #{createUser,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="state != null">
|
|
|
- VRR_STATE = #{state,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where VRR_ID = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.VmRechargeRule">
|
|
|
- <!--
|
|
|
- WARNING - @mbggenerated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- update vm_recharge_rule
|
|
|
- set VRR_RECHARGE_AMT = #{rechargeAmt,jdbcType=VARCHAR},
|
|
|
- VRR_GIVE_AMT = #{giveAmt,jdbcType=VARCHAR},
|
|
|
- VRR_DESC = #{desc,jdbcType=VARCHAR},
|
|
|
- VRR_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
|
|
|
- VRR_CREATE_USER = #{createUser,jdbcType=VARCHAR},
|
|
|
- VRR_STATE = #{state,jdbcType=VARCHAR}
|
|
|
- where VRR_ID = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
-</mapper>
|