Przeglądaj źródła

提交代码:支付

sunqing 5 lat temu
rodzic
commit
ead396248c

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

@@ -0,0 +1,98 @@
+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 org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+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/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;
+        }
+    }
+}

+ 177 - 0
src/main/java/com/minpay/shouhuo/orderaction/PayManageAction.java

@@ -0,0 +1,177 @@
+package com.minpay.shouhuo.orderaction;
+
+import com.min.util.DateUtil;
+import com.min.util.OffSetUtil;
+import com.minpay.common.bean.User;
+import com.minpay.common.exception.BusinessCodeException;
+import com.minpay.common.service.IAccountService;
+import com.minpay.common.service.IOrderService;
+import com.minpay.common.service.IPublicService;
+import com.minpay.common.util.CommonUtil;
+import com.minpay.db.table.mapper.VmOrderInfMapper;
+import com.minpay.db.table.mapper.VmPaymentInfMapper;
+import com.minpay.db.table.mapper.VmRechargeRuleMapper;
+import com.minpay.db.table.model.VmOrderInf;
+import com.minpay.db.table.model.VmPaymentInf;
+import com.minpay.db.table.model.VmRechargeRule;
+import com.minpay.db.table.model.VmRechargeRuleExample;
+import com.minpay.shouhuo.paymentaction.PaymentAction;
+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.IMINTransactionEnum;
+import com.startup.minpay.frame.exception.MINBusinessException;
+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 java.util.List;
+
+/**
+ * 订单管理
+ * @author xbh
+ *
+ */
+@MINComponent
+public class PayManageAction implements IMINAction {
+
+	/**充值*/
+	public final static String PAY_RECHARGE				= "payRecharge";
+
+	/**回调(充值)*/
+	public static final String CALLBACK_RECHARGE 		= "callbackRecharge";
+
+	/**余额支付*/
+	public static final String BALANCE_PAY 				= "balancePay";
+
+	/**
+	 * 充值
+	 * @param session
+	 * @param equipmentId	机器编号
+	 * @param ruleId		规则号
+	 * @param payType		支付方式 91微信支付92支付宝支付
+	 * @param dates			日期(区间)
+	 * @param state			状态
+	 * @param fapRequest
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = PAY_RECHARGE, transaction = IMINTransactionEnum.CMT)
+	public MINActionResult payRecharge(
+			MINSession session,
+			@MINParam(key = "equipmentId") String equipmentId,
+			@MINParam(key = "ruleId") String ruleId,
+			@MINParam(key = "payType") String payType,
+			@MINParam(key = "dates") String dates,
+			@MINParam(key = "state") String state,
+			MINHttpServletRequestContext fapRequest
+	) throws MINBusinessException {
+		MINActionResult res = new MINActionResult();
+
+		//获取操作员
+		User user = session.getUser();
+
+		//获取当前时间
+		String nowTime = com.minpay.common.util.DateUtil.getCurrentDateTimeString();
+
+		//根据规则编号查询充值金额
+		VmRechargeRuleExample vmRechargeRuleExample = new VmRechargeRuleExample();
+		vmRechargeRuleExample.createCriteria().andIdEqualTo(ruleId);
+		// 查询
+		List<VmRechargeRule> ls = Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(VmRechargeRuleMapper.class).selectByExample(vmRechargeRuleExample);
+
+		if(ls.size() != 1){
+			throw new BusinessCodeException("规则编号有误!");
+		}
+		//赠送金额
+		String giveAmt =  ls.get(0).getGiveAmt();
+		//充值金额
+		String rechargeAmt = ls.get(0).getRechargeAmt();
+		String allAmt = CommonUtil.add(giveAmt, rechargeAmt);
+
+		//创建订单
+		//获取订单主键
+		String ordId = Service.lookup(IPublicService.class).getSequence("VM_ORDER_INF_ID");
+		//初始化订单数据
+		VmOrderInf ordInf = new VmOrderInf();
+		ordInf.setId(ordId);						//订单编号
+		ordInf.setChannel(user.getChannel());		//渠道:V01售货机
+		ordInf.setPersonId(user.getId());				//下单人编号
+		ordInf.setEquipmentId(OffSetUtil.deScanCode(equipmentId));		//虚拟售货机号
+		ordInf.setState("91");						//91未支付
+		ordInf.setRemarks("会员充值:" + rechargeAmt);		//备注
+		ordInf.setIsDraw("00");						//是否中奖:00未中奖01中奖
+		ordInf.setIsUsed("00");						//是否使用:00已使用01未使用
+		ordInf.setProType("02");					//00正常商品,01抽奖商品,02:充值
+		ordInf.setRecordId("");						//结算编号
+		ordInf.setCreateUser(user.getId());			//创建人
+		ordInf.setCreateTime(DateUtil.getCurrentDateTimeString());				//创建时间
+		ordInf.setModifyUser(user.getId());			//修改人
+		ordInf.setModifyTime(DateUtil.getCurrentDateTimeString());				//修改时间
+		ordInf.setOrderAmt(allAmt);		//订单总金额
+		// 执行新增订单数据
+		Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(VmOrderInfMapper.class).insert(ordInf);
+
+		//记录充值流水表
+		String flowno = Service.lookup(IPublicService.class).getSequence("VM_PAYMENT_INF_ID");
+		VmPaymentInf payMentInf = new VmPaymentInf();
+		payMentInf.setFlowno(nowTime.concat(flowno));
+		payMentInf.setChannel(user.getChannel());
+		payMentInf.setTranstype("00"); //充值
+		payMentInf.setPaytype(payType);
+		payMentInf.setType("99");  //用户充值
+		payMentInf.setTranflowno(ordId);
+		payMentInf.setOrderamout(rechargeAmt); //充值金额
+		payMentInf.setTranmissiondatetime(nowTime);
+		payMentInf.setStatus("3"); // 交易状态(0 初始状态,1成功,2失败,3在途,4待审核,5已审核)
+		Service.lookup(IMINDataBaseService.class).getMybatisMapper(VmPaymentInfMapper.class).insert(payMentInf);
+
+		//动账
+		IAccountService service = Service.lookup(IAccountService.class);
+		service.modfiyAccount(user.getChannel(), user.getId(), "01", rechargeAmt, "00", payMentInf.getFlowno(), "充值","");
+
+		return res;
+	}
+
+
+	/**
+	 * 回调
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = BALANCE_PAY,transaction = IMINTransactionEnum.CMT)
+	public MINActionResult balancePay(
+			@MINParam(key = "equNo")String equNo,
+			@MINParam(key = "proType")String proType,
+			@MINParam(key = "proState")String proState,
+			@MINParam(key = "detData")String detData,
+			@MINParam(key = "payType")String payType,
+			@MINParam(key = "gameRule")String gameRule,
+			MINSession session) throws MINBusinessException{
+		//创建返回值对象
+		MINActionResult res = new MINActionResult();
+		if(CommonUtil.isEmpty(equNo)){
+			throw new BusinessCodeException("JINM1101");//售货机异常,请联系工作人员
+		}
+		//解密售货机编号
+		//String equNoNew = OffSetUtil.deScanCode(equNo);
+		String orderId = Service.lookup(IOrderService.class).createOrderInf(equNo, proType, proState, payType, "", detData, session,gameRule);
+		//调用支付流水生产接口
+		if(!CommonUtil.isEmpty(orderId)){
+			String totalAmt = PaymentAction.addPaymentInfo(orderId, session);
+			res.set("totalAmt", totalAmt);
+		}
+		res.set("orderId", orderId);
+		// 记录操作日志
+		//String logInfo = "操作员:" + user.getName() + "会员下单,售货机编号:" + equNo+ "下单商品信息:" + detData;
+		//Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+
+}

+ 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>