浏览代码

充值规则

xubh 4 年之前
父节点
当前提交
2035b75a7d

+ 5 - 0
src/main/java/com/minpay/common/constant/Constant.java

@@ -16,6 +16,11 @@ import com.startup.minpay.frame.service.base.Service;
 public class Constant implements IMINBusinessConstant{
 	
 	static public List<String> USE_SEQ = new ArrayList<String>();
+	/**
+	 *管理系统号
+	 */
+	static final public String ADMINISTRATION_SYSTEM_NUMBER = "88888888";
+
 	//个人客户状态
 	/**
 	*正常

+ 97 - 0
src/main/java/com/minpay/db/table/mapper/VmGameRuleMapper.java

@@ -0,0 +1,97 @@
+package com.minpay.db.table.mapper;
+
+import com.minpay.db.table.model.VmGameRule;
+import com.minpay.db.table.model.VmGameRuleExample;
+import com.startup.minpay.frame.jdbc.IMINMybatisEntityMapper;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface VmGameRuleMapper extends IMINMybatisEntityMapper<VmGameRule, String, VmGameRuleExample> {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int countByExample(VmGameRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int deleteByExample(VmGameRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int insert(VmGameRule record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int insertSelective(VmGameRule record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    List<VmGameRule> selectByExample(VmGameRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    VmGameRule selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int updateByExampleSelective(@Param("record") VmGameRule record, @Param("example") VmGameRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int updateByExample(@Param("record") VmGameRule record, @Param("example") VmGameRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKeySelective(VmGameRule record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKey(VmGameRule record);
+}

+ 97 - 0
src/main/java/com/minpay/db/table/mapper/VmRechargeRuleMapper.java

@@ -0,0 +1,97 @@
+package com.minpay.db.table.mapper;
+
+import com.minpay.db.table.model.VmRechargeRule;
+import com.minpay.db.table.model.VmRechargeRuleExample;
+import com.startup.minpay.frame.jdbc.IMINMybatisEntityMapper;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface VmRechargeRuleMapper extends IMINMybatisEntityMapper<VmRechargeRule, String, VmRechargeRuleExample> {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    int countByExample(VmRechargeRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    int deleteByExample(VmRechargeRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    int insert(VmRechargeRule record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    int insertSelective(VmRechargeRule record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    List<VmRechargeRule> selectByExample(VmRechargeRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    VmRechargeRule selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    int updateByExampleSelective(@Param("record") VmRechargeRule record, @Param("example") VmRechargeRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    int updateByExample(@Param("record") VmRechargeRule record, @Param("example") VmRechargeRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKeySelective(VmRechargeRule record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKey(VmRechargeRule record);
+}

+ 229 - 0
src/main/java/com/minpay/db/table/model/VmGameRule.java

@@ -0,0 +1,229 @@
+package com.minpay.db.table.model;
+
+import com.startup.minpay.frame.data.AbstractMINBean;
+
+public class VmGameRule extends AbstractMINBean {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_ID
+     *
+     * @mbggenerated
+     */
+    private String id;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_NAME
+     *
+     * @mbggenerated
+     */
+    private String name;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_DESC
+     *
+     * @mbggenerated
+     */
+    private String desc;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_STATE
+     *
+     * @mbggenerated
+     */
+    private String state;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_ALIPAYID
+     *
+     * @mbggenerated
+     */
+    private String alipayid;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    private String createTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    private String createUser;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_ID
+     *
+     * @return the value of vm_game_rule.VGL_ID
+     *
+     * @mbggenerated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_ID
+     *
+     * @param id the value for vm_game_rule.VGL_ID
+     *
+     * @mbggenerated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_NAME
+     *
+     * @return the value of vm_game_rule.VGL_NAME
+     *
+     * @mbggenerated
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_NAME
+     *
+     * @param name the value for vm_game_rule.VGL_NAME
+     *
+     * @mbggenerated
+     */
+    public void setName(String name) {
+        this.name = name == null ? null : name.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_DESC
+     *
+     * @return the value of vm_game_rule.VGL_DESC
+     *
+     * @mbggenerated
+     */
+    public String getDesc() {
+        return desc;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_DESC
+     *
+     * @param desc the value for vm_game_rule.VGL_DESC
+     *
+     * @mbggenerated
+     */
+    public void setDesc(String desc) {
+        this.desc = desc == null ? null : desc.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_STATE
+     *
+     * @return the value of vm_game_rule.VGL_STATE
+     *
+     * @mbggenerated
+     */
+    public String getState() {
+        return state;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_STATE
+     *
+     * @param state the value for vm_game_rule.VGL_STATE
+     *
+     * @mbggenerated
+     */
+    public void setState(String state) {
+        this.state = state == null ? null : state.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_ALIPAYID
+     *
+     * @return the value of vm_game_rule.VGL_ALIPAYID
+     *
+     * @mbggenerated
+     */
+    public String getAlipayid() {
+        return alipayid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_ALIPAYID
+     *
+     * @param alipayid the value for vm_game_rule.VGL_ALIPAYID
+     *
+     * @mbggenerated
+     */
+    public void setAlipayid(String alipayid) {
+        this.alipayid = alipayid == null ? null : alipayid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_CREATE_TIME
+     *
+     * @return the value of vm_game_rule.VGL_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public String getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_CREATE_TIME
+     *
+     * @param createTime the value for vm_game_rule.VGL_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public void setCreateTime(String createTime) {
+        this.createTime = createTime == null ? null : createTime.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_CREATE_USER
+     *
+     * @return the value of vm_game_rule.VGL_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public String getCreateUser() {
+        return createUser;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_CREATE_USER
+     *
+     * @param createUser the value for vm_game_rule.VGL_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public void setCreateUser(String createUser) {
+        this.createUser = createUser == null ? null : createUser.trim();
+    }
+}

+ 827 - 0
src/main/java/com/minpay/db/table/model/VmGameRuleExample.java

@@ -0,0 +1,827 @@
+package com.minpay.db.table.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class VmGameRuleExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    public VmGameRuleExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("VGL_ID is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("VGL_ID is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(String value) {
+            if(value == null ){
+                andIdIsNull();
+            } else {
+                addCriterion("VGL_ID =", value, "id");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(String value) {
+            if(value == null ){
+                andIdIsNotNull();
+            } else {
+                addCriterion("VGL_ID <>", value, "id");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(String value) {
+            addCriterion("VGL_ID >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(String value) {
+            addCriterion("VGL_ID >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(String value) {
+            addCriterion("VGL_ID <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(String value) {
+            addCriterion("VGL_ID <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLike(String value) {
+            addCriterion("VGL_ID like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotLike(String value) {
+            addCriterion("VGL_ID not like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<String> values) {
+            addCriterion("VGL_ID in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<String> values) {
+            addCriterion("VGL_ID not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(String value1, String value2) {
+            addCriterion("VGL_ID between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(String value1, String value2) {
+            addCriterion("VGL_ID not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNull() {
+            addCriterion("VGL_NAME is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNotNull() {
+            addCriterion("VGL_NAME is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameEqualTo(String value) {
+            if(value == null ){
+                andNameIsNull();
+            } else {
+                addCriterion("VGL_NAME =", value, "name");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotEqualTo(String value) {
+            if(value == null ){
+                andNameIsNotNull();
+            } else {
+                addCriterion("VGL_NAME <>", value, "name");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThan(String value) {
+            addCriterion("VGL_NAME >", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThanOrEqualTo(String value) {
+            addCriterion("VGL_NAME >=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThan(String value) {
+            addCriterion("VGL_NAME <", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThanOrEqualTo(String value) {
+            addCriterion("VGL_NAME <=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLike(String value) {
+            addCriterion("VGL_NAME like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotLike(String value) {
+            addCriterion("VGL_NAME not like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIn(List<String> values) {
+            addCriterion("VGL_NAME in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotIn(List<String> values) {
+            addCriterion("VGL_NAME not in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameBetween(String value1, String value2) {
+            addCriterion("VGL_NAME between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotBetween(String value1, String value2) {
+            addCriterion("VGL_NAME not between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescIsNull() {
+            addCriterion("VGL_DESC is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescIsNotNull() {
+            addCriterion("VGL_DESC is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescEqualTo(String value) {
+            if(value == null ){
+                andDescIsNull();
+            } else {
+                addCriterion("VGL_DESC =", value, "desc");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andDescNotEqualTo(String value) {
+            if(value == null ){
+                andDescIsNotNull();
+            } else {
+                addCriterion("VGL_DESC <>", value, "desc");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andDescGreaterThan(String value) {
+            addCriterion("VGL_DESC >", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescGreaterThanOrEqualTo(String value) {
+            addCriterion("VGL_DESC >=", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescLessThan(String value) {
+            addCriterion("VGL_DESC <", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescLessThanOrEqualTo(String value) {
+            addCriterion("VGL_DESC <=", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescLike(String value) {
+            addCriterion("VGL_DESC like", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescNotLike(String value) {
+            addCriterion("VGL_DESC not like", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescIn(List<String> values) {
+            addCriterion("VGL_DESC in", values, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescNotIn(List<String> values) {
+            addCriterion("VGL_DESC not in", values, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescBetween(String value1, String value2) {
+            addCriterion("VGL_DESC between", value1, value2, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescNotBetween(String value1, String value2) {
+            addCriterion("VGL_DESC not between", value1, value2, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateIsNull() {
+            addCriterion("VGL_STATE is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateIsNotNull() {
+            addCriterion("VGL_STATE is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateEqualTo(String value) {
+            if(value == null ){
+                andStateIsNull();
+            } else {
+                addCriterion("VGL_STATE =", value, "state");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotEqualTo(String value) {
+            if(value == null ){
+                andStateIsNotNull();
+            } else {
+                addCriterion("VGL_STATE <>", value, "state");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andStateGreaterThan(String value) {
+            addCriterion("VGL_STATE >", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateGreaterThanOrEqualTo(String value) {
+            addCriterion("VGL_STATE >=", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateLessThan(String value) {
+            addCriterion("VGL_STATE <", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateLessThanOrEqualTo(String value) {
+            addCriterion("VGL_STATE <=", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateLike(String value) {
+            addCriterion("VGL_STATE like", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotLike(String value) {
+            addCriterion("VGL_STATE not like", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateIn(List<String> values) {
+            addCriterion("VGL_STATE in", values, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotIn(List<String> values) {
+            addCriterion("VGL_STATE not in", values, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateBetween(String value1, String value2) {
+            addCriterion("VGL_STATE between", value1, value2, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotBetween(String value1, String value2) {
+            addCriterion("VGL_STATE not between", value1, value2, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidIsNull() {
+            addCriterion("VGL_ALIPAYID is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidIsNotNull() {
+            addCriterion("VGL_ALIPAYID is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidEqualTo(String value) {
+            if(value == null ){
+                andAlipayidIsNull();
+            } else {
+                addCriterion("VGL_ALIPAYID =", value, "alipayid");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidNotEqualTo(String value) {
+            if(value == null ){
+                andAlipayidIsNotNull();
+            } else {
+                addCriterion("VGL_ALIPAYID <>", value, "alipayid");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidGreaterThan(String value) {
+            addCriterion("VGL_ALIPAYID >", value, "alipayid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidGreaterThanOrEqualTo(String value) {
+            addCriterion("VGL_ALIPAYID >=", value, "alipayid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidLessThan(String value) {
+            addCriterion("VGL_ALIPAYID <", value, "alipayid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidLessThanOrEqualTo(String value) {
+            addCriterion("VGL_ALIPAYID <=", value, "alipayid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidLike(String value) {
+            addCriterion("VGL_ALIPAYID like", value, "alipayid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidNotLike(String value) {
+            addCriterion("VGL_ALIPAYID not like", value, "alipayid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidIn(List<String> values) {
+            addCriterion("VGL_ALIPAYID in", values, "alipayid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidNotIn(List<String> values) {
+            addCriterion("VGL_ALIPAYID not in", values, "alipayid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidBetween(String value1, String value2) {
+            addCriterion("VGL_ALIPAYID between", value1, value2, "alipayid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAlipayidNotBetween(String value1, String value2) {
+            addCriterion("VGL_ALIPAYID not between", value1, value2, "alipayid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNull() {
+            addCriterion("VGL_CREATE_TIME is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNotNull() {
+            addCriterion("VGL_CREATE_TIME is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualTo(String value) {
+            if(value == null ){
+                andCreateTimeIsNull();
+            } else {
+                addCriterion("VGL_CREATE_TIME =", value, "createTime");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(String value) {
+            if(value == null ){
+                andCreateTimeIsNotNull();
+            } else {
+                addCriterion("VGL_CREATE_TIME <>", value, "createTime");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(String value) {
+            addCriterion("VGL_CREATE_TIME >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
+            addCriterion("VGL_CREATE_TIME >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(String value) {
+            addCriterion("VGL_CREATE_TIME <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(String value) {
+            addCriterion("VGL_CREATE_TIME <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLike(String value) {
+            addCriterion("VGL_CREATE_TIME like", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotLike(String value) {
+            addCriterion("VGL_CREATE_TIME not like", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIn(List<String> values) {
+            addCriterion("VGL_CREATE_TIME in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotIn(List<String> values) {
+            addCriterion("VGL_CREATE_TIME not in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeBetween(String value1, String value2) {
+            addCriterion("VGL_CREATE_TIME between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotBetween(String value1, String value2) {
+            addCriterion("VGL_CREATE_TIME not between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserIsNull() {
+            addCriterion("VGL_CREATE_USER is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserIsNotNull() {
+            addCriterion("VGL_CREATE_USER is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserEqualTo(String value) {
+            if(value == null ){
+                andCreateUserIsNull();
+            } else {
+                addCriterion("VGL_CREATE_USER =", value, "createUser");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserNotEqualTo(String value) {
+            if(value == null ){
+                andCreateUserIsNotNull();
+            } else {
+                addCriterion("VGL_CREATE_USER <>", value, "createUser");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserGreaterThan(String value) {
+            addCriterion("VGL_CREATE_USER >", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
+            addCriterion("VGL_CREATE_USER >=", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserLessThan(String value) {
+            addCriterion("VGL_CREATE_USER <", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserLessThanOrEqualTo(String value) {
+            addCriterion("VGL_CREATE_USER <=", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserLike(String value) {
+            addCriterion("VGL_CREATE_USER like", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserNotLike(String value) {
+            addCriterion("VGL_CREATE_USER not like", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserIn(List<String> values) {
+            addCriterion("VGL_CREATE_USER in", values, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserNotIn(List<String> values) {
+            addCriterion("VGL_CREATE_USER not in", values, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserBetween(String value1, String value2) {
+            addCriterion("VGL_CREATE_USER between", value1, value2, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserNotBetween(String value1, String value2) {
+            addCriterion("VGL_CREATE_USER not between", value1, value2, "createUser");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated do_not_delete_during_merge
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.betweenValue = true;
+        }
+    }
+}

+ 229 - 0
src/main/java/com/minpay/db/table/model/VmRechargeRule.java

@@ -0,0 +1,229 @@
+package com.minpay.db.table.model;
+
+import com.startup.minpay.frame.data.AbstractMINBean;
+
+public class VmRechargeRule extends AbstractMINBean {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_recharge_rule.VRR_ID
+     *
+     * @mbggenerated
+     */
+    private String id;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_recharge_rule.VRR_RECHARGE_AMT
+     *
+     * @mbggenerated
+     */
+    private String rechargeAmt;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_recharge_rule.VRR_GIVE_AMT
+     *
+     * @mbggenerated
+     */
+    private String giveAmt;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_recharge_rule.VRR_DESC
+     *
+     * @mbggenerated
+     */
+    private String desc;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_recharge_rule.VRR_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    private String createTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_recharge_rule.VRR_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    private String createUser;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_recharge_rule.VRR_STATE
+     *
+     * @mbggenerated
+     */
+    private String state;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_recharge_rule.VRR_ID
+     *
+     * @return the value of vm_recharge_rule.VRR_ID
+     *
+     * @mbggenerated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_recharge_rule.VRR_ID
+     *
+     * @param id the value for vm_recharge_rule.VRR_ID
+     *
+     * @mbggenerated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_recharge_rule.VRR_RECHARGE_AMT
+     *
+     * @return the value of vm_recharge_rule.VRR_RECHARGE_AMT
+     *
+     * @mbggenerated
+     */
+    public String getRechargeAmt() {
+        return rechargeAmt;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_recharge_rule.VRR_RECHARGE_AMT
+     *
+     * @param rechargeAmt the value for vm_recharge_rule.VRR_RECHARGE_AMT
+     *
+     * @mbggenerated
+     */
+    public void setRechargeAmt(String rechargeAmt) {
+        this.rechargeAmt = rechargeAmt == null ? null : rechargeAmt.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_recharge_rule.VRR_GIVE_AMT
+     *
+     * @return the value of vm_recharge_rule.VRR_GIVE_AMT
+     *
+     * @mbggenerated
+     */
+    public String getGiveAmt() {
+        return giveAmt;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_recharge_rule.VRR_GIVE_AMT
+     *
+     * @param giveAmt the value for vm_recharge_rule.VRR_GIVE_AMT
+     *
+     * @mbggenerated
+     */
+    public void setGiveAmt(String giveAmt) {
+        this.giveAmt = giveAmt == null ? null : giveAmt.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_recharge_rule.VRR_DESC
+     *
+     * @return the value of vm_recharge_rule.VRR_DESC
+     *
+     * @mbggenerated
+     */
+    public String getDesc() {
+        return desc;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_recharge_rule.VRR_DESC
+     *
+     * @param desc the value for vm_recharge_rule.VRR_DESC
+     *
+     * @mbggenerated
+     */
+    public void setDesc(String desc) {
+        this.desc = desc == null ? null : desc.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_recharge_rule.VRR_CREATE_TIME
+     *
+     * @return the value of vm_recharge_rule.VRR_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public String getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_recharge_rule.VRR_CREATE_TIME
+     *
+     * @param createTime the value for vm_recharge_rule.VRR_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public void setCreateTime(String createTime) {
+        this.createTime = createTime == null ? null : createTime.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_recharge_rule.VRR_CREATE_USER
+     *
+     * @return the value of vm_recharge_rule.VRR_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public String getCreateUser() {
+        return createUser;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_recharge_rule.VRR_CREATE_USER
+     *
+     * @param createUser the value for vm_recharge_rule.VRR_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public void setCreateUser(String createUser) {
+        this.createUser = createUser == null ? null : createUser.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_recharge_rule.VRR_STATE
+     *
+     * @return the value of vm_recharge_rule.VRR_STATE
+     *
+     * @mbggenerated
+     */
+    public String getState() {
+        return state;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_recharge_rule.VRR_STATE
+     *
+     * @param state the value for vm_recharge_rule.VRR_STATE
+     *
+     * @mbggenerated
+     */
+    public void setState(String state) {
+        this.state = state == null ? null : state.trim();
+    }
+}

+ 827 - 0
src/main/java/com/minpay/db/table/model/VmRechargeRuleExample.java

@@ -0,0 +1,827 @@
+package com.minpay.db.table.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class VmRechargeRuleExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    public VmRechargeRuleExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("VRR_ID is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("VRR_ID is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(String value) {
+            if(value == null ){
+                andIdIsNull();
+            } else {
+                addCriterion("VRR_ID =", value, "id");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(String value) {
+            if(value == null ){
+                andIdIsNotNull();
+            } else {
+                addCriterion("VRR_ID <>", value, "id");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(String value) {
+            addCriterion("VRR_ID >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(String value) {
+            addCriterion("VRR_ID >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(String value) {
+            addCriterion("VRR_ID <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(String value) {
+            addCriterion("VRR_ID <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLike(String value) {
+            addCriterion("VRR_ID like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotLike(String value) {
+            addCriterion("VRR_ID not like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<String> values) {
+            addCriterion("VRR_ID in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<String> values) {
+            addCriterion("VRR_ID not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(String value1, String value2) {
+            addCriterion("VRR_ID between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(String value1, String value2) {
+            addCriterion("VRR_ID not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtIsNull() {
+            addCriterion("VRR_RECHARGE_AMT is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtIsNotNull() {
+            addCriterion("VRR_RECHARGE_AMT is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtEqualTo(String value) {
+            if(value == null ){
+                andRechargeAmtIsNull();
+            } else {
+                addCriterion("VRR_RECHARGE_AMT =", value, "rechargeAmt");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtNotEqualTo(String value) {
+            if(value == null ){
+                andRechargeAmtIsNotNull();
+            } else {
+                addCriterion("VRR_RECHARGE_AMT <>", value, "rechargeAmt");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtGreaterThan(String value) {
+            addCriterion("VRR_RECHARGE_AMT >", value, "rechargeAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtGreaterThanOrEqualTo(String value) {
+            addCriterion("VRR_RECHARGE_AMT >=", value, "rechargeAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtLessThan(String value) {
+            addCriterion("VRR_RECHARGE_AMT <", value, "rechargeAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtLessThanOrEqualTo(String value) {
+            addCriterion("VRR_RECHARGE_AMT <=", value, "rechargeAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtLike(String value) {
+            addCriterion("VRR_RECHARGE_AMT like", value, "rechargeAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtNotLike(String value) {
+            addCriterion("VRR_RECHARGE_AMT not like", value, "rechargeAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtIn(List<String> values) {
+            addCriterion("VRR_RECHARGE_AMT in", values, "rechargeAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtNotIn(List<String> values) {
+            addCriterion("VRR_RECHARGE_AMT not in", values, "rechargeAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtBetween(String value1, String value2) {
+            addCriterion("VRR_RECHARGE_AMT between", value1, value2, "rechargeAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAmtNotBetween(String value1, String value2) {
+            addCriterion("VRR_RECHARGE_AMT not between", value1, value2, "rechargeAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtIsNull() {
+            addCriterion("VRR_GIVE_AMT is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtIsNotNull() {
+            addCriterion("VRR_GIVE_AMT is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtEqualTo(String value) {
+            if(value == null ){
+                andGiveAmtIsNull();
+            } else {
+                addCriterion("VRR_GIVE_AMT =", value, "giveAmt");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtNotEqualTo(String value) {
+            if(value == null ){
+                andGiveAmtIsNotNull();
+            } else {
+                addCriterion("VRR_GIVE_AMT <>", value, "giveAmt");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtGreaterThan(String value) {
+            addCriterion("VRR_GIVE_AMT >", value, "giveAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtGreaterThanOrEqualTo(String value) {
+            addCriterion("VRR_GIVE_AMT >=", value, "giveAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtLessThan(String value) {
+            addCriterion("VRR_GIVE_AMT <", value, "giveAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtLessThanOrEqualTo(String value) {
+            addCriterion("VRR_GIVE_AMT <=", value, "giveAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtLike(String value) {
+            addCriterion("VRR_GIVE_AMT like", value, "giveAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtNotLike(String value) {
+            addCriterion("VRR_GIVE_AMT not like", value, "giveAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtIn(List<String> values) {
+            addCriterion("VRR_GIVE_AMT in", values, "giveAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtNotIn(List<String> values) {
+            addCriterion("VRR_GIVE_AMT not in", values, "giveAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtBetween(String value1, String value2) {
+            addCriterion("VRR_GIVE_AMT between", value1, value2, "giveAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andGiveAmtNotBetween(String value1, String value2) {
+            addCriterion("VRR_GIVE_AMT not between", value1, value2, "giveAmt");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescIsNull() {
+            addCriterion("VRR_DESC is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescIsNotNull() {
+            addCriterion("VRR_DESC is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescEqualTo(String value) {
+            if(value == null ){
+                andDescIsNull();
+            } else {
+                addCriterion("VRR_DESC =", value, "desc");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andDescNotEqualTo(String value) {
+            if(value == null ){
+                andDescIsNotNull();
+            } else {
+                addCriterion("VRR_DESC <>", value, "desc");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andDescGreaterThan(String value) {
+            addCriterion("VRR_DESC >", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescGreaterThanOrEqualTo(String value) {
+            addCriterion("VRR_DESC >=", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescLessThan(String value) {
+            addCriterion("VRR_DESC <", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescLessThanOrEqualTo(String value) {
+            addCriterion("VRR_DESC <=", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescLike(String value) {
+            addCriterion("VRR_DESC like", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescNotLike(String value) {
+            addCriterion("VRR_DESC not like", value, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescIn(List<String> values) {
+            addCriterion("VRR_DESC in", values, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescNotIn(List<String> values) {
+            addCriterion("VRR_DESC not in", values, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescBetween(String value1, String value2) {
+            addCriterion("VRR_DESC between", value1, value2, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andDescNotBetween(String value1, String value2) {
+            addCriterion("VRR_DESC not between", value1, value2, "desc");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNull() {
+            addCriterion("VRR_CREATE_TIME is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNotNull() {
+            addCriterion("VRR_CREATE_TIME is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualTo(String value) {
+            if(value == null ){
+                andCreateTimeIsNull();
+            } else {
+                addCriterion("VRR_CREATE_TIME =", value, "createTime");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(String value) {
+            if(value == null ){
+                andCreateTimeIsNotNull();
+            } else {
+                addCriterion("VRR_CREATE_TIME <>", value, "createTime");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(String value) {
+            addCriterion("VRR_CREATE_TIME >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
+            addCriterion("VRR_CREATE_TIME >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(String value) {
+            addCriterion("VRR_CREATE_TIME <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(String value) {
+            addCriterion("VRR_CREATE_TIME <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLike(String value) {
+            addCriterion("VRR_CREATE_TIME like", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotLike(String value) {
+            addCriterion("VRR_CREATE_TIME not like", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIn(List<String> values) {
+            addCriterion("VRR_CREATE_TIME in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotIn(List<String> values) {
+            addCriterion("VRR_CREATE_TIME not in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeBetween(String value1, String value2) {
+            addCriterion("VRR_CREATE_TIME between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotBetween(String value1, String value2) {
+            addCriterion("VRR_CREATE_TIME not between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserIsNull() {
+            addCriterion("VRR_CREATE_USER is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserIsNotNull() {
+            addCriterion("VRR_CREATE_USER is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserEqualTo(String value) {
+            if(value == null ){
+                andCreateUserIsNull();
+            } else {
+                addCriterion("VRR_CREATE_USER =", value, "createUser");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserNotEqualTo(String value) {
+            if(value == null ){
+                andCreateUserIsNotNull();
+            } else {
+                addCriterion("VRR_CREATE_USER <>", value, "createUser");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserGreaterThan(String value) {
+            addCriterion("VRR_CREATE_USER >", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
+            addCriterion("VRR_CREATE_USER >=", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserLessThan(String value) {
+            addCriterion("VRR_CREATE_USER <", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserLessThanOrEqualTo(String value) {
+            addCriterion("VRR_CREATE_USER <=", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserLike(String value) {
+            addCriterion("VRR_CREATE_USER like", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserNotLike(String value) {
+            addCriterion("VRR_CREATE_USER not like", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserIn(List<String> values) {
+            addCriterion("VRR_CREATE_USER in", values, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserNotIn(List<String> values) {
+            addCriterion("VRR_CREATE_USER not in", values, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserBetween(String value1, String value2) {
+            addCriterion("VRR_CREATE_USER between", value1, value2, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserNotBetween(String value1, String value2) {
+            addCriterion("VRR_CREATE_USER not between", value1, value2, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateIsNull() {
+            addCriterion("VRR_STATE is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateIsNotNull() {
+            addCriterion("VRR_STATE is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateEqualTo(String value) {
+            if(value == null ){
+                andStateIsNull();
+            } else {
+                addCriterion("VRR_STATE =", value, "state");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotEqualTo(String value) {
+            if(value == null ){
+                andStateIsNotNull();
+            } else {
+                addCriterion("VRR_STATE <>", value, "state");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andStateGreaterThan(String value) {
+            addCriterion("VRR_STATE >", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateGreaterThanOrEqualTo(String value) {
+            addCriterion("VRR_STATE >=", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateLessThan(String value) {
+            addCriterion("VRR_STATE <", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateLessThanOrEqualTo(String value) {
+            addCriterion("VRR_STATE <=", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateLike(String value) {
+            addCriterion("VRR_STATE like", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotLike(String value) {
+            addCriterion("VRR_STATE not like", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateIn(List<String> values) {
+            addCriterion("VRR_STATE in", values, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotIn(List<String> values) {
+            addCriterion("VRR_STATE not in", values, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateBetween(String value1, String value2) {
+            addCriterion("VRR_STATE between", value1, value2, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotBetween(String value1, String value2) {
+            addCriterion("VRR_STATE not between", value1, value2, "state");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated do_not_delete_during_merge
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table vm_recharge_rule
+     *
+     * @mbggenerated
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.betweenValue = true;
+        }
+    }
+}

+ 215 - 0
src/main/java/com/minpay/rechargeManage/RechargeManageAction.java

@@ -0,0 +1,215 @@
+package com.minpay.rechargeManage;
+
+import com.min.sha1.SHA1;
+import com.minpay.common.bean.User;
+import com.minpay.common.constant.Constant;
+import com.minpay.common.constant.ServConstant;
+import com.minpay.common.exception.BusinessCodeException;
+import com.minpay.common.format.IFormatService;
+import com.minpay.common.service.ILogService;
+import com.minpay.common.service.IPublicService;
+import com.minpay.common.util.RegexUtil;
+import com.minpay.db.table.mapper.ImLogonCtrlMapper;
+import com.minpay.db.table.mapper.ImUserMapper;
+import com.minpay.db.table.mapper.ImUserRoleRelMapper;
+import com.minpay.db.table.mapper.VmRechargeRuleMapper;
+import com.minpay.db.table.model.*;
+import com.minpay.db.table.own.mapper.UserMapper;
+import com.mysql.jdbc.StringUtils;
+import com.startup.minpay.frame.business.IMINAction;
+import com.startup.minpay.frame.business.MINHttpServletRequestContext;
+import com.startup.minpay.frame.business.res.MINActionResult;
+import com.startup.minpay.frame.constant.IMINBusinessConstant;
+import com.startup.minpay.frame.constant.IMINTransactionEnum;
+import com.startup.minpay.frame.exception.MINBusinessException;
+import com.startup.minpay.frame.jdbc.MINRowBounds;
+import com.startup.minpay.frame.service.base.IMINDataBaseService;
+import com.startup.minpay.frame.service.base.Service;
+import com.startup.minpay.frame.session.MINSession;
+import com.startup.minpay.frame.target.MINAction;
+import com.startup.minpay.frame.target.MINComponent;
+import com.startup.minpay.frame.target.MINParam;
+import com.startup.minpay.frame.target.MINValidator;
+import com.startup.minpay.util.DateTime;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 操作员管理
+ * @author xbh
+ *
+ */
+@MINComponent
+public class RechargeManageAction implements IMINAction {
+	public final static String	QUERY_RECHARGE_RULE				= "queryRechargeRule";
+
+	public final static String	ADD_RECHARGE_RULE				= "addRechargeRule";
+
+	public final static String	MODIFY_RECHARGE_RULE				= "modifyRechargeRule";
+
+	public final static String	DELETE_RECHARGE_RULE			= "deleteRechargeRule";
+
+	/**
+	 * 查询充值规则
+	 * @param session
+	 * @param page
+	 * @param limit
+	 * @param dates
+	 * @param rechargeAmt
+	 * @param fapRequest
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = QUERY_RECHARGE_RULE)
+	public MINActionResult queryRechargeRule(
+			MINSession session,
+			@MINParam(key = "page", defaultValue = "1") int page,
+			@MINParam(key = "limit", defaultValue = "3") int limit,
+			@MINParam(key = "dates") String dates,
+			@MINParam(key = "rechargeAmt") String rechargeAmt,
+			@MINParam(key = "desc") String desc,
+			MINHttpServletRequestContext fapRequest
+			) throws MINBusinessException {
+
+		MINActionResult res = new MINActionResult();
+		VmRechargeRuleExample vmRechargeRuleExample = new VmRechargeRuleExample();
+		VmRechargeRuleExample.Criteria createCriteria = vmRechargeRuleExample.createCriteria();
+		if(!StringUtils.isNullOrEmpty(rechargeAmt)){
+			createCriteria.andRechargeAmtEqualTo(rechargeAmt);
+		}
+		if(!StringUtils.isNullOrEmpty(dates)){
+			dates = dates.replaceAll("-", "").replaceAll(" ", "");
+			createCriteria.andCreateTimeBetween(dates.substring(0, 8),dates.substring(8, 16));
+		}
+		createCriteria.andStateEqualTo("0");
+		MINRowBounds rows = new MINRowBounds(page, limit);
+		
+		// 查询
+		List<VmRechargeRule> ls = Service.lookup(IMINDataBaseService.class).getMybatisMapper(VmRechargeRuleMapper.class).selectByExample(vmRechargeRuleExample, rows);
+		
+		// 格式化
+		ls = Service.lookup(IFormatService.class).formatDateTime(ls, "createTime");
+		// 设置返回值
+		res.set(IMINBusinessConstant.F_PAGING_LAY, ls);
+		res.set(IMINBusinessConstant.F_PAGING_COUNT, rows.getCount());
+		return res;
+	}
+
+	/**
+	 * 添加充值规则
+	 * @param rechargeAmt
+	 * @param giveAmt
+	 * @param desc
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = ADD_RECHARGE_RULE, transaction = IMINTransactionEnum.CMT)
+	public MINActionResult addRechargeRule(
+			@MINParam(key = "rechargeAmt") String rechargeAmt,
+			@MINParam(key = "giveAmt") String giveAmt,
+			@MINParam(key = "desc") String desc,
+			MINSession session) throws MINBusinessException {
+		MINActionResult res = new MINActionResult();
+		User user = session.getUser();
+		if(!Constant.ADMINISTRATION_SYSTEM_NUMBER.equals(user.getBranchId())){
+			throw new MINBusinessException("此用户没有权限,此操作");
+		}
+		String id = Service.lookup(IPublicService.class).getSequence("RECHARGE_RULE_NO");
+
+		String time = new DateTime().toDateTimeString();
+		id = time.concat(id);
+		VmRechargeRule vmRechargeRule = new VmRechargeRule();
+		vmRechargeRule.setId(id);
+		vmRechargeRule.setRechargeAmt(rechargeAmt);
+		vmRechargeRule.setGiveAmt(giveAmt);
+		vmRechargeRule.setDesc(desc);
+		vmRechargeRule.setCreateTime(time);
+		vmRechargeRule.setCreateUser(user.getId());
+		Service.lookup(IMINDataBaseService.class).insertSelective(VmRechargeRuleMapper.class, vmRechargeRule);
+		String logInfo = "添加充值规则:" + id;
+		Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+	@MINValidator(value = ADD_RECHARGE_RULE)
+	public MINActionResult addRechargeRuleValidator(
+			@MINParam(key = "rechargeAmt",regex = RegexUtil.AMOUNT_NOTNULL, error = "请正确的金额") String rechargeAmt,
+			@MINParam(key = "giveAmt",regex = RegexUtil.AMOUNT_NOTNULL, error = "请正确的金额") String giveAmt,
+			MINSession session) throws MINBusinessException {
+		MINActionResult res = new MINActionResult();
+		return res;
+	}
+
+	/**
+	 * 编辑充值规则
+	 * @param id
+	 * @param rechargeAmt
+	 * @param giveAmt
+	 * @param desc
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = MODIFY_RECHARGE_RULE, transaction = IMINTransactionEnum.CMT)
+	public MINActionResult modifyRechargeRule(
+			@MINParam(key = "id") String id,
+			@MINParam(key = "rechargeAmt") String rechargeAmt,
+			@MINParam(key = "giveAmt") String giveAmt,
+			@MINParam(key = "desc") String desc,
+			MINSession session
+			) throws MINBusinessException {
+		MINActionResult res = new MINActionResult();
+		VmRechargeRule vmRechargeRule = new VmRechargeRule();
+		vmRechargeRule.setId(id);
+		vmRechargeRule.setRechargeAmt(rechargeAmt);
+		vmRechargeRule.setGiveAmt(giveAmt);
+		vmRechargeRule.setDesc(desc);
+		Service.lookup(IMINDataBaseService.class).updateByPrimaryKeySelective(VmRechargeRuleMapper.class, vmRechargeRule);
+		String logInfo = "编辑充值规则:" + id;
+		Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+	@MINValidator(value = MODIFY_RECHARGE_RULE)
+	public MINActionResult modifyRechargeRuleValidator(
+			@MINParam(key = "id",regex = RegexUtil.NOT_NULL, error = "数据异常") String id,
+			@MINParam(key = "rechargeAmt",regex = RegexUtil.AMOUNT_NOTNULL, error = "请正确的金额") String rechargeAmt,
+			@MINParam(key = "giveAmt",regex = RegexUtil.AMOUNT_NOTNULL, error = "请正确的金额") String giveAmt,
+			MINSession session) throws MINBusinessException {
+		MINActionResult res = new MINActionResult();
+		return res;
+	}
+
+
+	/**
+	 * 删除规则
+	 * @param id
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = DELETE_RECHARGE_RULE, transaction = IMINTransactionEnum.CMT)
+	public MINActionResult deleteRechargeRule(
+			@MINParam(key = "id") String id,
+			MINSession session
+			) throws MINBusinessException {
+		MINActionResult res = new MINActionResult();
+		VmRechargeRule vmRechargeRule = new VmRechargeRule();
+		vmRechargeRule.setId(id);
+		vmRechargeRule.setState("1");
+		Service.lookup(IMINDataBaseService.class).updateByPrimaryKeySelective(VmRechargeRuleMapper.class, vmRechargeRule);
+		String logInfo = "删除充值规则:" + id;
+		Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+	@MINValidator(value = DELETE_RECHARGE_RULE)
+	public MINActionResult deleteRechargeRuleValidator(
+			@MINParam(key = "id",regex = RegexUtil.NOT_NULL, error = "数据异常") String id,
+			MINSession session) throws MINBusinessException {
+		MINActionResult res = new MINActionResult();
+		return res;
+	}
+	
+
+}

+ 303 - 0
src/main/resources/com/minpay/db/table/mapper/VmGameRuleMapper.xml

@@ -0,0 +1,303 @@
+<?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.VmGameRuleMapper" >
+  <resultMap id="BaseResultMap" type="com.minpay.db.table.model.VmGameRule" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="VGL_ID" property="id" jdbcType="VARCHAR" />
+    <result column="VGL_NAME" property="name" jdbcType="VARCHAR" />
+    <result column="VGL_DESC" property="desc" jdbcType="VARCHAR" />
+    <result column="VGL_STATE" property="state" jdbcType="VARCHAR" />
+    <result column="VGL_ALIPAYID" property="alipayid" jdbcType="VARCHAR" />
+    <result column="VGL_CREATE_TIME" property="createTime" jdbcType="VARCHAR" />
+    <result column="VGL_CREATE_USER" property="createUser" jdbcType="VARCHAR" />
+  </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="(" suffix=")" prefixOverrides="and" >
+            <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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
+            <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 collection="criterion.value" item="listItem" open="(" close=")" 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.
+    -->
+    VGL_ID, VGL_NAME, VGL_DESC, VGL_STATE, VGL_ALIPAYID, VGL_CREATE_TIME, VGL_CREATE_USER
+  </sql>
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.VmGameRuleExample" >
+    <!--
+      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_game_rule
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null" >
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from vm_game_rule
+    where VGL_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_game_rule
+    where VGL_ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.minpay.db.table.model.VmGameRuleExample" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from vm_game_rule
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.minpay.db.table.model.VmGameRule" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into vm_game_rule (VGL_ID, VGL_NAME, VGL_DESC, 
+      VGL_STATE, VGL_ALIPAYID, VGL_CREATE_TIME, 
+      VGL_CREATE_USER)
+    values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, 
+      #{state,jdbcType=VARCHAR}, #{alipayid,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, 
+      #{createUser,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.minpay.db.table.model.VmGameRule" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into vm_game_rule
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        VGL_ID,
+      </if>
+      <if test="name != null" >
+        VGL_NAME,
+      </if>
+      <if test="desc != null" >
+        VGL_DESC,
+      </if>
+      <if test="state != null" >
+        VGL_STATE,
+      </if>
+      <if test="alipayid != null" >
+        VGL_ALIPAYID,
+      </if>
+      <if test="createTime != null" >
+        VGL_CREATE_TIME,
+      </if>
+      <if test="createUser != null" >
+        VGL_CREATE_USER,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null" >
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="desc != null" >
+        #{desc,jdbcType=VARCHAR},
+      </if>
+      <if test="state != null" >
+        #{state,jdbcType=VARCHAR},
+      </if>
+      <if test="alipayid != null" >
+        #{alipayid,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null" >
+        #{createTime,jdbcType=VARCHAR},
+      </if>
+      <if test="createUser != null" >
+        #{createUser,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.minpay.db.table.model.VmGameRuleExample" resultType="java.lang.Integer" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from vm_game_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_game_rule
+    <set >
+      <if test="record.id != null" >
+        VGL_ID = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.name != null" >
+        VGL_NAME = #{record.name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.desc != null" >
+        VGL_DESC = #{record.desc,jdbcType=VARCHAR},
+      </if>
+      <if test="record.state != null" >
+        VGL_STATE = #{record.state,jdbcType=VARCHAR},
+      </if>
+      <if test="record.alipayid != null" >
+        VGL_ALIPAYID = #{record.alipayid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null" >
+        VGL_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createUser != null" >
+        VGL_CREATE_USER = #{record.createUser,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_game_rule
+    set VGL_ID = #{record.id,jdbcType=VARCHAR},
+      VGL_NAME = #{record.name,jdbcType=VARCHAR},
+      VGL_DESC = #{record.desc,jdbcType=VARCHAR},
+      VGL_STATE = #{record.state,jdbcType=VARCHAR},
+      VGL_ALIPAYID = #{record.alipayid,jdbcType=VARCHAR},
+      VGL_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
+      VGL_CREATE_USER = #{record.createUser,jdbcType=VARCHAR}
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.VmGameRule" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update vm_game_rule
+    <set >
+      <if test="name != null" >
+        VGL_NAME = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="desc != null" >
+        VGL_DESC = #{desc,jdbcType=VARCHAR},
+      </if>
+      <if test="state != null" >
+        VGL_STATE = #{state,jdbcType=VARCHAR},
+      </if>
+      <if test="alipayid != null" >
+        VGL_ALIPAYID = #{alipayid,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null" >
+        VGL_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
+      </if>
+      <if test="createUser != null" >
+        VGL_CREATE_USER = #{createUser,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where VGL_ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.VmGameRule" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update vm_game_rule
+    set VGL_NAME = #{name,jdbcType=VARCHAR},
+      VGL_DESC = #{desc,jdbcType=VARCHAR},
+      VGL_STATE = #{state,jdbcType=VARCHAR},
+      VGL_ALIPAYID = #{alipayid,jdbcType=VARCHAR},
+      VGL_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
+      VGL_CREATE_USER = #{createUser,jdbcType=VARCHAR}
+    where VGL_ID = #{id,jdbcType=VARCHAR}
+  </update>
+</mapper>

+ 304 - 0
src/main/resources/com/minpay/db/table/mapper/VmRechargeRuleMapper.xml

@@ -0,0 +1,304 @@
+<?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>