Browse Source

游戏规则

xubh 5 years ago
parent
commit
0dd84f5feb

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

@@ -108,6 +108,14 @@ public class VmGameRule extends AbstractMINBean {
     private String type;
 
     /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_MECHANISM
+     *
+     * @mbggenerated
+     */
+    private String mechanism;
+
+    /**
      * This method was generated by MyBatis Generator.
      * This method returns the value of the database column vm_game_rule.VGL_ID
      *
@@ -418,4 +426,28 @@ public class VmGameRule extends AbstractMINBean {
     public void setType(String type) {
         this.type = type == null ? null : type.trim();
     }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_MECHANISM
+     *
+     * @return the value of vm_game_rule.VGL_MECHANISM
+     *
+     * @mbggenerated
+     */
+    public String getMechanism() {
+        return mechanism;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_MECHANISM
+     *
+     * @param mechanism the value for vm_game_rule.VGL_MECHANISM
+     *
+     * @mbggenerated
+     */
+    public void setMechanism(String mechanism) {
+        this.mechanism = mechanism == null ? null : mechanism.trim();
+    }
 }

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

@@ -1203,6 +1203,84 @@ public class VmGameRuleExample {
             addCriterion("VGL_TYPE not between", value1, value2, "type");
             return (Criteria) this;
         }
+
+        public Criteria andMechanismIsNull() {
+            addCriterion("VGL_MECHANISM is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismIsNotNull() {
+            addCriterion("VGL_MECHANISM is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismEqualTo(String value) {
+            if(value == null ){
+                andMechanismIsNull();
+            } else {
+                addCriterion("VGL_MECHANISM =", value, "mechanism");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismNotEqualTo(String value) {
+            if(value == null ){
+                andMechanismIsNotNull();
+            } else {
+                addCriterion("VGL_MECHANISM <>", value, "mechanism");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismGreaterThan(String value) {
+            addCriterion("VGL_MECHANISM >", value, "mechanism");
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismGreaterThanOrEqualTo(String value) {
+            addCriterion("VGL_MECHANISM >=", value, "mechanism");
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismLessThan(String value) {
+            addCriterion("VGL_MECHANISM <", value, "mechanism");
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismLessThanOrEqualTo(String value) {
+            addCriterion("VGL_MECHANISM <=", value, "mechanism");
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismLike(String value) {
+            addCriterion("VGL_MECHANISM like", value, "mechanism");
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismNotLike(String value) {
+            addCriterion("VGL_MECHANISM not like", value, "mechanism");
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismIn(List<String> values) {
+            addCriterion("VGL_MECHANISM in", values, "mechanism");
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismNotIn(List<String> values) {
+            addCriterion("VGL_MECHANISM not in", values, "mechanism");
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismBetween(String value1, String value2) {
+            addCriterion("VGL_MECHANISM between", value1, value2, "mechanism");
+            return (Criteria) this;
+        }
+
+        public Criteria andMechanismNotBetween(String value1, String value2) {
+            addCriterion("VGL_MECHANISM not between", value1, value2, "mechanism");
+            return (Criteria) this;
+        }
     }
 
     /**

+ 20 - 5
src/main/resources/com/minpay/db/table/mapper/VmGameRuleMapper.xml

@@ -19,6 +19,7 @@
     <result column="VGL_JACKPOT_AMT" jdbcType="VARCHAR" property="jackpotAmt" />
     <result column="VGL_EXTRACT_RATIO" jdbcType="VARCHAR" property="extractRatio" />
     <result column="VGL_TYPE" jdbcType="VARCHAR" property="type" />
+    <result column="VGL_MECHANISM" jdbcType="VARCHAR" property="mechanism" />
   </resultMap>
   <sql id="Example_Where_Clause">
     <!--
@@ -93,7 +94,7 @@
     -->
     VGL_ID, VGL_NAME, VGL_DESC, VGL_STATE, VGL_ALIPAYID, VGL_CREATE_TIME, VGL_CREATE_USER, 
     VGL_REWARD_GRADE, VGL_REWARD_AMT_RATIO, VGL_REWARD_TYPE, VGL_JACKPOT_AMT, VGL_EXTRACT_RATIO, 
-    VGL_TYPE
+    VGL_TYPE, VGL_MECHANISM
   </sql>
   <select id="selectByExample" parameterType="com.minpay.db.table.model.VmGameRuleExample" resultMap="BaseResultMap">
     <!--
@@ -150,12 +151,12 @@
       VGL_STATE, VGL_ALIPAYID, VGL_CREATE_TIME, 
       VGL_CREATE_USER, VGL_REWARD_GRADE, VGL_REWARD_AMT_RATIO, 
       VGL_REWARD_TYPE, VGL_JACKPOT_AMT, VGL_EXTRACT_RATIO, 
-      VGL_TYPE)
+      VGL_TYPE, VGL_MECHANISM)
     values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, 
       #{state,jdbcType=VARCHAR}, #{alipayid,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, 
       #{createUser,jdbcType=VARCHAR}, #{rewardGrade,jdbcType=VARCHAR}, #{rewardAmtRatio,jdbcType=VARCHAR}, 
       #{rewardType,jdbcType=VARCHAR}, #{jackpotAmt,jdbcType=VARCHAR}, #{extractRatio,jdbcType=VARCHAR}, 
-      #{type,jdbcType=VARCHAR})
+      #{type,jdbcType=VARCHAR}, #{mechanism,jdbcType=VARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.minpay.db.table.model.VmGameRule">
     <!--
@@ -203,6 +204,9 @@
       <if test="type != null">
         VGL_TYPE,
       </if>
+      <if test="mechanism != null">
+        VGL_MECHANISM,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -244,6 +248,9 @@
       <if test="type != null">
         #{type,jdbcType=VARCHAR},
       </if>
+      <if test="mechanism != null">
+        #{mechanism,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
   <select id="countByExample" parameterType="com.minpay.db.table.model.VmGameRuleExample" resultType="java.lang.Integer">
@@ -302,6 +309,9 @@
       <if test="record.type != null">
         VGL_TYPE = #{record.type,jdbcType=VARCHAR},
       </if>
+      <if test="record.mechanism != null">
+        VGL_MECHANISM = #{record.mechanism,jdbcType=VARCHAR},
+      </if>
     </set>
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
@@ -325,7 +335,8 @@
       VGL_REWARD_TYPE = #{record.rewardType,jdbcType=VARCHAR},
       VGL_JACKPOT_AMT = #{record.jackpotAmt,jdbcType=VARCHAR},
       VGL_EXTRACT_RATIO = #{record.extractRatio,jdbcType=VARCHAR},
-      VGL_TYPE = #{record.type,jdbcType=VARCHAR}
+      VGL_TYPE = #{record.type,jdbcType=VARCHAR},
+      VGL_MECHANISM = #{record.mechanism,jdbcType=VARCHAR}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -373,6 +384,9 @@
       <if test="type != null">
         VGL_TYPE = #{type,jdbcType=VARCHAR},
       </if>
+      <if test="mechanism != null">
+        VGL_MECHANISM = #{mechanism,jdbcType=VARCHAR},
+      </if>
     </set>
     where VGL_ID = #{id,jdbcType=VARCHAR}
   </update>
@@ -393,7 +407,8 @@
       VGL_REWARD_TYPE = #{rewardType,jdbcType=VARCHAR},
       VGL_JACKPOT_AMT = #{jackpotAmt,jdbcType=VARCHAR},
       VGL_EXTRACT_RATIO = #{extractRatio,jdbcType=VARCHAR},
-      VGL_TYPE = #{type,jdbcType=VARCHAR}
+      VGL_TYPE = #{type,jdbcType=VARCHAR},
+      VGL_MECHANISM = #{mechanism,jdbcType=VARCHAR}
     where VGL_ID = #{id,jdbcType=VARCHAR}
   </update>
 </mapper>

+ 1 - 1
src/main/webapp/admin/machineManage/machineManage.html

@@ -104,7 +104,7 @@
 				,{field: 'payeeNo', title: '支付账号', width:"10%"}
 				,{field: 'equTypeDesc', title: '机器类型', width:"10%"}
 				,{field: 'createTime', title: '创建时间', width:"15%"}
-				,{field: 'operate', title: '操作', width: "15%", toolbar: '#barDemo',fixed: 'right'}
+				,{field: 'operate', title: '操作', width: "20%", toolbar: '#barDemo',fixed: 'right'}
 			]]
 			,done: function(res, curr, count){
 				//如果是异步请求数据方式,res即为你接口返回的信息。