瀏覽代碼

zheng-pay的GeneratorConfig.xml自动生成

shuzheng 9 年之前
父節點
當前提交
267f963cab
共有 41 個文件被更改,包括 7868 次插入67 次删除
  1. 1 1
      zheng-pay/pom.xml
  2. 0 13
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/App.java
  3. 27 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/Generator.java
  4. 30 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderDetailMapper.java
  5. 253 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderDetailMapper.xml
  6. 30 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderMapper.java
  7. 237 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderMapper.xml
  8. 30 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayMchMapper.java
  9. 220 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayMchMapper.xml
  10. 30 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderDetailMapper.java
  11. 190 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderDetailMapper.xml
  12. 30 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderMapper.java
  13. 237 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderMapper.xml
  14. 30 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayPayMapper.java
  15. 190 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayPayMapper.xml
  16. 30 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayTypeMapper.java
  17. 190 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayTypeMapper.xml
  18. 30 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVendorMapper.java
  19. 220 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVendorMapper.xml
  20. 30 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVestMapper.java
  21. 205 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVestMapper.xml
  22. 116 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayInOrder.java
  23. 129 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayInOrderDetail.java
  24. 673 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayInOrderDetailExample.java
  25. 583 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayInOrderExample.java
  26. 103 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayMch.java
  27. 563 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayMchExample.java
  28. 116 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayOutOrder.java
  29. 77 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayOutOrderDetail.java
  30. 413 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayOutOrderDetailExample.java
  31. 583 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayOutOrderExample.java
  32. 77 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayPay.java
  33. 413 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayPayExample.java
  34. 77 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayType.java
  35. 403 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayTypeExample.java
  36. 103 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayVendor.java
  37. 563 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayVendorExample.java
  38. 90 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayVest.java
  39. 483 0
      zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayVestExample.java
  40. 62 49
      zheng-pay/zheng-pay-dao/src/main/resources/generatorConfig.xml
  41. 1 4
      zheng-pay/zheng-pay-dao/src/main/resources/jdbc.properties

+ 1 - 1
zheng-pay/pom.xml

@@ -21,7 +21,7 @@
     <modules>
     <modules>
         <module>zheng-pay-dao</module>
         <module>zheng-pay-dao</module>
         <module>zheng-pay-service</module>
         <module>zheng-pay-service</module>
-        <module>zheng-sdk</module>
+        <module>zheng-pay-sdk</module>
         <module>zheng-pay-web</module>
         <module>zheng-pay-web</module>
         <module>zheng-pay-admin</module>
         <module>zheng-pay-admin</module>
     </modules>
     </modules>

+ 0 - 13
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/App.java

@@ -1,13 +0,0 @@
-package com.zheng.pay.dao;
-
-/**
- * Hello world!
- *
- */
-public class App 
-{
-    public static void main( String[] args )
-    {
-        System.out.println( "Hello World!" );
-    }
-}

+ 27 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/Generator.java

@@ -0,0 +1,27 @@
+package com.zheng.pay.dao;
+
+import com.zheng.common.util.MybatisGeneratorConfigUtil;
+import com.zheng.common.util.PropertiesFileUtil;
+
+/**
+ * 代码生成类
+ * Created by ZhangShuzheng on 2017/1/10.
+ */
+public class Generator {
+
+	// 根据命名规范,只修改此常量值即可
+	private static String MODULE_PREFIX_NAME = "pay";
+	private static String JDBC_DRIVER = PropertiesFileUtil.getInstance("jdbc").get("jdbc.driver");
+	private static String JDBC_URL = PropertiesFileUtil.getInstance("jdbc").get("jdbc.url");
+	private static String JDBC_USERNAME= PropertiesFileUtil.getInstance("jdbc").get("jdbc.username");
+	private static String JDBC_PASSWORD = PropertiesFileUtil.getInstance("jdbc").get("jdbc.password");
+
+	/**
+	 * 根据模板生成generatorConfig.xml文件
+	 * @param args
+	 */
+	public static void main(String[] args) {
+		MybatisGeneratorConfigUtil.generator(JDBC_DRIVER, JDBC_URL, JDBC_USERNAME, JDBC_PASSWORD, MODULE_PREFIX_NAME);
+	}
+
+}

+ 30 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderDetailMapper.java

@@ -0,0 +1,30 @@
+package com.zheng.pay.dao.mapper;
+
+import com.zheng.pay.dao.model.PayInOrderDetail;
+import com.zheng.pay.dao.model.PayInOrderDetailExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PayInOrderDetailMapper {
+    int countByExample(PayInOrderDetailExample example);
+
+    int deleteByExample(PayInOrderDetailExample example);
+
+    int deleteByPrimaryKey(Integer payInOrderDetailId);
+
+    int insert(PayInOrderDetail record);
+
+    int insertSelective(PayInOrderDetail record);
+
+    List<PayInOrderDetail> selectByExample(PayInOrderDetailExample example);
+
+    PayInOrderDetail selectByPrimaryKey(Integer payInOrderDetailId);
+
+    int updateByExampleSelective(@Param("record") PayInOrderDetail record, @Param("example") PayInOrderDetailExample example);
+
+    int updateByExample(@Param("record") PayInOrderDetail record, @Param("example") PayInOrderDetailExample example);
+
+    int updateByPrimaryKeySelective(PayInOrderDetail record);
+
+    int updateByPrimaryKey(PayInOrderDetail record);
+}

+ 253 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderDetailMapper.xml

@@ -0,0 +1,253 @@
+<?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.zheng.pay.dao.mapper.PayInOrderDetailMapper" >
+  <resultMap id="BaseResultMap" type="com.zheng.pay.dao.model.PayInOrderDetail" >
+    <id column="pay_in_order_detail_id" property="payInOrderDetailId" jdbcType="INTEGER" />
+    <result column="pay_in_order_id" property="payInOrderId" jdbcType="INTEGER" />
+    <result column="product_id" property="productId" jdbcType="VARCHAR" />
+    <result column="product_name" property="productName" jdbcType="VARCHAR" />
+    <result column="product_price" property="productPrice" jdbcType="DECIMAL" />
+    <result column="product_count" property="productCount" jdbcType="INTEGER" />
+    <result column="remark" property="remark" jdbcType="VARCHAR" />
+  </resultMap>
+  <sql id="Example_Where_Clause" >
+    <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" >
+    <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" >
+    pay_in_order_detail_id, pay_in_order_id, product_id, product_name, product_price, 
+    product_count, remark
+  </sql>
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.pay.dao.model.PayInOrderDetailExample" >
+    select
+    <if test="distinct" >
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from pay_in_order_detail
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null" >
+      order by ${orderByClause}
+    </if>
+    <if test="limit != null" >
+      <if test="offset != null" >
+        limit ${offset}, ${limit}
+      </if>
+      <if test="offset == null" >
+        limit ${limit}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from pay_in_order_detail
+    where pay_in_order_detail_id = #{payInOrderDetailId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from pay_in_order_detail
+    where pay_in_order_detail_id = #{payInOrderDetailId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.zheng.pay.dao.model.PayInOrderDetailExample" >
+    delete from pay_in_order_detail
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.zheng.pay.dao.model.PayInOrderDetail" >
+    insert into pay_in_order_detail (pay_in_order_detail_id, pay_in_order_id, 
+      product_id, product_name, product_price, 
+      product_count, remark)
+    values (#{payInOrderDetailId,jdbcType=INTEGER}, #{payInOrderId,jdbcType=INTEGER}, 
+      #{productId,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{productPrice,jdbcType=DECIMAL}, 
+      #{productCount,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.zheng.pay.dao.model.PayInOrderDetail" >
+    insert into pay_in_order_detail
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="payInOrderDetailId != null" >
+        pay_in_order_detail_id,
+      </if>
+      <if test="payInOrderId != null" >
+        pay_in_order_id,
+      </if>
+      <if test="productId != null" >
+        product_id,
+      </if>
+      <if test="productName != null" >
+        product_name,
+      </if>
+      <if test="productPrice != null" >
+        product_price,
+      </if>
+      <if test="productCount != null" >
+        product_count,
+      </if>
+      <if test="remark != null" >
+        remark,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="payInOrderDetailId != null" >
+        #{payInOrderDetailId,jdbcType=INTEGER},
+      </if>
+      <if test="payInOrderId != null" >
+        #{payInOrderId,jdbcType=INTEGER},
+      </if>
+      <if test="productId != null" >
+        #{productId,jdbcType=VARCHAR},
+      </if>
+      <if test="productName != null" >
+        #{productName,jdbcType=VARCHAR},
+      </if>
+      <if test="productPrice != null" >
+        #{productPrice,jdbcType=DECIMAL},
+      </if>
+      <if test="productCount != null" >
+        #{productCount,jdbcType=INTEGER},
+      </if>
+      <if test="remark != null" >
+        #{remark,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.zheng.pay.dao.model.PayInOrderDetailExample" resultType="java.lang.Integer" >
+    select count(*) from pay_in_order_detail
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map" >
+    update pay_in_order_detail
+    <set >
+      <if test="record.payInOrderDetailId != null" >
+        pay_in_order_detail_id = #{record.payInOrderDetailId,jdbcType=INTEGER},
+      </if>
+      <if test="record.payInOrderId != null" >
+        pay_in_order_id = #{record.payInOrderId,jdbcType=INTEGER},
+      </if>
+      <if test="record.productId != null" >
+        product_id = #{record.productId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.productName != null" >
+        product_name = #{record.productName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.productPrice != null" >
+        product_price = #{record.productPrice,jdbcType=DECIMAL},
+      </if>
+      <if test="record.productCount != null" >
+        product_count = #{record.productCount,jdbcType=INTEGER},
+      </if>
+      <if test="record.remark != null" >
+        remark = #{record.remark,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map" >
+    update pay_in_order_detail
+    set pay_in_order_detail_id = #{record.payInOrderDetailId,jdbcType=INTEGER},
+      pay_in_order_id = #{record.payInOrderId,jdbcType=INTEGER},
+      product_id = #{record.productId,jdbcType=VARCHAR},
+      product_name = #{record.productName,jdbcType=VARCHAR},
+      product_price = #{record.productPrice,jdbcType=DECIMAL},
+      product_count = #{record.productCount,jdbcType=INTEGER},
+      remark = #{record.remark,jdbcType=VARCHAR}
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.zheng.pay.dao.model.PayInOrderDetail" >
+    update pay_in_order_detail
+    <set >
+      <if test="payInOrderId != null" >
+        pay_in_order_id = #{payInOrderId,jdbcType=INTEGER},
+      </if>
+      <if test="productId != null" >
+        product_id = #{productId,jdbcType=VARCHAR},
+      </if>
+      <if test="productName != null" >
+        product_name = #{productName,jdbcType=VARCHAR},
+      </if>
+      <if test="productPrice != null" >
+        product_price = #{productPrice,jdbcType=DECIMAL},
+      </if>
+      <if test="productCount != null" >
+        product_count = #{productCount,jdbcType=INTEGER},
+      </if>
+      <if test="remark != null" >
+        remark = #{remark,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where pay_in_order_detail_id = #{payInOrderDetailId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.zheng.pay.dao.model.PayInOrderDetail" >
+    update pay_in_order_detail
+    set pay_in_order_id = #{payInOrderId,jdbcType=INTEGER},
+      product_id = #{productId,jdbcType=VARCHAR},
+      product_name = #{productName,jdbcType=VARCHAR},
+      product_price = #{productPrice,jdbcType=DECIMAL},
+      product_count = #{productCount,jdbcType=INTEGER},
+      remark = #{remark,jdbcType=VARCHAR}
+    where pay_in_order_detail_id = #{payInOrderDetailId,jdbcType=INTEGER}
+  </update>
+  <cache type="org.mybatis.caches.ehcache.LoggingEhcache" />
+</mapper>

+ 30 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderMapper.java

@@ -0,0 +1,30 @@
+package com.zheng.pay.dao.mapper;
+
+import com.zheng.pay.dao.model.PayInOrder;
+import com.zheng.pay.dao.model.PayInOrderExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PayInOrderMapper {
+    int countByExample(PayInOrderExample example);
+
+    int deleteByExample(PayInOrderExample example);
+
+    int deleteByPrimaryKey(Integer payInOrderId);
+
+    int insert(PayInOrder record);
+
+    int insertSelective(PayInOrder record);
+
+    List<PayInOrder> selectByExample(PayInOrderExample example);
+
+    PayInOrder selectByPrimaryKey(Integer payInOrderId);
+
+    int updateByExampleSelective(@Param("record") PayInOrder record, @Param("example") PayInOrderExample example);
+
+    int updateByExample(@Param("record") PayInOrder record, @Param("example") PayInOrderExample example);
+
+    int updateByPrimaryKeySelective(PayInOrder record);
+
+    int updateByPrimaryKey(PayInOrder record);
+}

+ 237 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderMapper.xml

@@ -0,0 +1,237 @@
+<?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.zheng.pay.dao.mapper.PayInOrderMapper" >
+  <resultMap id="BaseResultMap" type="com.zheng.pay.dao.model.PayInOrder" >
+    <id column="pay_in_order_id" property="payInOrderId" jdbcType="INTEGER" />
+    <result column="pay_mch_id" property="payMchId" jdbcType="INTEGER" />
+    <result column="pay_vendor_id" property="payVendorId" jdbcType="INTEGER" />
+    <result column="amount" property="amount" jdbcType="DECIMAL" />
+    <result column="status" property="status" jdbcType="TINYINT" />
+    <result column="ctime" property="ctime" jdbcType="BIGINT" />
+  </resultMap>
+  <sql id="Example_Where_Clause" >
+    <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" >
+    <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" >
+    pay_in_order_id, pay_mch_id, pay_vendor_id, amount, status, ctime
+  </sql>
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.pay.dao.model.PayInOrderExample" >
+    select
+    <if test="distinct" >
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from pay_in_order
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null" >
+      order by ${orderByClause}
+    </if>
+    <if test="limit != null" >
+      <if test="offset != null" >
+        limit ${offset}, ${limit}
+      </if>
+      <if test="offset == null" >
+        limit ${limit}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from pay_in_order
+    where pay_in_order_id = #{payInOrderId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from pay_in_order
+    where pay_in_order_id = #{payInOrderId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.zheng.pay.dao.model.PayInOrderExample" >
+    delete from pay_in_order
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.zheng.pay.dao.model.PayInOrder" >
+    insert into pay_in_order (pay_in_order_id, pay_mch_id, pay_vendor_id, 
+      amount, status, ctime
+      )
+    values (#{payInOrderId,jdbcType=INTEGER}, #{payMchId,jdbcType=INTEGER}, #{payVendorId,jdbcType=INTEGER}, 
+      #{amount,jdbcType=DECIMAL}, #{status,jdbcType=TINYINT}, #{ctime,jdbcType=BIGINT}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.zheng.pay.dao.model.PayInOrder" >
+    insert into pay_in_order
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="payInOrderId != null" >
+        pay_in_order_id,
+      </if>
+      <if test="payMchId != null" >
+        pay_mch_id,
+      </if>
+      <if test="payVendorId != null" >
+        pay_vendor_id,
+      </if>
+      <if test="amount != null" >
+        amount,
+      </if>
+      <if test="status != null" >
+        status,
+      </if>
+      <if test="ctime != null" >
+        ctime,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="payInOrderId != null" >
+        #{payInOrderId,jdbcType=INTEGER},
+      </if>
+      <if test="payMchId != null" >
+        #{payMchId,jdbcType=INTEGER},
+      </if>
+      <if test="payVendorId != null" >
+        #{payVendorId,jdbcType=INTEGER},
+      </if>
+      <if test="amount != null" >
+        #{amount,jdbcType=DECIMAL},
+      </if>
+      <if test="status != null" >
+        #{status,jdbcType=TINYINT},
+      </if>
+      <if test="ctime != null" >
+        #{ctime,jdbcType=BIGINT},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.zheng.pay.dao.model.PayInOrderExample" resultType="java.lang.Integer" >
+    select count(*) from pay_in_order
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map" >
+    update pay_in_order
+    <set >
+      <if test="record.payInOrderId != null" >
+        pay_in_order_id = #{record.payInOrderId,jdbcType=INTEGER},
+      </if>
+      <if test="record.payMchId != null" >
+        pay_mch_id = #{record.payMchId,jdbcType=INTEGER},
+      </if>
+      <if test="record.payVendorId != null" >
+        pay_vendor_id = #{record.payVendorId,jdbcType=INTEGER},
+      </if>
+      <if test="record.amount != null" >
+        amount = #{record.amount,jdbcType=DECIMAL},
+      </if>
+      <if test="record.status != null" >
+        status = #{record.status,jdbcType=TINYINT},
+      </if>
+      <if test="record.ctime != null" >
+        ctime = #{record.ctime,jdbcType=BIGINT},
+      </if>
+    </set>
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map" >
+    update pay_in_order
+    set pay_in_order_id = #{record.payInOrderId,jdbcType=INTEGER},
+      pay_mch_id = #{record.payMchId,jdbcType=INTEGER},
+      pay_vendor_id = #{record.payVendorId,jdbcType=INTEGER},
+      amount = #{record.amount,jdbcType=DECIMAL},
+      status = #{record.status,jdbcType=TINYINT},
+      ctime = #{record.ctime,jdbcType=BIGINT}
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.zheng.pay.dao.model.PayInOrder" >
+    update pay_in_order
+    <set >
+      <if test="payMchId != null" >
+        pay_mch_id = #{payMchId,jdbcType=INTEGER},
+      </if>
+      <if test="payVendorId != null" >
+        pay_vendor_id = #{payVendorId,jdbcType=INTEGER},
+      </if>
+      <if test="amount != null" >
+        amount = #{amount,jdbcType=DECIMAL},
+      </if>
+      <if test="status != null" >
+        status = #{status,jdbcType=TINYINT},
+      </if>
+      <if test="ctime != null" >
+        ctime = #{ctime,jdbcType=BIGINT},
+      </if>
+    </set>
+    where pay_in_order_id = #{payInOrderId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.zheng.pay.dao.model.PayInOrder" >
+    update pay_in_order
+    set pay_mch_id = #{payMchId,jdbcType=INTEGER},
+      pay_vendor_id = #{payVendorId,jdbcType=INTEGER},
+      amount = #{amount,jdbcType=DECIMAL},
+      status = #{status,jdbcType=TINYINT},
+      ctime = #{ctime,jdbcType=BIGINT}
+    where pay_in_order_id = #{payInOrderId,jdbcType=INTEGER}
+  </update>
+  <cache type="org.mybatis.caches.ehcache.LoggingEhcache" />
+</mapper>

+ 30 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayMchMapper.java

@@ -0,0 +1,30 @@
+package com.zheng.pay.dao.mapper;
+
+import com.zheng.pay.dao.model.PayMch;
+import com.zheng.pay.dao.model.PayMchExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PayMchMapper {
+    int countByExample(PayMchExample example);
+
+    int deleteByExample(PayMchExample example);
+
+    int deleteByPrimaryKey(Integer payMchId);
+
+    int insert(PayMch record);
+
+    int insertSelective(PayMch record);
+
+    List<PayMch> selectByExample(PayMchExample example);
+
+    PayMch selectByPrimaryKey(Integer payMchId);
+
+    int updateByExampleSelective(@Param("record") PayMch record, @Param("example") PayMchExample example);
+
+    int updateByExample(@Param("record") PayMch record, @Param("example") PayMchExample example);
+
+    int updateByPrimaryKeySelective(PayMch record);
+
+    int updateByPrimaryKey(PayMch record);
+}

+ 220 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayMchMapper.xml

@@ -0,0 +1,220 @@
+<?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.zheng.pay.dao.mapper.PayMchMapper" >
+  <resultMap id="BaseResultMap" type="com.zheng.pay.dao.model.PayMch" >
+    <id column="pay_mch_id" property="payMchId" jdbcType="INTEGER" />
+    <result column="mch_id" property="mchId" jdbcType="VARCHAR" />
+    <result column="name" property="name" jdbcType="VARCHAR" />
+    <result column="reqKey" property="reqkey" jdbcType="VARCHAR" />
+    <result column="resKey" property="reskey" jdbcType="VARCHAR" />
+  </resultMap>
+  <sql id="Example_Where_Clause" >
+    <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" >
+    <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" >
+    pay_mch_id, mch_id, name, reqKey, resKey
+  </sql>
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.pay.dao.model.PayMchExample" >
+    select
+    <if test="distinct" >
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from pay_mch
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null" >
+      order by ${orderByClause}
+    </if>
+    <if test="limit != null" >
+      <if test="offset != null" >
+        limit ${offset}, ${limit}
+      </if>
+      <if test="offset == null" >
+        limit ${limit}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from pay_mch
+    where pay_mch_id = #{payMchId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from pay_mch
+    where pay_mch_id = #{payMchId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.zheng.pay.dao.model.PayMchExample" >
+    delete from pay_mch
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.zheng.pay.dao.model.PayMch" >
+    insert into pay_mch (pay_mch_id, mch_id, name, 
+      reqKey, resKey)
+    values (#{payMchId,jdbcType=INTEGER}, #{mchId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
+      #{reqkey,jdbcType=VARCHAR}, #{reskey,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.zheng.pay.dao.model.PayMch" >
+    insert into pay_mch
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="payMchId != null" >
+        pay_mch_id,
+      </if>
+      <if test="mchId != null" >
+        mch_id,
+      </if>
+      <if test="name != null" >
+        name,
+      </if>
+      <if test="reqkey != null" >
+        reqKey,
+      </if>
+      <if test="reskey != null" >
+        resKey,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="payMchId != null" >
+        #{payMchId,jdbcType=INTEGER},
+      </if>
+      <if test="mchId != null" >
+        #{mchId,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null" >
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="reqkey != null" >
+        #{reqkey,jdbcType=VARCHAR},
+      </if>
+      <if test="reskey != null" >
+        #{reskey,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.zheng.pay.dao.model.PayMchExample" resultType="java.lang.Integer" >
+    select count(*) from pay_mch
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map" >
+    update pay_mch
+    <set >
+      <if test="record.payMchId != null" >
+        pay_mch_id = #{record.payMchId,jdbcType=INTEGER},
+      </if>
+      <if test="record.mchId != null" >
+        mch_id = #{record.mchId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.name != null" >
+        name = #{record.name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.reqkey != null" >
+        reqKey = #{record.reqkey,jdbcType=VARCHAR},
+      </if>
+      <if test="record.reskey != null" >
+        resKey = #{record.reskey,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map" >
+    update pay_mch
+    set pay_mch_id = #{record.payMchId,jdbcType=INTEGER},
+      mch_id = #{record.mchId,jdbcType=VARCHAR},
+      name = #{record.name,jdbcType=VARCHAR},
+      reqKey = #{record.reqkey,jdbcType=VARCHAR},
+      resKey = #{record.reskey,jdbcType=VARCHAR}
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.zheng.pay.dao.model.PayMch" >
+    update pay_mch
+    <set >
+      <if test="mchId != null" >
+        mch_id = #{mchId,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null" >
+        name = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="reqkey != null" >
+        reqKey = #{reqkey,jdbcType=VARCHAR},
+      </if>
+      <if test="reskey != null" >
+        resKey = #{reskey,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where pay_mch_id = #{payMchId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.zheng.pay.dao.model.PayMch" >
+    update pay_mch
+    set mch_id = #{mchId,jdbcType=VARCHAR},
+      name = #{name,jdbcType=VARCHAR},
+      reqKey = #{reqkey,jdbcType=VARCHAR},
+      resKey = #{reskey,jdbcType=VARCHAR}
+    where pay_mch_id = #{payMchId,jdbcType=INTEGER}
+  </update>
+  <cache type="org.mybatis.caches.ehcache.LoggingEhcache" />
+</mapper>

+ 30 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderDetailMapper.java

@@ -0,0 +1,30 @@
+package com.zheng.pay.dao.mapper;
+
+import com.zheng.pay.dao.model.PayOutOrderDetail;
+import com.zheng.pay.dao.model.PayOutOrderDetailExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PayOutOrderDetailMapper {
+    int countByExample(PayOutOrderDetailExample example);
+
+    int deleteByExample(PayOutOrderDetailExample example);
+
+    int deleteByPrimaryKey(Integer payOutOrderDetailId);
+
+    int insert(PayOutOrderDetail record);
+
+    int insertSelective(PayOutOrderDetail record);
+
+    List<PayOutOrderDetail> selectByExample(PayOutOrderDetailExample example);
+
+    PayOutOrderDetail selectByPrimaryKey(Integer payOutOrderDetailId);
+
+    int updateByExampleSelective(@Param("record") PayOutOrderDetail record, @Param("example") PayOutOrderDetailExample example);
+
+    int updateByExample(@Param("record") PayOutOrderDetail record, @Param("example") PayOutOrderDetailExample example);
+
+    int updateByPrimaryKeySelective(PayOutOrderDetail record);
+
+    int updateByPrimaryKey(PayOutOrderDetail record);
+}

+ 190 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderDetailMapper.xml

@@ -0,0 +1,190 @@
+<?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.zheng.pay.dao.mapper.PayOutOrderDetailMapper" >
+  <resultMap id="BaseResultMap" type="com.zheng.pay.dao.model.PayOutOrderDetail" >
+    <id column="pay_out_order_detail_id" property="payOutOrderDetailId" jdbcType="INTEGER" />
+    <result column="pay_out_order_id" property="payOutOrderId" jdbcType="INTEGER" />
+    <result column="remark" property="remark" jdbcType="VARCHAR" />
+  </resultMap>
+  <sql id="Example_Where_Clause" >
+    <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" >
+    <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" >
+    pay_out_order_detail_id, pay_out_order_id, remark
+  </sql>
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.pay.dao.model.PayOutOrderDetailExample" >
+    select
+    <if test="distinct" >
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from pay_out_order_detail
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null" >
+      order by ${orderByClause}
+    </if>
+    <if test="limit != null" >
+      <if test="offset != null" >
+        limit ${offset}, ${limit}
+      </if>
+      <if test="offset == null" >
+        limit ${limit}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from pay_out_order_detail
+    where pay_out_order_detail_id = #{payOutOrderDetailId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from pay_out_order_detail
+    where pay_out_order_detail_id = #{payOutOrderDetailId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.zheng.pay.dao.model.PayOutOrderDetailExample" >
+    delete from pay_out_order_detail
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.zheng.pay.dao.model.PayOutOrderDetail" >
+    insert into pay_out_order_detail (pay_out_order_detail_id, pay_out_order_id, 
+      remark)
+    values (#{payOutOrderDetailId,jdbcType=INTEGER}, #{payOutOrderId,jdbcType=INTEGER}, 
+      #{remark,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.zheng.pay.dao.model.PayOutOrderDetail" >
+    insert into pay_out_order_detail
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="payOutOrderDetailId != null" >
+        pay_out_order_detail_id,
+      </if>
+      <if test="payOutOrderId != null" >
+        pay_out_order_id,
+      </if>
+      <if test="remark != null" >
+        remark,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="payOutOrderDetailId != null" >
+        #{payOutOrderDetailId,jdbcType=INTEGER},
+      </if>
+      <if test="payOutOrderId != null" >
+        #{payOutOrderId,jdbcType=INTEGER},
+      </if>
+      <if test="remark != null" >
+        #{remark,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.zheng.pay.dao.model.PayOutOrderDetailExample" resultType="java.lang.Integer" >
+    select count(*) from pay_out_order_detail
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map" >
+    update pay_out_order_detail
+    <set >
+      <if test="record.payOutOrderDetailId != null" >
+        pay_out_order_detail_id = #{record.payOutOrderDetailId,jdbcType=INTEGER},
+      </if>
+      <if test="record.payOutOrderId != null" >
+        pay_out_order_id = #{record.payOutOrderId,jdbcType=INTEGER},
+      </if>
+      <if test="record.remark != null" >
+        remark = #{record.remark,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map" >
+    update pay_out_order_detail
+    set pay_out_order_detail_id = #{record.payOutOrderDetailId,jdbcType=INTEGER},
+      pay_out_order_id = #{record.payOutOrderId,jdbcType=INTEGER},
+      remark = #{record.remark,jdbcType=VARCHAR}
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.zheng.pay.dao.model.PayOutOrderDetail" >
+    update pay_out_order_detail
+    <set >
+      <if test="payOutOrderId != null" >
+        pay_out_order_id = #{payOutOrderId,jdbcType=INTEGER},
+      </if>
+      <if test="remark != null" >
+        remark = #{remark,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where pay_out_order_detail_id = #{payOutOrderDetailId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.zheng.pay.dao.model.PayOutOrderDetail" >
+    update pay_out_order_detail
+    set pay_out_order_id = #{payOutOrderId,jdbcType=INTEGER},
+      remark = #{remark,jdbcType=VARCHAR}
+    where pay_out_order_detail_id = #{payOutOrderDetailId,jdbcType=INTEGER}
+  </update>
+  <cache type="org.mybatis.caches.ehcache.LoggingEhcache" />
+</mapper>

+ 30 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderMapper.java

@@ -0,0 +1,30 @@
+package com.zheng.pay.dao.mapper;
+
+import com.zheng.pay.dao.model.PayOutOrder;
+import com.zheng.pay.dao.model.PayOutOrderExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PayOutOrderMapper {
+    int countByExample(PayOutOrderExample example);
+
+    int deleteByExample(PayOutOrderExample example);
+
+    int deleteByPrimaryKey(Integer payOutOrderId);
+
+    int insert(PayOutOrder record);
+
+    int insertSelective(PayOutOrder record);
+
+    List<PayOutOrder> selectByExample(PayOutOrderExample example);
+
+    PayOutOrder selectByPrimaryKey(Integer payOutOrderId);
+
+    int updateByExampleSelective(@Param("record") PayOutOrder record, @Param("example") PayOutOrderExample example);
+
+    int updateByExample(@Param("record") PayOutOrder record, @Param("example") PayOutOrderExample example);
+
+    int updateByPrimaryKeySelective(PayOutOrder record);
+
+    int updateByPrimaryKey(PayOutOrder record);
+}

+ 237 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderMapper.xml

@@ -0,0 +1,237 @@
+<?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.zheng.pay.dao.mapper.PayOutOrderMapper" >
+  <resultMap id="BaseResultMap" type="com.zheng.pay.dao.model.PayOutOrder" >
+    <id column="pay_out_order_id" property="payOutOrderId" jdbcType="INTEGER" />
+    <result column="pay_mch_id" property="payMchId" jdbcType="INTEGER" />
+    <result column="pay_vendor_id" property="payVendorId" jdbcType="INTEGER" />
+    <result column="amount" property="amount" jdbcType="DECIMAL" />
+    <result column="status" property="status" jdbcType="TINYINT" />
+    <result column="ctime" property="ctime" jdbcType="BIGINT" />
+  </resultMap>
+  <sql id="Example_Where_Clause" >
+    <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" >
+    <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" >
+    pay_out_order_id, pay_mch_id, pay_vendor_id, amount, status, ctime
+  </sql>
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.pay.dao.model.PayOutOrderExample" >
+    select
+    <if test="distinct" >
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from pay_out_order
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null" >
+      order by ${orderByClause}
+    </if>
+    <if test="limit != null" >
+      <if test="offset != null" >
+        limit ${offset}, ${limit}
+      </if>
+      <if test="offset == null" >
+        limit ${limit}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from pay_out_order
+    where pay_out_order_id = #{payOutOrderId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from pay_out_order
+    where pay_out_order_id = #{payOutOrderId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.zheng.pay.dao.model.PayOutOrderExample" >
+    delete from pay_out_order
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.zheng.pay.dao.model.PayOutOrder" >
+    insert into pay_out_order (pay_out_order_id, pay_mch_id, pay_vendor_id, 
+      amount, status, ctime
+      )
+    values (#{payOutOrderId,jdbcType=INTEGER}, #{payMchId,jdbcType=INTEGER}, #{payVendorId,jdbcType=INTEGER}, 
+      #{amount,jdbcType=DECIMAL}, #{status,jdbcType=TINYINT}, #{ctime,jdbcType=BIGINT}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.zheng.pay.dao.model.PayOutOrder" >
+    insert into pay_out_order
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="payOutOrderId != null" >
+        pay_out_order_id,
+      </if>
+      <if test="payMchId != null" >
+        pay_mch_id,
+      </if>
+      <if test="payVendorId != null" >
+        pay_vendor_id,
+      </if>
+      <if test="amount != null" >
+        amount,
+      </if>
+      <if test="status != null" >
+        status,
+      </if>
+      <if test="ctime != null" >
+        ctime,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="payOutOrderId != null" >
+        #{payOutOrderId,jdbcType=INTEGER},
+      </if>
+      <if test="payMchId != null" >
+        #{payMchId,jdbcType=INTEGER},
+      </if>
+      <if test="payVendorId != null" >
+        #{payVendorId,jdbcType=INTEGER},
+      </if>
+      <if test="amount != null" >
+        #{amount,jdbcType=DECIMAL},
+      </if>
+      <if test="status != null" >
+        #{status,jdbcType=TINYINT},
+      </if>
+      <if test="ctime != null" >
+        #{ctime,jdbcType=BIGINT},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.zheng.pay.dao.model.PayOutOrderExample" resultType="java.lang.Integer" >
+    select count(*) from pay_out_order
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map" >
+    update pay_out_order
+    <set >
+      <if test="record.payOutOrderId != null" >
+        pay_out_order_id = #{record.payOutOrderId,jdbcType=INTEGER},
+      </if>
+      <if test="record.payMchId != null" >
+        pay_mch_id = #{record.payMchId,jdbcType=INTEGER},
+      </if>
+      <if test="record.payVendorId != null" >
+        pay_vendor_id = #{record.payVendorId,jdbcType=INTEGER},
+      </if>
+      <if test="record.amount != null" >
+        amount = #{record.amount,jdbcType=DECIMAL},
+      </if>
+      <if test="record.status != null" >
+        status = #{record.status,jdbcType=TINYINT},
+      </if>
+      <if test="record.ctime != null" >
+        ctime = #{record.ctime,jdbcType=BIGINT},
+      </if>
+    </set>
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map" >
+    update pay_out_order
+    set pay_out_order_id = #{record.payOutOrderId,jdbcType=INTEGER},
+      pay_mch_id = #{record.payMchId,jdbcType=INTEGER},
+      pay_vendor_id = #{record.payVendorId,jdbcType=INTEGER},
+      amount = #{record.amount,jdbcType=DECIMAL},
+      status = #{record.status,jdbcType=TINYINT},
+      ctime = #{record.ctime,jdbcType=BIGINT}
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.zheng.pay.dao.model.PayOutOrder" >
+    update pay_out_order
+    <set >
+      <if test="payMchId != null" >
+        pay_mch_id = #{payMchId,jdbcType=INTEGER},
+      </if>
+      <if test="payVendorId != null" >
+        pay_vendor_id = #{payVendorId,jdbcType=INTEGER},
+      </if>
+      <if test="amount != null" >
+        amount = #{amount,jdbcType=DECIMAL},
+      </if>
+      <if test="status != null" >
+        status = #{status,jdbcType=TINYINT},
+      </if>
+      <if test="ctime != null" >
+        ctime = #{ctime,jdbcType=BIGINT},
+      </if>
+    </set>
+    where pay_out_order_id = #{payOutOrderId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.zheng.pay.dao.model.PayOutOrder" >
+    update pay_out_order
+    set pay_mch_id = #{payMchId,jdbcType=INTEGER},
+      pay_vendor_id = #{payVendorId,jdbcType=INTEGER},
+      amount = #{amount,jdbcType=DECIMAL},
+      status = #{status,jdbcType=TINYINT},
+      ctime = #{ctime,jdbcType=BIGINT}
+    where pay_out_order_id = #{payOutOrderId,jdbcType=INTEGER}
+  </update>
+  <cache type="org.mybatis.caches.ehcache.LoggingEhcache" />
+</mapper>

+ 30 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayPayMapper.java

@@ -0,0 +1,30 @@
+package com.zheng.pay.dao.mapper;
+
+import com.zheng.pay.dao.model.PayPay;
+import com.zheng.pay.dao.model.PayPayExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PayPayMapper {
+    int countByExample(PayPayExample example);
+
+    int deleteByExample(PayPayExample example);
+
+    int deleteByPrimaryKey(Integer payPayId);
+
+    int insert(PayPay record);
+
+    int insertSelective(PayPay record);
+
+    List<PayPay> selectByExample(PayPayExample example);
+
+    PayPay selectByPrimaryKey(Integer payPayId);
+
+    int updateByExampleSelective(@Param("record") PayPay record, @Param("example") PayPayExample example);
+
+    int updateByExample(@Param("record") PayPay record, @Param("example") PayPayExample example);
+
+    int updateByPrimaryKeySelective(PayPay record);
+
+    int updateByPrimaryKey(PayPay record);
+}

+ 190 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayPayMapper.xml

@@ -0,0 +1,190 @@
+<?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.zheng.pay.dao.mapper.PayPayMapper" >
+  <resultMap id="BaseResultMap" type="com.zheng.pay.dao.model.PayPay" >
+    <id column="pay_pay_id" property="payPayId" jdbcType="INTEGER" />
+    <result column="pay_type_id" property="payTypeId" jdbcType="INTEGER" />
+    <result column="param" property="param" jdbcType="VARCHAR" />
+  </resultMap>
+  <sql id="Example_Where_Clause" >
+    <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" >
+    <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" >
+    pay_pay_id, pay_type_id, param
+  </sql>
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.pay.dao.model.PayPayExample" >
+    select
+    <if test="distinct" >
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from pay_pay
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null" >
+      order by ${orderByClause}
+    </if>
+    <if test="limit != null" >
+      <if test="offset != null" >
+        limit ${offset}, ${limit}
+      </if>
+      <if test="offset == null" >
+        limit ${limit}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from pay_pay
+    where pay_pay_id = #{payPayId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from pay_pay
+    where pay_pay_id = #{payPayId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.zheng.pay.dao.model.PayPayExample" >
+    delete from pay_pay
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.zheng.pay.dao.model.PayPay" >
+    insert into pay_pay (pay_pay_id, pay_type_id, param
+      )
+    values (#{payPayId,jdbcType=INTEGER}, #{payTypeId,jdbcType=INTEGER}, #{param,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.zheng.pay.dao.model.PayPay" >
+    insert into pay_pay
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="payPayId != null" >
+        pay_pay_id,
+      </if>
+      <if test="payTypeId != null" >
+        pay_type_id,
+      </if>
+      <if test="param != null" >
+        param,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="payPayId != null" >
+        #{payPayId,jdbcType=INTEGER},
+      </if>
+      <if test="payTypeId != null" >
+        #{payTypeId,jdbcType=INTEGER},
+      </if>
+      <if test="param != null" >
+        #{param,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.zheng.pay.dao.model.PayPayExample" resultType="java.lang.Integer" >
+    select count(*) from pay_pay
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map" >
+    update pay_pay
+    <set >
+      <if test="record.payPayId != null" >
+        pay_pay_id = #{record.payPayId,jdbcType=INTEGER},
+      </if>
+      <if test="record.payTypeId != null" >
+        pay_type_id = #{record.payTypeId,jdbcType=INTEGER},
+      </if>
+      <if test="record.param != null" >
+        param = #{record.param,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map" >
+    update pay_pay
+    set pay_pay_id = #{record.payPayId,jdbcType=INTEGER},
+      pay_type_id = #{record.payTypeId,jdbcType=INTEGER},
+      param = #{record.param,jdbcType=VARCHAR}
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.zheng.pay.dao.model.PayPay" >
+    update pay_pay
+    <set >
+      <if test="payTypeId != null" >
+        pay_type_id = #{payTypeId,jdbcType=INTEGER},
+      </if>
+      <if test="param != null" >
+        param = #{param,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where pay_pay_id = #{payPayId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.zheng.pay.dao.model.PayPay" >
+    update pay_pay
+    set pay_type_id = #{payTypeId,jdbcType=INTEGER},
+      param = #{param,jdbcType=VARCHAR}
+    where pay_pay_id = #{payPayId,jdbcType=INTEGER}
+  </update>
+  <cache type="org.mybatis.caches.ehcache.LoggingEhcache" />
+</mapper>

+ 30 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayTypeMapper.java

@@ -0,0 +1,30 @@
+package com.zheng.pay.dao.mapper;
+
+import com.zheng.pay.dao.model.PayType;
+import com.zheng.pay.dao.model.PayTypeExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PayTypeMapper {
+    int countByExample(PayTypeExample example);
+
+    int deleteByExample(PayTypeExample example);
+
+    int deleteByPrimaryKey(Integer payTypeId);
+
+    int insert(PayType record);
+
+    int insertSelective(PayType record);
+
+    List<PayType> selectByExample(PayTypeExample example);
+
+    PayType selectByPrimaryKey(Integer payTypeId);
+
+    int updateByExampleSelective(@Param("record") PayType record, @Param("example") PayTypeExample example);
+
+    int updateByExample(@Param("record") PayType record, @Param("example") PayTypeExample example);
+
+    int updateByPrimaryKeySelective(PayType record);
+
+    int updateByPrimaryKey(PayType record);
+}

+ 190 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayTypeMapper.xml

@@ -0,0 +1,190 @@
+<?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.zheng.pay.dao.mapper.PayTypeMapper" >
+  <resultMap id="BaseResultMap" type="com.zheng.pay.dao.model.PayType" >
+    <id column="pay_type_id" property="payTypeId" jdbcType="INTEGER" />
+    <result column="pay_mch_id" property="payMchId" jdbcType="INTEGER" />
+    <result column="pay_vendor_id" property="payVendorId" jdbcType="INTEGER" />
+  </resultMap>
+  <sql id="Example_Where_Clause" >
+    <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" >
+    <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" >
+    pay_type_id, pay_mch_id, pay_vendor_id
+  </sql>
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.pay.dao.model.PayTypeExample" >
+    select
+    <if test="distinct" >
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from pay_type
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null" >
+      order by ${orderByClause}
+    </if>
+    <if test="limit != null" >
+      <if test="offset != null" >
+        limit ${offset}, ${limit}
+      </if>
+      <if test="offset == null" >
+        limit ${limit}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from pay_type
+    where pay_type_id = #{payTypeId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from pay_type
+    where pay_type_id = #{payTypeId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.zheng.pay.dao.model.PayTypeExample" >
+    delete from pay_type
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.zheng.pay.dao.model.PayType" >
+    insert into pay_type (pay_type_id, pay_mch_id, pay_vendor_id
+      )
+    values (#{payTypeId,jdbcType=INTEGER}, #{payMchId,jdbcType=INTEGER}, #{payVendorId,jdbcType=INTEGER}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.zheng.pay.dao.model.PayType" >
+    insert into pay_type
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="payTypeId != null" >
+        pay_type_id,
+      </if>
+      <if test="payMchId != null" >
+        pay_mch_id,
+      </if>
+      <if test="payVendorId != null" >
+        pay_vendor_id,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="payTypeId != null" >
+        #{payTypeId,jdbcType=INTEGER},
+      </if>
+      <if test="payMchId != null" >
+        #{payMchId,jdbcType=INTEGER},
+      </if>
+      <if test="payVendorId != null" >
+        #{payVendorId,jdbcType=INTEGER},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.zheng.pay.dao.model.PayTypeExample" resultType="java.lang.Integer" >
+    select count(*) from pay_type
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map" >
+    update pay_type
+    <set >
+      <if test="record.payTypeId != null" >
+        pay_type_id = #{record.payTypeId,jdbcType=INTEGER},
+      </if>
+      <if test="record.payMchId != null" >
+        pay_mch_id = #{record.payMchId,jdbcType=INTEGER},
+      </if>
+      <if test="record.payVendorId != null" >
+        pay_vendor_id = #{record.payVendorId,jdbcType=INTEGER},
+      </if>
+    </set>
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map" >
+    update pay_type
+    set pay_type_id = #{record.payTypeId,jdbcType=INTEGER},
+      pay_mch_id = #{record.payMchId,jdbcType=INTEGER},
+      pay_vendor_id = #{record.payVendorId,jdbcType=INTEGER}
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.zheng.pay.dao.model.PayType" >
+    update pay_type
+    <set >
+      <if test="payMchId != null" >
+        pay_mch_id = #{payMchId,jdbcType=INTEGER},
+      </if>
+      <if test="payVendorId != null" >
+        pay_vendor_id = #{payVendorId,jdbcType=INTEGER},
+      </if>
+    </set>
+    where pay_type_id = #{payTypeId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.zheng.pay.dao.model.PayType" >
+    update pay_type
+    set pay_mch_id = #{payMchId,jdbcType=INTEGER},
+      pay_vendor_id = #{payVendorId,jdbcType=INTEGER}
+    where pay_type_id = #{payTypeId,jdbcType=INTEGER}
+  </update>
+  <cache type="org.mybatis.caches.ehcache.LoggingEhcache" />
+</mapper>

+ 30 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVendorMapper.java

@@ -0,0 +1,30 @@
+package com.zheng.pay.dao.mapper;
+
+import com.zheng.pay.dao.model.PayVendor;
+import com.zheng.pay.dao.model.PayVendorExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PayVendorMapper {
+    int countByExample(PayVendorExample example);
+
+    int deleteByExample(PayVendorExample example);
+
+    int deleteByPrimaryKey(Integer payVendorId);
+
+    int insert(PayVendor record);
+
+    int insertSelective(PayVendor record);
+
+    List<PayVendor> selectByExample(PayVendorExample example);
+
+    PayVendor selectByPrimaryKey(Integer payVendorId);
+
+    int updateByExampleSelective(@Param("record") PayVendor record, @Param("example") PayVendorExample example);
+
+    int updateByExample(@Param("record") PayVendor record, @Param("example") PayVendorExample example);
+
+    int updateByPrimaryKeySelective(PayVendor record);
+
+    int updateByPrimaryKey(PayVendor record);
+}

+ 220 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVendorMapper.xml

@@ -0,0 +1,220 @@
+<?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.zheng.pay.dao.mapper.PayVendorMapper" >
+  <resultMap id="BaseResultMap" type="com.zheng.pay.dao.model.PayVendor" >
+    <id column="pay_vendor_id" property="payVendorId" jdbcType="INTEGER" />
+    <result column="name" property="name" jdbcType="VARCHAR" />
+    <result column="appid" property="appid" jdbcType="VARCHAR" />
+    <result column="appsecret" property="appsecret" jdbcType="VARCHAR" />
+    <result column="config" property="config" jdbcType="VARCHAR" />
+  </resultMap>
+  <sql id="Example_Where_Clause" >
+    <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" >
+    <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" >
+    pay_vendor_id, name, appid, appsecret, config
+  </sql>
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.pay.dao.model.PayVendorExample" >
+    select
+    <if test="distinct" >
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from pay_vendor
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null" >
+      order by ${orderByClause}
+    </if>
+    <if test="limit != null" >
+      <if test="offset != null" >
+        limit ${offset}, ${limit}
+      </if>
+      <if test="offset == null" >
+        limit ${limit}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from pay_vendor
+    where pay_vendor_id = #{payVendorId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from pay_vendor
+    where pay_vendor_id = #{payVendorId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.zheng.pay.dao.model.PayVendorExample" >
+    delete from pay_vendor
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.zheng.pay.dao.model.PayVendor" >
+    insert into pay_vendor (pay_vendor_id, name, appid, 
+      appsecret, config)
+    values (#{payVendorId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR}, 
+      #{appsecret,jdbcType=VARCHAR}, #{config,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.zheng.pay.dao.model.PayVendor" >
+    insert into pay_vendor
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="payVendorId != null" >
+        pay_vendor_id,
+      </if>
+      <if test="name != null" >
+        name,
+      </if>
+      <if test="appid != null" >
+        appid,
+      </if>
+      <if test="appsecret != null" >
+        appsecret,
+      </if>
+      <if test="config != null" >
+        config,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="payVendorId != null" >
+        #{payVendorId,jdbcType=INTEGER},
+      </if>
+      <if test="name != null" >
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="appid != null" >
+        #{appid,jdbcType=VARCHAR},
+      </if>
+      <if test="appsecret != null" >
+        #{appsecret,jdbcType=VARCHAR},
+      </if>
+      <if test="config != null" >
+        #{config,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.zheng.pay.dao.model.PayVendorExample" resultType="java.lang.Integer" >
+    select count(*) from pay_vendor
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map" >
+    update pay_vendor
+    <set >
+      <if test="record.payVendorId != null" >
+        pay_vendor_id = #{record.payVendorId,jdbcType=INTEGER},
+      </if>
+      <if test="record.name != null" >
+        name = #{record.name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.appid != null" >
+        appid = #{record.appid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.appsecret != null" >
+        appsecret = #{record.appsecret,jdbcType=VARCHAR},
+      </if>
+      <if test="record.config != null" >
+        config = #{record.config,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map" >
+    update pay_vendor
+    set pay_vendor_id = #{record.payVendorId,jdbcType=INTEGER},
+      name = #{record.name,jdbcType=VARCHAR},
+      appid = #{record.appid,jdbcType=VARCHAR},
+      appsecret = #{record.appsecret,jdbcType=VARCHAR},
+      config = #{record.config,jdbcType=VARCHAR}
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.zheng.pay.dao.model.PayVendor" >
+    update pay_vendor
+    <set >
+      <if test="name != null" >
+        name = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="appid != null" >
+        appid = #{appid,jdbcType=VARCHAR},
+      </if>
+      <if test="appsecret != null" >
+        appsecret = #{appsecret,jdbcType=VARCHAR},
+      </if>
+      <if test="config != null" >
+        config = #{config,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where pay_vendor_id = #{payVendorId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.zheng.pay.dao.model.PayVendor" >
+    update pay_vendor
+    set name = #{name,jdbcType=VARCHAR},
+      appid = #{appid,jdbcType=VARCHAR},
+      appsecret = #{appsecret,jdbcType=VARCHAR},
+      config = #{config,jdbcType=VARCHAR}
+    where pay_vendor_id = #{payVendorId,jdbcType=INTEGER}
+  </update>
+  <cache type="org.mybatis.caches.ehcache.LoggingEhcache" />
+</mapper>

+ 30 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVestMapper.java

@@ -0,0 +1,30 @@
+package com.zheng.pay.dao.mapper;
+
+import com.zheng.pay.dao.model.PayVest;
+import com.zheng.pay.dao.model.PayVestExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PayVestMapper {
+    int countByExample(PayVestExample example);
+
+    int deleteByExample(PayVestExample example);
+
+    int deleteByPrimaryKey(Integer payVestId);
+
+    int insert(PayVest record);
+
+    int insertSelective(PayVest record);
+
+    List<PayVest> selectByExample(PayVestExample example);
+
+    PayVest selectByPrimaryKey(Integer payVestId);
+
+    int updateByExampleSelective(@Param("record") PayVest record, @Param("example") PayVestExample example);
+
+    int updateByExample(@Param("record") PayVest record, @Param("example") PayVestExample example);
+
+    int updateByPrimaryKeySelective(PayVest record);
+
+    int updateByPrimaryKey(PayVest record);
+}

+ 205 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVestMapper.xml

@@ -0,0 +1,205 @@
+<?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.zheng.pay.dao.mapper.PayVestMapper" >
+  <resultMap id="BaseResultMap" type="com.zheng.pay.dao.model.PayVest" >
+    <id column="pay_vest_id" property="payVestId" jdbcType="INTEGER" />
+    <result column="pay_type_id" property="payTypeId" jdbcType="INTEGER" />
+    <result column="prefix" property="prefix" jdbcType="VARCHAR" />
+    <result column="param" property="param" jdbcType="VARCHAR" />
+  </resultMap>
+  <sql id="Example_Where_Clause" >
+    <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" >
+    <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" >
+    pay_vest_id, pay_type_id, prefix, param
+  </sql>
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.pay.dao.model.PayVestExample" >
+    select
+    <if test="distinct" >
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from pay_vest
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null" >
+      order by ${orderByClause}
+    </if>
+    <if test="limit != null" >
+      <if test="offset != null" >
+        limit ${offset}, ${limit}
+      </if>
+      <if test="offset == null" >
+        limit ${limit}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from pay_vest
+    where pay_vest_id = #{payVestId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from pay_vest
+    where pay_vest_id = #{payVestId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.zheng.pay.dao.model.PayVestExample" >
+    delete from pay_vest
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.zheng.pay.dao.model.PayVest" >
+    insert into pay_vest (pay_vest_id, pay_type_id, prefix, 
+      param)
+    values (#{payVestId,jdbcType=INTEGER}, #{payTypeId,jdbcType=INTEGER}, #{prefix,jdbcType=VARCHAR}, 
+      #{param,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.zheng.pay.dao.model.PayVest" >
+    insert into pay_vest
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="payVestId != null" >
+        pay_vest_id,
+      </if>
+      <if test="payTypeId != null" >
+        pay_type_id,
+      </if>
+      <if test="prefix != null" >
+        prefix,
+      </if>
+      <if test="param != null" >
+        param,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="payVestId != null" >
+        #{payVestId,jdbcType=INTEGER},
+      </if>
+      <if test="payTypeId != null" >
+        #{payTypeId,jdbcType=INTEGER},
+      </if>
+      <if test="prefix != null" >
+        #{prefix,jdbcType=VARCHAR},
+      </if>
+      <if test="param != null" >
+        #{param,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.zheng.pay.dao.model.PayVestExample" resultType="java.lang.Integer" >
+    select count(*) from pay_vest
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map" >
+    update pay_vest
+    <set >
+      <if test="record.payVestId != null" >
+        pay_vest_id = #{record.payVestId,jdbcType=INTEGER},
+      </if>
+      <if test="record.payTypeId != null" >
+        pay_type_id = #{record.payTypeId,jdbcType=INTEGER},
+      </if>
+      <if test="record.prefix != null" >
+        prefix = #{record.prefix,jdbcType=VARCHAR},
+      </if>
+      <if test="record.param != null" >
+        param = #{record.param,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map" >
+    update pay_vest
+    set pay_vest_id = #{record.payVestId,jdbcType=INTEGER},
+      pay_type_id = #{record.payTypeId,jdbcType=INTEGER},
+      prefix = #{record.prefix,jdbcType=VARCHAR},
+      param = #{record.param,jdbcType=VARCHAR}
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.zheng.pay.dao.model.PayVest" >
+    update pay_vest
+    <set >
+      <if test="payTypeId != null" >
+        pay_type_id = #{payTypeId,jdbcType=INTEGER},
+      </if>
+      <if test="prefix != null" >
+        prefix = #{prefix,jdbcType=VARCHAR},
+      </if>
+      <if test="param != null" >
+        param = #{param,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where pay_vest_id = #{payVestId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.zheng.pay.dao.model.PayVest" >
+    update pay_vest
+    set pay_type_id = #{payTypeId,jdbcType=INTEGER},
+      prefix = #{prefix,jdbcType=VARCHAR},
+      param = #{param,jdbcType=VARCHAR}
+    where pay_vest_id = #{payVestId,jdbcType=INTEGER}
+  </update>
+  <cache type="org.mybatis.caches.ehcache.LoggingEhcache" />
+</mapper>

+ 116 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayInOrder.java

@@ -0,0 +1,116 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+
+public class PayInOrder implements Serializable {
+    private Integer payInOrderId;
+
+    private Integer payMchId;
+
+    private Integer payVendorId;
+
+    private Long amount;
+
+    private Byte status;
+
+    private Long ctime;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getPayInOrderId() {
+        return payInOrderId;
+    }
+
+    public void setPayInOrderId(Integer payInOrderId) {
+        this.payInOrderId = payInOrderId;
+    }
+
+    public Integer getPayMchId() {
+        return payMchId;
+    }
+
+    public void setPayMchId(Integer payMchId) {
+        this.payMchId = payMchId;
+    }
+
+    public Integer getPayVendorId() {
+        return payVendorId;
+    }
+
+    public void setPayVendorId(Integer payVendorId) {
+        this.payVendorId = payVendorId;
+    }
+
+    public Long getAmount() {
+        return amount;
+    }
+
+    public void setAmount(Long amount) {
+        this.amount = amount;
+    }
+
+    public Byte getStatus() {
+        return status;
+    }
+
+    public void setStatus(Byte status) {
+        this.status = status;
+    }
+
+    public Long getCtime() {
+        return ctime;
+    }
+
+    public void setCtime(Long ctime) {
+        this.ctime = ctime;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", payInOrderId=").append(payInOrderId);
+        sb.append(", payMchId=").append(payMchId);
+        sb.append(", payVendorId=").append(payVendorId);
+        sb.append(", amount=").append(amount);
+        sb.append(", status=").append(status);
+        sb.append(", ctime=").append(ctime);
+        sb.append("]");
+        return sb.toString();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        PayInOrder other = (PayInOrder) that;
+        return (this.getPayInOrderId() == null ? other.getPayInOrderId() == null : this.getPayInOrderId().equals(other.getPayInOrderId()))
+            && (this.getPayMchId() == null ? other.getPayMchId() == null : this.getPayMchId().equals(other.getPayMchId()))
+            && (this.getPayVendorId() == null ? other.getPayVendorId() == null : this.getPayVendorId().equals(other.getPayVendorId()))
+            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
+            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
+            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getPayInOrderId() == null) ? 0 : getPayInOrderId().hashCode());
+        result = prime * result + ((getPayMchId() == null) ? 0 : getPayMchId().hashCode());
+        result = prime * result + ((getPayVendorId() == null) ? 0 : getPayVendorId().hashCode());
+        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
+        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
+        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
+        return result;
+    }
+}

+ 129 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayInOrderDetail.java

@@ -0,0 +1,129 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+
+public class PayInOrderDetail implements Serializable {
+    private Integer payInOrderDetailId;
+
+    private Integer payInOrderId;
+
+    private String productId;
+
+    private String productName;
+
+    private Long productPrice;
+
+    private Integer productCount;
+
+    private String remark;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getPayInOrderDetailId() {
+        return payInOrderDetailId;
+    }
+
+    public void setPayInOrderDetailId(Integer payInOrderDetailId) {
+        this.payInOrderDetailId = payInOrderDetailId;
+    }
+
+    public Integer getPayInOrderId() {
+        return payInOrderId;
+    }
+
+    public void setPayInOrderId(Integer payInOrderId) {
+        this.payInOrderId = payInOrderId;
+    }
+
+    public String getProductId() {
+        return productId;
+    }
+
+    public void setProductId(String productId) {
+        this.productId = productId;
+    }
+
+    public String getProductName() {
+        return productName;
+    }
+
+    public void setProductName(String productName) {
+        this.productName = productName;
+    }
+
+    public Long getProductPrice() {
+        return productPrice;
+    }
+
+    public void setProductPrice(Long productPrice) {
+        this.productPrice = productPrice;
+    }
+
+    public Integer getProductCount() {
+        return productCount;
+    }
+
+    public void setProductCount(Integer productCount) {
+        this.productCount = productCount;
+    }
+
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", payInOrderDetailId=").append(payInOrderDetailId);
+        sb.append(", payInOrderId=").append(payInOrderId);
+        sb.append(", productId=").append(productId);
+        sb.append(", productName=").append(productName);
+        sb.append(", productPrice=").append(productPrice);
+        sb.append(", productCount=").append(productCount);
+        sb.append(", remark=").append(remark);
+        sb.append("]");
+        return sb.toString();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        PayInOrderDetail other = (PayInOrderDetail) that;
+        return (this.getPayInOrderDetailId() == null ? other.getPayInOrderDetailId() == null : this.getPayInOrderDetailId().equals(other.getPayInOrderDetailId()))
+            && (this.getPayInOrderId() == null ? other.getPayInOrderId() == null : this.getPayInOrderId().equals(other.getPayInOrderId()))
+            && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
+            && (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName()))
+            && (this.getProductPrice() == null ? other.getProductPrice() == null : this.getProductPrice().equals(other.getProductPrice()))
+            && (this.getProductCount() == null ? other.getProductCount() == null : this.getProductCount().equals(other.getProductCount()))
+            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getPayInOrderDetailId() == null) ? 0 : getPayInOrderDetailId().hashCode());
+        result = prime * result + ((getPayInOrderId() == null) ? 0 : getPayInOrderId().hashCode());
+        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
+        result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode());
+        result = prime * result + ((getProductPrice() == null) ? 0 : getProductPrice().hashCode());
+        result = prime * result + ((getProductCount() == null) ? 0 : getProductCount().hashCode());
+        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
+        return result;
+    }
+}

+ 673 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayInOrderDetailExample.java

@@ -0,0 +1,673 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class PayInOrderDetailExample implements Serializable {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer limit;
+
+    private Integer offset;
+
+    public PayInOrderDetailExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    public void setLimit(Integer limit) {
+        this.limit = limit;
+    }
+
+    public Integer getLimit() {
+        return limit;
+    }
+
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    public Integer getOffset() {
+        return offset;
+    }
+
+    protected abstract static class GeneratedCriteria implements Serializable {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        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 andPayInOrderDetailIdIsNull() {
+            addCriterion("pay_in_order_detail_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderDetailIdIsNotNull() {
+            addCriterion("pay_in_order_detail_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderDetailIdEqualTo(Integer value) {
+            addCriterion("pay_in_order_detail_id =", value, "payInOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderDetailIdNotEqualTo(Integer value) {
+            addCriterion("pay_in_order_detail_id <>", value, "payInOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderDetailIdGreaterThan(Integer value) {
+            addCriterion("pay_in_order_detail_id >", value, "payInOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderDetailIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_in_order_detail_id >=", value, "payInOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderDetailIdLessThan(Integer value) {
+            addCriterion("pay_in_order_detail_id <", value, "payInOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderDetailIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_in_order_detail_id <=", value, "payInOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderDetailIdIn(List<Integer> values) {
+            addCriterion("pay_in_order_detail_id in", values, "payInOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderDetailIdNotIn(List<Integer> values) {
+            addCriterion("pay_in_order_detail_id not in", values, "payInOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderDetailIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_in_order_detail_id between", value1, value2, "payInOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderDetailIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_in_order_detail_id not between", value1, value2, "payInOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdIsNull() {
+            addCriterion("pay_in_order_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdIsNotNull() {
+            addCriterion("pay_in_order_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdEqualTo(Integer value) {
+            addCriterion("pay_in_order_id =", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdNotEqualTo(Integer value) {
+            addCriterion("pay_in_order_id <>", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdGreaterThan(Integer value) {
+            addCriterion("pay_in_order_id >", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_in_order_id >=", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdLessThan(Integer value) {
+            addCriterion("pay_in_order_id <", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_in_order_id <=", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdIn(List<Integer> values) {
+            addCriterion("pay_in_order_id in", values, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdNotIn(List<Integer> values) {
+            addCriterion("pay_in_order_id not in", values, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_in_order_id between", value1, value2, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_in_order_id not between", value1, value2, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdIsNull() {
+            addCriterion("product_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdIsNotNull() {
+            addCriterion("product_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdEqualTo(String value) {
+            addCriterion("product_id =", value, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdNotEqualTo(String value) {
+            addCriterion("product_id <>", value, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdGreaterThan(String value) {
+            addCriterion("product_id >", value, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdGreaterThanOrEqualTo(String value) {
+            addCriterion("product_id >=", value, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdLessThan(String value) {
+            addCriterion("product_id <", value, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdLessThanOrEqualTo(String value) {
+            addCriterion("product_id <=", value, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdLike(String value) {
+            addCriterion("product_id like", value, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdNotLike(String value) {
+            addCriterion("product_id not like", value, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdIn(List<String> values) {
+            addCriterion("product_id in", values, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdNotIn(List<String> values) {
+            addCriterion("product_id not in", values, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdBetween(String value1, String value2) {
+            addCriterion("product_id between", value1, value2, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductIdNotBetween(String value1, String value2) {
+            addCriterion("product_id not between", value1, value2, "productId");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameIsNull() {
+            addCriterion("product_name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameIsNotNull() {
+            addCriterion("product_name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameEqualTo(String value) {
+            addCriterion("product_name =", value, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameNotEqualTo(String value) {
+            addCriterion("product_name <>", value, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameGreaterThan(String value) {
+            addCriterion("product_name >", value, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameGreaterThanOrEqualTo(String value) {
+            addCriterion("product_name >=", value, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameLessThan(String value) {
+            addCriterion("product_name <", value, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameLessThanOrEqualTo(String value) {
+            addCriterion("product_name <=", value, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameLike(String value) {
+            addCriterion("product_name like", value, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameNotLike(String value) {
+            addCriterion("product_name not like", value, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameIn(List<String> values) {
+            addCriterion("product_name in", values, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameNotIn(List<String> values) {
+            addCriterion("product_name not in", values, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameBetween(String value1, String value2) {
+            addCriterion("product_name between", value1, value2, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductNameNotBetween(String value1, String value2) {
+            addCriterion("product_name not between", value1, value2, "productName");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceIsNull() {
+            addCriterion("product_price is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceIsNotNull() {
+            addCriterion("product_price is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceEqualTo(Long value) {
+            addCriterion("product_price =", value, "productPrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceNotEqualTo(Long value) {
+            addCriterion("product_price <>", value, "productPrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceGreaterThan(Long value) {
+            addCriterion("product_price >", value, "productPrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceGreaterThanOrEqualTo(Long value) {
+            addCriterion("product_price >=", value, "productPrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceLessThan(Long value) {
+            addCriterion("product_price <", value, "productPrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceLessThanOrEqualTo(Long value) {
+            addCriterion("product_price <=", value, "productPrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceIn(List<Long> values) {
+            addCriterion("product_price in", values, "productPrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceNotIn(List<Long> values) {
+            addCriterion("product_price not in", values, "productPrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceBetween(Long value1, Long value2) {
+            addCriterion("product_price between", value1, value2, "productPrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductPriceNotBetween(Long value1, Long value2) {
+            addCriterion("product_price not between", value1, value2, "productPrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountIsNull() {
+            addCriterion("product_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountIsNotNull() {
+            addCriterion("product_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountEqualTo(Integer value) {
+            addCriterion("product_count =", value, "productCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountNotEqualTo(Integer value) {
+            addCriterion("product_count <>", value, "productCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountGreaterThan(Integer value) {
+            addCriterion("product_count >", value, "productCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountGreaterThanOrEqualTo(Integer value) {
+            addCriterion("product_count >=", value, "productCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountLessThan(Integer value) {
+            addCriterion("product_count <", value, "productCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountLessThanOrEqualTo(Integer value) {
+            addCriterion("product_count <=", value, "productCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountIn(List<Integer> values) {
+            addCriterion("product_count in", values, "productCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountNotIn(List<Integer> values) {
+            addCriterion("product_count not in", values, "productCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountBetween(Integer value1, Integer value2) {
+            addCriterion("product_count between", value1, value2, "productCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductCountNotBetween(Integer value1, Integer value2) {
+            addCriterion("product_count not between", value1, value2, "productCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkIsNull() {
+            addCriterion("remark is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkIsNotNull() {
+            addCriterion("remark is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkEqualTo(String value) {
+            addCriterion("remark =", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkNotEqualTo(String value) {
+            addCriterion("remark <>", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkGreaterThan(String value) {
+            addCriterion("remark >", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
+            addCriterion("remark >=", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkLessThan(String value) {
+            addCriterion("remark <", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkLessThanOrEqualTo(String value) {
+            addCriterion("remark <=", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkLike(String value) {
+            addCriterion("remark like", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkNotLike(String value) {
+            addCriterion("remark not like", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkIn(List<String> values) {
+            addCriterion("remark in", values, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkNotIn(List<String> values) {
+            addCriterion("remark not in", values, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkBetween(String value1, String value2) {
+            addCriterion("remark between", value1, value2, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkNotBetween(String value1, String value2) {
+            addCriterion("remark not between", value1, value2, "remark");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria implements Serializable {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion implements Serializable {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        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;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 583 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayInOrderExample.java

@@ -0,0 +1,583 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class PayInOrderExample implements Serializable {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer limit;
+
+    private Integer offset;
+
+    public PayInOrderExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    public void setLimit(Integer limit) {
+        this.limit = limit;
+    }
+
+    public Integer getLimit() {
+        return limit;
+    }
+
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    public Integer getOffset() {
+        return offset;
+    }
+
+    protected abstract static class GeneratedCriteria implements Serializable {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        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 andPayInOrderIdIsNull() {
+            addCriterion("pay_in_order_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdIsNotNull() {
+            addCriterion("pay_in_order_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdEqualTo(Integer value) {
+            addCriterion("pay_in_order_id =", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdNotEqualTo(Integer value) {
+            addCriterion("pay_in_order_id <>", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdGreaterThan(Integer value) {
+            addCriterion("pay_in_order_id >", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_in_order_id >=", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdLessThan(Integer value) {
+            addCriterion("pay_in_order_id <", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_in_order_id <=", value, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdIn(List<Integer> values) {
+            addCriterion("pay_in_order_id in", values, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdNotIn(List<Integer> values) {
+            addCriterion("pay_in_order_id not in", values, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_in_order_id between", value1, value2, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayInOrderIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_in_order_id not between", value1, value2, "payInOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdIsNull() {
+            addCriterion("pay_mch_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdIsNotNull() {
+            addCriterion("pay_mch_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdEqualTo(Integer value) {
+            addCriterion("pay_mch_id =", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotEqualTo(Integer value) {
+            addCriterion("pay_mch_id <>", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdGreaterThan(Integer value) {
+            addCriterion("pay_mch_id >", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_mch_id >=", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdLessThan(Integer value) {
+            addCriterion("pay_mch_id <", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_mch_id <=", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdIn(List<Integer> values) {
+            addCriterion("pay_mch_id in", values, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotIn(List<Integer> values) {
+            addCriterion("pay_mch_id not in", values, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_mch_id between", value1, value2, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_mch_id not between", value1, value2, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdIsNull() {
+            addCriterion("pay_vendor_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdIsNotNull() {
+            addCriterion("pay_vendor_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdEqualTo(Integer value) {
+            addCriterion("pay_vendor_id =", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotEqualTo(Integer value) {
+            addCriterion("pay_vendor_id <>", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdGreaterThan(Integer value) {
+            addCriterion("pay_vendor_id >", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_vendor_id >=", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdLessThan(Integer value) {
+            addCriterion("pay_vendor_id <", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_vendor_id <=", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdIn(List<Integer> values) {
+            addCriterion("pay_vendor_id in", values, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotIn(List<Integer> values) {
+            addCriterion("pay_vendor_id not in", values, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_vendor_id between", value1, value2, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_vendor_id not between", value1, value2, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountIsNull() {
+            addCriterion("amount is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountIsNotNull() {
+            addCriterion("amount is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountEqualTo(Long value) {
+            addCriterion("amount =", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountNotEqualTo(Long value) {
+            addCriterion("amount <>", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountGreaterThan(Long value) {
+            addCriterion("amount >", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountGreaterThanOrEqualTo(Long value) {
+            addCriterion("amount >=", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountLessThan(Long value) {
+            addCriterion("amount <", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountLessThanOrEqualTo(Long value) {
+            addCriterion("amount <=", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountIn(List<Long> values) {
+            addCriterion("amount in", values, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountNotIn(List<Long> values) {
+            addCriterion("amount not in", values, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountBetween(Long value1, Long value2) {
+            addCriterion("amount between", value1, value2, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountNotBetween(Long value1, Long value2) {
+            addCriterion("amount not between", value1, value2, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIsNull() {
+            addCriterion("status is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIsNotNull() {
+            addCriterion("status is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusEqualTo(Byte value) {
+            addCriterion("status =", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotEqualTo(Byte value) {
+            addCriterion("status <>", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusGreaterThan(Byte value) {
+            addCriterion("status >", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
+            addCriterion("status >=", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusLessThan(Byte value) {
+            addCriterion("status <", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusLessThanOrEqualTo(Byte value) {
+            addCriterion("status <=", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIn(List<Byte> values) {
+            addCriterion("status in", values, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotIn(List<Byte> values) {
+            addCriterion("status not in", values, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusBetween(Byte value1, Byte value2) {
+            addCriterion("status between", value1, value2, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
+            addCriterion("status not between", value1, value2, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeIsNull() {
+            addCriterion("ctime is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeIsNotNull() {
+            addCriterion("ctime is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeEqualTo(Long value) {
+            addCriterion("ctime =", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeNotEqualTo(Long value) {
+            addCriterion("ctime <>", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeGreaterThan(Long value) {
+            addCriterion("ctime >", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeGreaterThanOrEqualTo(Long value) {
+            addCriterion("ctime >=", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeLessThan(Long value) {
+            addCriterion("ctime <", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeLessThanOrEqualTo(Long value) {
+            addCriterion("ctime <=", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeIn(List<Long> values) {
+            addCriterion("ctime in", values, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeNotIn(List<Long> values) {
+            addCriterion("ctime not in", values, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeBetween(Long value1, Long value2) {
+            addCriterion("ctime between", value1, value2, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeNotBetween(Long value1, Long value2) {
+            addCriterion("ctime not between", value1, value2, "ctime");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria implements Serializable {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion implements Serializable {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        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;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 103 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayMch.java

@@ -0,0 +1,103 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+
+public class PayMch implements Serializable {
+    private Integer payMchId;
+
+    private String mchId;
+
+    private String name;
+
+    private String reqkey;
+
+    private String reskey;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getPayMchId() {
+        return payMchId;
+    }
+
+    public void setPayMchId(Integer payMchId) {
+        this.payMchId = payMchId;
+    }
+
+    public String getMchId() {
+        return mchId;
+    }
+
+    public void setMchId(String mchId) {
+        this.mchId = mchId;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getReqkey() {
+        return reqkey;
+    }
+
+    public void setReqkey(String reqkey) {
+        this.reqkey = reqkey;
+    }
+
+    public String getReskey() {
+        return reskey;
+    }
+
+    public void setReskey(String reskey) {
+        this.reskey = reskey;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", payMchId=").append(payMchId);
+        sb.append(", mchId=").append(mchId);
+        sb.append(", name=").append(name);
+        sb.append(", reqkey=").append(reqkey);
+        sb.append(", reskey=").append(reskey);
+        sb.append("]");
+        return sb.toString();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        PayMch other = (PayMch) that;
+        return (this.getPayMchId() == null ? other.getPayMchId() == null : this.getPayMchId().equals(other.getPayMchId()))
+            && (this.getMchId() == null ? other.getMchId() == null : this.getMchId().equals(other.getMchId()))
+            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
+            && (this.getReqkey() == null ? other.getReqkey() == null : this.getReqkey().equals(other.getReqkey()))
+            && (this.getReskey() == null ? other.getReskey() == null : this.getReskey().equals(other.getReskey()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getPayMchId() == null) ? 0 : getPayMchId().hashCode());
+        result = prime * result + ((getMchId() == null) ? 0 : getMchId().hashCode());
+        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
+        result = prime * result + ((getReqkey() == null) ? 0 : getReqkey().hashCode());
+        result = prime * result + ((getReskey() == null) ? 0 : getReskey().hashCode());
+        return result;
+    }
+}

+ 563 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayMchExample.java

@@ -0,0 +1,563 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class PayMchExample implements Serializable {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer limit;
+
+    private Integer offset;
+
+    public PayMchExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    public void setLimit(Integer limit) {
+        this.limit = limit;
+    }
+
+    public Integer getLimit() {
+        return limit;
+    }
+
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    public Integer getOffset() {
+        return offset;
+    }
+
+    protected abstract static class GeneratedCriteria implements Serializable {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        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 andPayMchIdIsNull() {
+            addCriterion("pay_mch_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdIsNotNull() {
+            addCriterion("pay_mch_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdEqualTo(Integer value) {
+            addCriterion("pay_mch_id =", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotEqualTo(Integer value) {
+            addCriterion("pay_mch_id <>", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdGreaterThan(Integer value) {
+            addCriterion("pay_mch_id >", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_mch_id >=", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdLessThan(Integer value) {
+            addCriterion("pay_mch_id <", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_mch_id <=", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdIn(List<Integer> values) {
+            addCriterion("pay_mch_id in", values, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotIn(List<Integer> values) {
+            addCriterion("pay_mch_id not in", values, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_mch_id between", value1, value2, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_mch_id not between", value1, value2, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdIsNull() {
+            addCriterion("mch_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdIsNotNull() {
+            addCriterion("mch_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdEqualTo(String value) {
+            addCriterion("mch_id =", value, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdNotEqualTo(String value) {
+            addCriterion("mch_id <>", value, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdGreaterThan(String value) {
+            addCriterion("mch_id >", value, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdGreaterThanOrEqualTo(String value) {
+            addCriterion("mch_id >=", value, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdLessThan(String value) {
+            addCriterion("mch_id <", value, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdLessThanOrEqualTo(String value) {
+            addCriterion("mch_id <=", value, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdLike(String value) {
+            addCriterion("mch_id like", value, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdNotLike(String value) {
+            addCriterion("mch_id not like", value, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdIn(List<String> values) {
+            addCriterion("mch_id in", values, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdNotIn(List<String> values) {
+            addCriterion("mch_id not in", values, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdBetween(String value1, String value2) {
+            addCriterion("mch_id between", value1, value2, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMchIdNotBetween(String value1, String value2) {
+            addCriterion("mch_id not between", value1, value2, "mchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNull() {
+            addCriterion("name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNotNull() {
+            addCriterion("name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameEqualTo(String value) {
+            addCriterion("name =", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotEqualTo(String value) {
+            addCriterion("name <>", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThan(String value) {
+            addCriterion("name >", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThanOrEqualTo(String value) {
+            addCriterion("name >=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThan(String value) {
+            addCriterion("name <", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThanOrEqualTo(String value) {
+            addCriterion("name <=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLike(String value) {
+            addCriterion("name like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotLike(String value) {
+            addCriterion("name not like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIn(List<String> values) {
+            addCriterion("name in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotIn(List<String> values) {
+            addCriterion("name not in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameBetween(String value1, String value2) {
+            addCriterion("name between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotBetween(String value1, String value2) {
+            addCriterion("name not between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyIsNull() {
+            addCriterion("reqKey is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyIsNotNull() {
+            addCriterion("reqKey is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyEqualTo(String value) {
+            addCriterion("reqKey =", value, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyNotEqualTo(String value) {
+            addCriterion("reqKey <>", value, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyGreaterThan(String value) {
+            addCriterion("reqKey >", value, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyGreaterThanOrEqualTo(String value) {
+            addCriterion("reqKey >=", value, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyLessThan(String value) {
+            addCriterion("reqKey <", value, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyLessThanOrEqualTo(String value) {
+            addCriterion("reqKey <=", value, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyLike(String value) {
+            addCriterion("reqKey like", value, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyNotLike(String value) {
+            addCriterion("reqKey not like", value, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyIn(List<String> values) {
+            addCriterion("reqKey in", values, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyNotIn(List<String> values) {
+            addCriterion("reqKey not in", values, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyBetween(String value1, String value2) {
+            addCriterion("reqKey between", value1, value2, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReqkeyNotBetween(String value1, String value2) {
+            addCriterion("reqKey not between", value1, value2, "reqkey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyIsNull() {
+            addCriterion("resKey is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyIsNotNull() {
+            addCriterion("resKey is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyEqualTo(String value) {
+            addCriterion("resKey =", value, "reskey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyNotEqualTo(String value) {
+            addCriterion("resKey <>", value, "reskey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyGreaterThan(String value) {
+            addCriterion("resKey >", value, "reskey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyGreaterThanOrEqualTo(String value) {
+            addCriterion("resKey >=", value, "reskey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyLessThan(String value) {
+            addCriterion("resKey <", value, "reskey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyLessThanOrEqualTo(String value) {
+            addCriterion("resKey <=", value, "reskey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyLike(String value) {
+            addCriterion("resKey like", value, "reskey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyNotLike(String value) {
+            addCriterion("resKey not like", value, "reskey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyIn(List<String> values) {
+            addCriterion("resKey in", values, "reskey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyNotIn(List<String> values) {
+            addCriterion("resKey not in", values, "reskey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyBetween(String value1, String value2) {
+            addCriterion("resKey between", value1, value2, "reskey");
+            return (Criteria) this;
+        }
+
+        public Criteria andReskeyNotBetween(String value1, String value2) {
+            addCriterion("resKey not between", value1, value2, "reskey");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria implements Serializable {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion implements Serializable {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        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;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 116 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayOutOrder.java

@@ -0,0 +1,116 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+
+public class PayOutOrder implements Serializable {
+    private Integer payOutOrderId;
+
+    private Integer payMchId;
+
+    private Integer payVendorId;
+
+    private Long amount;
+
+    private Byte status;
+
+    private Long ctime;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getPayOutOrderId() {
+        return payOutOrderId;
+    }
+
+    public void setPayOutOrderId(Integer payOutOrderId) {
+        this.payOutOrderId = payOutOrderId;
+    }
+
+    public Integer getPayMchId() {
+        return payMchId;
+    }
+
+    public void setPayMchId(Integer payMchId) {
+        this.payMchId = payMchId;
+    }
+
+    public Integer getPayVendorId() {
+        return payVendorId;
+    }
+
+    public void setPayVendorId(Integer payVendorId) {
+        this.payVendorId = payVendorId;
+    }
+
+    public Long getAmount() {
+        return amount;
+    }
+
+    public void setAmount(Long amount) {
+        this.amount = amount;
+    }
+
+    public Byte getStatus() {
+        return status;
+    }
+
+    public void setStatus(Byte status) {
+        this.status = status;
+    }
+
+    public Long getCtime() {
+        return ctime;
+    }
+
+    public void setCtime(Long ctime) {
+        this.ctime = ctime;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", payOutOrderId=").append(payOutOrderId);
+        sb.append(", payMchId=").append(payMchId);
+        sb.append(", payVendorId=").append(payVendorId);
+        sb.append(", amount=").append(amount);
+        sb.append(", status=").append(status);
+        sb.append(", ctime=").append(ctime);
+        sb.append("]");
+        return sb.toString();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        PayOutOrder other = (PayOutOrder) that;
+        return (this.getPayOutOrderId() == null ? other.getPayOutOrderId() == null : this.getPayOutOrderId().equals(other.getPayOutOrderId()))
+            && (this.getPayMchId() == null ? other.getPayMchId() == null : this.getPayMchId().equals(other.getPayMchId()))
+            && (this.getPayVendorId() == null ? other.getPayVendorId() == null : this.getPayVendorId().equals(other.getPayVendorId()))
+            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
+            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
+            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getPayOutOrderId() == null) ? 0 : getPayOutOrderId().hashCode());
+        result = prime * result + ((getPayMchId() == null) ? 0 : getPayMchId().hashCode());
+        result = prime * result + ((getPayVendorId() == null) ? 0 : getPayVendorId().hashCode());
+        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
+        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
+        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
+        return result;
+    }
+}

+ 77 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayOutOrderDetail.java

@@ -0,0 +1,77 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+
+public class PayOutOrderDetail implements Serializable {
+    private Integer payOutOrderDetailId;
+
+    private Integer payOutOrderId;
+
+    private String remark;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getPayOutOrderDetailId() {
+        return payOutOrderDetailId;
+    }
+
+    public void setPayOutOrderDetailId(Integer payOutOrderDetailId) {
+        this.payOutOrderDetailId = payOutOrderDetailId;
+    }
+
+    public Integer getPayOutOrderId() {
+        return payOutOrderId;
+    }
+
+    public void setPayOutOrderId(Integer payOutOrderId) {
+        this.payOutOrderId = payOutOrderId;
+    }
+
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", payOutOrderDetailId=").append(payOutOrderDetailId);
+        sb.append(", payOutOrderId=").append(payOutOrderId);
+        sb.append(", remark=").append(remark);
+        sb.append("]");
+        return sb.toString();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        PayOutOrderDetail other = (PayOutOrderDetail) that;
+        return (this.getPayOutOrderDetailId() == null ? other.getPayOutOrderDetailId() == null : this.getPayOutOrderDetailId().equals(other.getPayOutOrderDetailId()))
+            && (this.getPayOutOrderId() == null ? other.getPayOutOrderId() == null : this.getPayOutOrderId().equals(other.getPayOutOrderId()))
+            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getPayOutOrderDetailId() == null) ? 0 : getPayOutOrderDetailId().hashCode());
+        result = prime * result + ((getPayOutOrderId() == null) ? 0 : getPayOutOrderId().hashCode());
+        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
+        return result;
+    }
+}

+ 413 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayOutOrderDetailExample.java

@@ -0,0 +1,413 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class PayOutOrderDetailExample implements Serializable {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer limit;
+
+    private Integer offset;
+
+    public PayOutOrderDetailExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    public void setLimit(Integer limit) {
+        this.limit = limit;
+    }
+
+    public Integer getLimit() {
+        return limit;
+    }
+
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    public Integer getOffset() {
+        return offset;
+    }
+
+    protected abstract static class GeneratedCriteria implements Serializable {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        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 andPayOutOrderDetailIdIsNull() {
+            addCriterion("pay_out_order_detail_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderDetailIdIsNotNull() {
+            addCriterion("pay_out_order_detail_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderDetailIdEqualTo(Integer value) {
+            addCriterion("pay_out_order_detail_id =", value, "payOutOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderDetailIdNotEqualTo(Integer value) {
+            addCriterion("pay_out_order_detail_id <>", value, "payOutOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderDetailIdGreaterThan(Integer value) {
+            addCriterion("pay_out_order_detail_id >", value, "payOutOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderDetailIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_out_order_detail_id >=", value, "payOutOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderDetailIdLessThan(Integer value) {
+            addCriterion("pay_out_order_detail_id <", value, "payOutOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderDetailIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_out_order_detail_id <=", value, "payOutOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderDetailIdIn(List<Integer> values) {
+            addCriterion("pay_out_order_detail_id in", values, "payOutOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderDetailIdNotIn(List<Integer> values) {
+            addCriterion("pay_out_order_detail_id not in", values, "payOutOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderDetailIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_out_order_detail_id between", value1, value2, "payOutOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderDetailIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_out_order_detail_id not between", value1, value2, "payOutOrderDetailId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdIsNull() {
+            addCriterion("pay_out_order_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdIsNotNull() {
+            addCriterion("pay_out_order_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdEqualTo(Integer value) {
+            addCriterion("pay_out_order_id =", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdNotEqualTo(Integer value) {
+            addCriterion("pay_out_order_id <>", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdGreaterThan(Integer value) {
+            addCriterion("pay_out_order_id >", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_out_order_id >=", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdLessThan(Integer value) {
+            addCriterion("pay_out_order_id <", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_out_order_id <=", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdIn(List<Integer> values) {
+            addCriterion("pay_out_order_id in", values, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdNotIn(List<Integer> values) {
+            addCriterion("pay_out_order_id not in", values, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_out_order_id between", value1, value2, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_out_order_id not between", value1, value2, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkIsNull() {
+            addCriterion("remark is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkIsNotNull() {
+            addCriterion("remark is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkEqualTo(String value) {
+            addCriterion("remark =", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkNotEqualTo(String value) {
+            addCriterion("remark <>", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkGreaterThan(String value) {
+            addCriterion("remark >", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
+            addCriterion("remark >=", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkLessThan(String value) {
+            addCriterion("remark <", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkLessThanOrEqualTo(String value) {
+            addCriterion("remark <=", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkLike(String value) {
+            addCriterion("remark like", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkNotLike(String value) {
+            addCriterion("remark not like", value, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkIn(List<String> values) {
+            addCriterion("remark in", values, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkNotIn(List<String> values) {
+            addCriterion("remark not in", values, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkBetween(String value1, String value2) {
+            addCriterion("remark between", value1, value2, "remark");
+            return (Criteria) this;
+        }
+
+        public Criteria andRemarkNotBetween(String value1, String value2) {
+            addCriterion("remark not between", value1, value2, "remark");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria implements Serializable {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion implements Serializable {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        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;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 583 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayOutOrderExample.java

@@ -0,0 +1,583 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class PayOutOrderExample implements Serializable {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer limit;
+
+    private Integer offset;
+
+    public PayOutOrderExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    public void setLimit(Integer limit) {
+        this.limit = limit;
+    }
+
+    public Integer getLimit() {
+        return limit;
+    }
+
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    public Integer getOffset() {
+        return offset;
+    }
+
+    protected abstract static class GeneratedCriteria implements Serializable {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        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 andPayOutOrderIdIsNull() {
+            addCriterion("pay_out_order_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdIsNotNull() {
+            addCriterion("pay_out_order_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdEqualTo(Integer value) {
+            addCriterion("pay_out_order_id =", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdNotEqualTo(Integer value) {
+            addCriterion("pay_out_order_id <>", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdGreaterThan(Integer value) {
+            addCriterion("pay_out_order_id >", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_out_order_id >=", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdLessThan(Integer value) {
+            addCriterion("pay_out_order_id <", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_out_order_id <=", value, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdIn(List<Integer> values) {
+            addCriterion("pay_out_order_id in", values, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdNotIn(List<Integer> values) {
+            addCriterion("pay_out_order_id not in", values, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_out_order_id between", value1, value2, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayOutOrderIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_out_order_id not between", value1, value2, "payOutOrderId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdIsNull() {
+            addCriterion("pay_mch_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdIsNotNull() {
+            addCriterion("pay_mch_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdEqualTo(Integer value) {
+            addCriterion("pay_mch_id =", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotEqualTo(Integer value) {
+            addCriterion("pay_mch_id <>", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdGreaterThan(Integer value) {
+            addCriterion("pay_mch_id >", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_mch_id >=", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdLessThan(Integer value) {
+            addCriterion("pay_mch_id <", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_mch_id <=", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdIn(List<Integer> values) {
+            addCriterion("pay_mch_id in", values, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotIn(List<Integer> values) {
+            addCriterion("pay_mch_id not in", values, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_mch_id between", value1, value2, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_mch_id not between", value1, value2, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdIsNull() {
+            addCriterion("pay_vendor_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdIsNotNull() {
+            addCriterion("pay_vendor_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdEqualTo(Integer value) {
+            addCriterion("pay_vendor_id =", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotEqualTo(Integer value) {
+            addCriterion("pay_vendor_id <>", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdGreaterThan(Integer value) {
+            addCriterion("pay_vendor_id >", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_vendor_id >=", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdLessThan(Integer value) {
+            addCriterion("pay_vendor_id <", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_vendor_id <=", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdIn(List<Integer> values) {
+            addCriterion("pay_vendor_id in", values, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotIn(List<Integer> values) {
+            addCriterion("pay_vendor_id not in", values, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_vendor_id between", value1, value2, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_vendor_id not between", value1, value2, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountIsNull() {
+            addCriterion("amount is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountIsNotNull() {
+            addCriterion("amount is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountEqualTo(Long value) {
+            addCriterion("amount =", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountNotEqualTo(Long value) {
+            addCriterion("amount <>", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountGreaterThan(Long value) {
+            addCriterion("amount >", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountGreaterThanOrEqualTo(Long value) {
+            addCriterion("amount >=", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountLessThan(Long value) {
+            addCriterion("amount <", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountLessThanOrEqualTo(Long value) {
+            addCriterion("amount <=", value, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountIn(List<Long> values) {
+            addCriterion("amount in", values, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountNotIn(List<Long> values) {
+            addCriterion("amount not in", values, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountBetween(Long value1, Long value2) {
+            addCriterion("amount between", value1, value2, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andAmountNotBetween(Long value1, Long value2) {
+            addCriterion("amount not between", value1, value2, "amount");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIsNull() {
+            addCriterion("status is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIsNotNull() {
+            addCriterion("status is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusEqualTo(Byte value) {
+            addCriterion("status =", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotEqualTo(Byte value) {
+            addCriterion("status <>", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusGreaterThan(Byte value) {
+            addCriterion("status >", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
+            addCriterion("status >=", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusLessThan(Byte value) {
+            addCriterion("status <", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusLessThanOrEqualTo(Byte value) {
+            addCriterion("status <=", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIn(List<Byte> values) {
+            addCriterion("status in", values, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotIn(List<Byte> values) {
+            addCriterion("status not in", values, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusBetween(Byte value1, Byte value2) {
+            addCriterion("status between", value1, value2, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
+            addCriterion("status not between", value1, value2, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeIsNull() {
+            addCriterion("ctime is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeIsNotNull() {
+            addCriterion("ctime is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeEqualTo(Long value) {
+            addCriterion("ctime =", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeNotEqualTo(Long value) {
+            addCriterion("ctime <>", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeGreaterThan(Long value) {
+            addCriterion("ctime >", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeGreaterThanOrEqualTo(Long value) {
+            addCriterion("ctime >=", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeLessThan(Long value) {
+            addCriterion("ctime <", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeLessThanOrEqualTo(Long value) {
+            addCriterion("ctime <=", value, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeIn(List<Long> values) {
+            addCriterion("ctime in", values, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeNotIn(List<Long> values) {
+            addCriterion("ctime not in", values, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeBetween(Long value1, Long value2) {
+            addCriterion("ctime between", value1, value2, "ctime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCtimeNotBetween(Long value1, Long value2) {
+            addCriterion("ctime not between", value1, value2, "ctime");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria implements Serializable {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion implements Serializable {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        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;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 77 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayPay.java

@@ -0,0 +1,77 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+
+public class PayPay implements Serializable {
+    private Integer payPayId;
+
+    private Integer payTypeId;
+
+    private String param;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getPayPayId() {
+        return payPayId;
+    }
+
+    public void setPayPayId(Integer payPayId) {
+        this.payPayId = payPayId;
+    }
+
+    public Integer getPayTypeId() {
+        return payTypeId;
+    }
+
+    public void setPayTypeId(Integer payTypeId) {
+        this.payTypeId = payTypeId;
+    }
+
+    public String getParam() {
+        return param;
+    }
+
+    public void setParam(String param) {
+        this.param = param;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", payPayId=").append(payPayId);
+        sb.append(", payTypeId=").append(payTypeId);
+        sb.append(", param=").append(param);
+        sb.append("]");
+        return sb.toString();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        PayPay other = (PayPay) that;
+        return (this.getPayPayId() == null ? other.getPayPayId() == null : this.getPayPayId().equals(other.getPayPayId()))
+            && (this.getPayTypeId() == null ? other.getPayTypeId() == null : this.getPayTypeId().equals(other.getPayTypeId()))
+            && (this.getParam() == null ? other.getParam() == null : this.getParam().equals(other.getParam()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getPayPayId() == null) ? 0 : getPayPayId().hashCode());
+        result = prime * result + ((getPayTypeId() == null) ? 0 : getPayTypeId().hashCode());
+        result = prime * result + ((getParam() == null) ? 0 : getParam().hashCode());
+        return result;
+    }
+}

+ 413 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayPayExample.java

@@ -0,0 +1,413 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class PayPayExample implements Serializable {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer limit;
+
+    private Integer offset;
+
+    public PayPayExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    public void setLimit(Integer limit) {
+        this.limit = limit;
+    }
+
+    public Integer getLimit() {
+        return limit;
+    }
+
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    public Integer getOffset() {
+        return offset;
+    }
+
+    protected abstract static class GeneratedCriteria implements Serializable {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        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 andPayPayIdIsNull() {
+            addCriterion("pay_pay_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayPayIdIsNotNull() {
+            addCriterion("pay_pay_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayPayIdEqualTo(Integer value) {
+            addCriterion("pay_pay_id =", value, "payPayId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayPayIdNotEqualTo(Integer value) {
+            addCriterion("pay_pay_id <>", value, "payPayId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayPayIdGreaterThan(Integer value) {
+            addCriterion("pay_pay_id >", value, "payPayId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayPayIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_pay_id >=", value, "payPayId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayPayIdLessThan(Integer value) {
+            addCriterion("pay_pay_id <", value, "payPayId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayPayIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_pay_id <=", value, "payPayId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayPayIdIn(List<Integer> values) {
+            addCriterion("pay_pay_id in", values, "payPayId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayPayIdNotIn(List<Integer> values) {
+            addCriterion("pay_pay_id not in", values, "payPayId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayPayIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_pay_id between", value1, value2, "payPayId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayPayIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_pay_id not between", value1, value2, "payPayId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdIsNull() {
+            addCriterion("pay_type_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdIsNotNull() {
+            addCriterion("pay_type_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdEqualTo(Integer value) {
+            addCriterion("pay_type_id =", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdNotEqualTo(Integer value) {
+            addCriterion("pay_type_id <>", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdGreaterThan(Integer value) {
+            addCriterion("pay_type_id >", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_type_id >=", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdLessThan(Integer value) {
+            addCriterion("pay_type_id <", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_type_id <=", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdIn(List<Integer> values) {
+            addCriterion("pay_type_id in", values, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdNotIn(List<Integer> values) {
+            addCriterion("pay_type_id not in", values, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_type_id between", value1, value2, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_type_id not between", value1, value2, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamIsNull() {
+            addCriterion("param is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamIsNotNull() {
+            addCriterion("param is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamEqualTo(String value) {
+            addCriterion("param =", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamNotEqualTo(String value) {
+            addCriterion("param <>", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamGreaterThan(String value) {
+            addCriterion("param >", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamGreaterThanOrEqualTo(String value) {
+            addCriterion("param >=", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamLessThan(String value) {
+            addCriterion("param <", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamLessThanOrEqualTo(String value) {
+            addCriterion("param <=", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamLike(String value) {
+            addCriterion("param like", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamNotLike(String value) {
+            addCriterion("param not like", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamIn(List<String> values) {
+            addCriterion("param in", values, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamNotIn(List<String> values) {
+            addCriterion("param not in", values, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamBetween(String value1, String value2) {
+            addCriterion("param between", value1, value2, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamNotBetween(String value1, String value2) {
+            addCriterion("param not between", value1, value2, "param");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria implements Serializable {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion implements Serializable {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        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;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 77 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayType.java

@@ -0,0 +1,77 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+
+public class PayType implements Serializable {
+    private Integer payTypeId;
+
+    private Integer payMchId;
+
+    private Integer payVendorId;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getPayTypeId() {
+        return payTypeId;
+    }
+
+    public void setPayTypeId(Integer payTypeId) {
+        this.payTypeId = payTypeId;
+    }
+
+    public Integer getPayMchId() {
+        return payMchId;
+    }
+
+    public void setPayMchId(Integer payMchId) {
+        this.payMchId = payMchId;
+    }
+
+    public Integer getPayVendorId() {
+        return payVendorId;
+    }
+
+    public void setPayVendorId(Integer payVendorId) {
+        this.payVendorId = payVendorId;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", payTypeId=").append(payTypeId);
+        sb.append(", payMchId=").append(payMchId);
+        sb.append(", payVendorId=").append(payVendorId);
+        sb.append("]");
+        return sb.toString();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        PayType other = (PayType) that;
+        return (this.getPayTypeId() == null ? other.getPayTypeId() == null : this.getPayTypeId().equals(other.getPayTypeId()))
+            && (this.getPayMchId() == null ? other.getPayMchId() == null : this.getPayMchId().equals(other.getPayMchId()))
+            && (this.getPayVendorId() == null ? other.getPayVendorId() == null : this.getPayVendorId().equals(other.getPayVendorId()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getPayTypeId() == null) ? 0 : getPayTypeId().hashCode());
+        result = prime * result + ((getPayMchId() == null) ? 0 : getPayMchId().hashCode());
+        result = prime * result + ((getPayVendorId() == null) ? 0 : getPayVendorId().hashCode());
+        return result;
+    }
+}

+ 403 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayTypeExample.java

@@ -0,0 +1,403 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class PayTypeExample implements Serializable {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer limit;
+
+    private Integer offset;
+
+    public PayTypeExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    public void setLimit(Integer limit) {
+        this.limit = limit;
+    }
+
+    public Integer getLimit() {
+        return limit;
+    }
+
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    public Integer getOffset() {
+        return offset;
+    }
+
+    protected abstract static class GeneratedCriteria implements Serializable {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        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 andPayTypeIdIsNull() {
+            addCriterion("pay_type_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdIsNotNull() {
+            addCriterion("pay_type_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdEqualTo(Integer value) {
+            addCriterion("pay_type_id =", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdNotEqualTo(Integer value) {
+            addCriterion("pay_type_id <>", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdGreaterThan(Integer value) {
+            addCriterion("pay_type_id >", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_type_id >=", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdLessThan(Integer value) {
+            addCriterion("pay_type_id <", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_type_id <=", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdIn(List<Integer> values) {
+            addCriterion("pay_type_id in", values, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdNotIn(List<Integer> values) {
+            addCriterion("pay_type_id not in", values, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_type_id between", value1, value2, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_type_id not between", value1, value2, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdIsNull() {
+            addCriterion("pay_mch_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdIsNotNull() {
+            addCriterion("pay_mch_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdEqualTo(Integer value) {
+            addCriterion("pay_mch_id =", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotEqualTo(Integer value) {
+            addCriterion("pay_mch_id <>", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdGreaterThan(Integer value) {
+            addCriterion("pay_mch_id >", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_mch_id >=", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdLessThan(Integer value) {
+            addCriterion("pay_mch_id <", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_mch_id <=", value, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdIn(List<Integer> values) {
+            addCriterion("pay_mch_id in", values, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotIn(List<Integer> values) {
+            addCriterion("pay_mch_id not in", values, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_mch_id between", value1, value2, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayMchIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_mch_id not between", value1, value2, "payMchId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdIsNull() {
+            addCriterion("pay_vendor_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdIsNotNull() {
+            addCriterion("pay_vendor_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdEqualTo(Integer value) {
+            addCriterion("pay_vendor_id =", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotEqualTo(Integer value) {
+            addCriterion("pay_vendor_id <>", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdGreaterThan(Integer value) {
+            addCriterion("pay_vendor_id >", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_vendor_id >=", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdLessThan(Integer value) {
+            addCriterion("pay_vendor_id <", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_vendor_id <=", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdIn(List<Integer> values) {
+            addCriterion("pay_vendor_id in", values, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotIn(List<Integer> values) {
+            addCriterion("pay_vendor_id not in", values, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_vendor_id between", value1, value2, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_vendor_id not between", value1, value2, "payVendorId");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria implements Serializable {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion implements Serializable {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        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;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 103 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayVendor.java

@@ -0,0 +1,103 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+
+public class PayVendor implements Serializable {
+    private Integer payVendorId;
+
+    private String name;
+
+    private String appid;
+
+    private String appsecret;
+
+    private String config;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getPayVendorId() {
+        return payVendorId;
+    }
+
+    public void setPayVendorId(Integer payVendorId) {
+        this.payVendorId = payVendorId;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getAppid() {
+        return appid;
+    }
+
+    public void setAppid(String appid) {
+        this.appid = appid;
+    }
+
+    public String getAppsecret() {
+        return appsecret;
+    }
+
+    public void setAppsecret(String appsecret) {
+        this.appsecret = appsecret;
+    }
+
+    public String getConfig() {
+        return config;
+    }
+
+    public void setConfig(String config) {
+        this.config = config;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", payVendorId=").append(payVendorId);
+        sb.append(", name=").append(name);
+        sb.append(", appid=").append(appid);
+        sb.append(", appsecret=").append(appsecret);
+        sb.append(", config=").append(config);
+        sb.append("]");
+        return sb.toString();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        PayVendor other = (PayVendor) that;
+        return (this.getPayVendorId() == null ? other.getPayVendorId() == null : this.getPayVendorId().equals(other.getPayVendorId()))
+            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
+            && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
+            && (this.getAppsecret() == null ? other.getAppsecret() == null : this.getAppsecret().equals(other.getAppsecret()))
+            && (this.getConfig() == null ? other.getConfig() == null : this.getConfig().equals(other.getConfig()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getPayVendorId() == null) ? 0 : getPayVendorId().hashCode());
+        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
+        result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
+        result = prime * result + ((getAppsecret() == null) ? 0 : getAppsecret().hashCode());
+        result = prime * result + ((getConfig() == null) ? 0 : getConfig().hashCode());
+        return result;
+    }
+}

+ 563 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayVendorExample.java

@@ -0,0 +1,563 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class PayVendorExample implements Serializable {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer limit;
+
+    private Integer offset;
+
+    public PayVendorExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    public void setLimit(Integer limit) {
+        this.limit = limit;
+    }
+
+    public Integer getLimit() {
+        return limit;
+    }
+
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    public Integer getOffset() {
+        return offset;
+    }
+
+    protected abstract static class GeneratedCriteria implements Serializable {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        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 andPayVendorIdIsNull() {
+            addCriterion("pay_vendor_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdIsNotNull() {
+            addCriterion("pay_vendor_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdEqualTo(Integer value) {
+            addCriterion("pay_vendor_id =", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotEqualTo(Integer value) {
+            addCriterion("pay_vendor_id <>", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdGreaterThan(Integer value) {
+            addCriterion("pay_vendor_id >", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_vendor_id >=", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdLessThan(Integer value) {
+            addCriterion("pay_vendor_id <", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_vendor_id <=", value, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdIn(List<Integer> values) {
+            addCriterion("pay_vendor_id in", values, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotIn(List<Integer> values) {
+            addCriterion("pay_vendor_id not in", values, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_vendor_id between", value1, value2, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVendorIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_vendor_id not between", value1, value2, "payVendorId");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNull() {
+            addCriterion("name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNotNull() {
+            addCriterion("name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameEqualTo(String value) {
+            addCriterion("name =", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotEqualTo(String value) {
+            addCriterion("name <>", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThan(String value) {
+            addCriterion("name >", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThanOrEqualTo(String value) {
+            addCriterion("name >=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThan(String value) {
+            addCriterion("name <", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThanOrEqualTo(String value) {
+            addCriterion("name <=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLike(String value) {
+            addCriterion("name like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotLike(String value) {
+            addCriterion("name not like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIn(List<String> values) {
+            addCriterion("name in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotIn(List<String> values) {
+            addCriterion("name not in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameBetween(String value1, String value2) {
+            addCriterion("name between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotBetween(String value1, String value2) {
+            addCriterion("name not between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidIsNull() {
+            addCriterion("appid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidIsNotNull() {
+            addCriterion("appid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidEqualTo(String value) {
+            addCriterion("appid =", value, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidNotEqualTo(String value) {
+            addCriterion("appid <>", value, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidGreaterThan(String value) {
+            addCriterion("appid >", value, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidGreaterThanOrEqualTo(String value) {
+            addCriterion("appid >=", value, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidLessThan(String value) {
+            addCriterion("appid <", value, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidLessThanOrEqualTo(String value) {
+            addCriterion("appid <=", value, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidLike(String value) {
+            addCriterion("appid like", value, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidNotLike(String value) {
+            addCriterion("appid not like", value, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidIn(List<String> values) {
+            addCriterion("appid in", values, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidNotIn(List<String> values) {
+            addCriterion("appid not in", values, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidBetween(String value1, String value2) {
+            addCriterion("appid between", value1, value2, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppidNotBetween(String value1, String value2) {
+            addCriterion("appid not between", value1, value2, "appid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretIsNull() {
+            addCriterion("appsecret is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretIsNotNull() {
+            addCriterion("appsecret is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretEqualTo(String value) {
+            addCriterion("appsecret =", value, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretNotEqualTo(String value) {
+            addCriterion("appsecret <>", value, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretGreaterThan(String value) {
+            addCriterion("appsecret >", value, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretGreaterThanOrEqualTo(String value) {
+            addCriterion("appsecret >=", value, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretLessThan(String value) {
+            addCriterion("appsecret <", value, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretLessThanOrEqualTo(String value) {
+            addCriterion("appsecret <=", value, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretLike(String value) {
+            addCriterion("appsecret like", value, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretNotLike(String value) {
+            addCriterion("appsecret not like", value, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretIn(List<String> values) {
+            addCriterion("appsecret in", values, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretNotIn(List<String> values) {
+            addCriterion("appsecret not in", values, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretBetween(String value1, String value2) {
+            addCriterion("appsecret between", value1, value2, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppsecretNotBetween(String value1, String value2) {
+            addCriterion("appsecret not between", value1, value2, "appsecret");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigIsNull() {
+            addCriterion("config is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigIsNotNull() {
+            addCriterion("config is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigEqualTo(String value) {
+            addCriterion("config =", value, "config");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigNotEqualTo(String value) {
+            addCriterion("config <>", value, "config");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigGreaterThan(String value) {
+            addCriterion("config >", value, "config");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigGreaterThanOrEqualTo(String value) {
+            addCriterion("config >=", value, "config");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigLessThan(String value) {
+            addCriterion("config <", value, "config");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigLessThanOrEqualTo(String value) {
+            addCriterion("config <=", value, "config");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigLike(String value) {
+            addCriterion("config like", value, "config");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigNotLike(String value) {
+            addCriterion("config not like", value, "config");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigIn(List<String> values) {
+            addCriterion("config in", values, "config");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigNotIn(List<String> values) {
+            addCriterion("config not in", values, "config");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigBetween(String value1, String value2) {
+            addCriterion("config between", value1, value2, "config");
+            return (Criteria) this;
+        }
+
+        public Criteria andConfigNotBetween(String value1, String value2) {
+            addCriterion("config not between", value1, value2, "config");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria implements Serializable {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion implements Serializable {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        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;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 90 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayVest.java

@@ -0,0 +1,90 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+
+public class PayVest implements Serializable {
+    private Integer payVestId;
+
+    private Integer payTypeId;
+
+    private String prefix;
+
+    private String param;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getPayVestId() {
+        return payVestId;
+    }
+
+    public void setPayVestId(Integer payVestId) {
+        this.payVestId = payVestId;
+    }
+
+    public Integer getPayTypeId() {
+        return payTypeId;
+    }
+
+    public void setPayTypeId(Integer payTypeId) {
+        this.payTypeId = payTypeId;
+    }
+
+    public String getPrefix() {
+        return prefix;
+    }
+
+    public void setPrefix(String prefix) {
+        this.prefix = prefix;
+    }
+
+    public String getParam() {
+        return param;
+    }
+
+    public void setParam(String param) {
+        this.param = param;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", payVestId=").append(payVestId);
+        sb.append(", payTypeId=").append(payTypeId);
+        sb.append(", prefix=").append(prefix);
+        sb.append(", param=").append(param);
+        sb.append("]");
+        return sb.toString();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        PayVest other = (PayVest) that;
+        return (this.getPayVestId() == null ? other.getPayVestId() == null : this.getPayVestId().equals(other.getPayVestId()))
+            && (this.getPayTypeId() == null ? other.getPayTypeId() == null : this.getPayTypeId().equals(other.getPayTypeId()))
+            && (this.getPrefix() == null ? other.getPrefix() == null : this.getPrefix().equals(other.getPrefix()))
+            && (this.getParam() == null ? other.getParam() == null : this.getParam().equals(other.getParam()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getPayVestId() == null) ? 0 : getPayVestId().hashCode());
+        result = prime * result + ((getPayTypeId() == null) ? 0 : getPayTypeId().hashCode());
+        result = prime * result + ((getPrefix() == null) ? 0 : getPrefix().hashCode());
+        result = prime * result + ((getParam() == null) ? 0 : getParam().hashCode());
+        return result;
+    }
+}

+ 483 - 0
zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/model/PayVestExample.java

@@ -0,0 +1,483 @@
+package com.zheng.pay.dao.model;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class PayVestExample implements Serializable {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer limit;
+
+    private Integer offset;
+
+    public PayVestExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    public void setLimit(Integer limit) {
+        this.limit = limit;
+    }
+
+    public Integer getLimit() {
+        return limit;
+    }
+
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    public Integer getOffset() {
+        return offset;
+    }
+
+    protected abstract static class GeneratedCriteria implements Serializable {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        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 andPayVestIdIsNull() {
+            addCriterion("pay_vest_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVestIdIsNotNull() {
+            addCriterion("pay_vest_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVestIdEqualTo(Integer value) {
+            addCriterion("pay_vest_id =", value, "payVestId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVestIdNotEqualTo(Integer value) {
+            addCriterion("pay_vest_id <>", value, "payVestId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVestIdGreaterThan(Integer value) {
+            addCriterion("pay_vest_id >", value, "payVestId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVestIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_vest_id >=", value, "payVestId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVestIdLessThan(Integer value) {
+            addCriterion("pay_vest_id <", value, "payVestId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVestIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_vest_id <=", value, "payVestId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVestIdIn(List<Integer> values) {
+            addCriterion("pay_vest_id in", values, "payVestId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVestIdNotIn(List<Integer> values) {
+            addCriterion("pay_vest_id not in", values, "payVestId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVestIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_vest_id between", value1, value2, "payVestId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayVestIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_vest_id not between", value1, value2, "payVestId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdIsNull() {
+            addCriterion("pay_type_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdIsNotNull() {
+            addCriterion("pay_type_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdEqualTo(Integer value) {
+            addCriterion("pay_type_id =", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdNotEqualTo(Integer value) {
+            addCriterion("pay_type_id <>", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdGreaterThan(Integer value) {
+            addCriterion("pay_type_id >", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pay_type_id >=", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdLessThan(Integer value) {
+            addCriterion("pay_type_id <", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pay_type_id <=", value, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdIn(List<Integer> values) {
+            addCriterion("pay_type_id in", values, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdNotIn(List<Integer> values) {
+            addCriterion("pay_type_id not in", values, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdBetween(Integer value1, Integer value2) {
+            addCriterion("pay_type_id between", value1, value2, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPayTypeIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pay_type_id not between", value1, value2, "payTypeId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixIsNull() {
+            addCriterion("prefix is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixIsNotNull() {
+            addCriterion("prefix is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixEqualTo(String value) {
+            addCriterion("prefix =", value, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixNotEqualTo(String value) {
+            addCriterion("prefix <>", value, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixGreaterThan(String value) {
+            addCriterion("prefix >", value, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixGreaterThanOrEqualTo(String value) {
+            addCriterion("prefix >=", value, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixLessThan(String value) {
+            addCriterion("prefix <", value, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixLessThanOrEqualTo(String value) {
+            addCriterion("prefix <=", value, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixLike(String value) {
+            addCriterion("prefix like", value, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixNotLike(String value) {
+            addCriterion("prefix not like", value, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixIn(List<String> values) {
+            addCriterion("prefix in", values, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixNotIn(List<String> values) {
+            addCriterion("prefix not in", values, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixBetween(String value1, String value2) {
+            addCriterion("prefix between", value1, value2, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andPrefixNotBetween(String value1, String value2) {
+            addCriterion("prefix not between", value1, value2, "prefix");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamIsNull() {
+            addCriterion("param is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamIsNotNull() {
+            addCriterion("param is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamEqualTo(String value) {
+            addCriterion("param =", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamNotEqualTo(String value) {
+            addCriterion("param <>", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamGreaterThan(String value) {
+            addCriterion("param >", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamGreaterThanOrEqualTo(String value) {
+            addCriterion("param >=", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamLessThan(String value) {
+            addCriterion("param <", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamLessThanOrEqualTo(String value) {
+            addCriterion("param <=", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamLike(String value) {
+            addCriterion("param like", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamNotLike(String value) {
+            addCriterion("param not like", value, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamIn(List<String> values) {
+            addCriterion("param in", values, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamNotIn(List<String> values) {
+            addCriterion("param not in", values, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamBetween(String value1, String value2) {
+            addCriterion("param between", value1, value2, "param");
+            return (Criteria) this;
+        }
+
+        public Criteria andParamNotBetween(String value1, String value2) {
+            addCriterion("param not between", value1, value2, "param");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria implements Serializable {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion implements Serializable {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        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;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 62 - 49
zheng-pay/zheng-pay-dao/src/main/resources/generatorConfig.xml

@@ -2,63 +2,76 @@
 <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd" >
 <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd" >
 <generatorConfiguration>
 <generatorConfiguration>
 
 
-	<!-- 配置文件 -->
-	<properties resource="jdbc.properties"></properties>
+    <!-- 配置文件 -->
+    <properties resource="jdbc.properties"></properties>
 
 
-	<!-- mysql驱动包 -->
-	<classPathEntry location="${classPathEntry}" />
+    <!-- mysql驱动包 -->
+    <classPathEntry location="${classPathEntry}" />
 
 
-	<context id="context" targetRuntime="MyBatis3">
+    <context id="context" targetRuntime="MyBatis3">
 
 
-		<property name="javaFileEncoding" value="UTF-8"/>
+        <property name="javaFileEncoding" value="UTF-8"/>
 
 
-		<!-- 由于beginningDelimiter和endingDelimiter的默认值为双引号("),在Mysql中不能这么写,所以还要将这两个默认值改为**反单引号(`)**,配置如下:  -->
-		<property name="beginningDelimiter" value=""/>
-		<property name="endingDelimiter" value=""/>
+        <!-- 由于beginningDelimiter和endingDelimiter的默认值为双引号("),在Mysql中不能这么写,所以还要将这两个默认值改为**反单引号(`)**,配置如下:  -->
+        <property name="beginningDelimiter" value=""/>
+        <property name="endingDelimiter" value=""/>
 
 
-		<!-- 为生成的Java模型创建一个toString方法 -->
+        <!-- 为生成的Java模型创建一个toString方法 -->
         <plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
         <plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
 
 
-		<!-- 为生成的Java模型类添加序列化接口,并生成serialVersionUID字段 -->
-		<plugin type="com.zheng.common.plugin.SerializablePlugin">
-			<property name="suppressJavaInterface" value="false"/>
-		</plugin>
+        <!-- 为生成的Java模型类添加序列化接口,并生成serialVersionUID字段 -->
+        <plugin type="com.zheng.common.plugin.SerializablePlugin">
+            <property name="suppressJavaInterface" value="false"/>
+        </plugin>
 
 
-		<!-- 生成一个新的selectByExample方法,这个方法可以接受一个RowBounds参数,主要用来实现分页 -->
+        <!-- 生成一个新的selectByExample方法,这个方法可以接受一个RowBounds参数,主要用来实现分页 -->
         <plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
         <plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
 
 
-		<!-- 生成在XML中的<cache>元素 -->
-		<plugin type="org.mybatis.generator.plugins.CachePlugin"></plugin>
-
-		<!-- Java模型生成equals和hashcode方法 -->
-		<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>
-
-		<!-- 生成的代码去掉注释 -->
-		<commentGenerator>
-			<property name="suppressAllComments" value="true" />
-		</commentGenerator>
-
-		<!-- 数据库连接 -->
-		<jdbcConnection driverClass="${jdbc.driver}"
-			connectionURL="${jdbc.url}"
-			userId="${jdbc.username}"
-			password="${jdbc.password}" />
-
-		<!-- model生成 -->
-		<javaModelGenerator targetPackage="${generator.javaModelGenerator.targetPackage}" targetProject="src/main/java" />
-
-		<!-- MapperXML生成 -->
-		<sqlMapGenerator targetPackage="${generator.sqlMapGenerator.targetPackage}" targetProject="src/main/java" />
-
-		<!-- Mapper接口生成 -->
-		<javaClientGenerator targetPackage="${generator.javaClientGenerator.targetPackage}" targetProject="src/main/java" type="XMLMAPPER" />
-
-		<!-- 需要映射的表 -->
-		<table tableName="user" domainObjectName="User">
-			<generatedKey column="id" sqlStatement="MySql" identity="true" />
-		</table>
-		<table tableName="book" domainObjectName="Book">
-			<generatedKey column="id" sqlStatement="MySql" identity="true" />
-		</table>
-	</context>
+        <!-- 生成在XML中的<cache>元素 -->
+        <plugin type="org.mybatis.generator.plugins.CachePlugin">
+            <!-- 使用ehcache -->
+            <property name="cache_type" value="org.mybatis.caches.ehcache.LoggingEhcache" />
+            <!-- 内置cache配置 -->
+            <!--
+            <property name="cache_eviction" value="LRU" />
+            <property name="cache_flushInterval" value="60000" />
+            <property name="cache_readOnly" value="true" />
+            <property name="cache_size" value="1024" />
+            -->
+        </plugin>
+
+        <!-- Java模型生成equals和hashcode方法 -->
+        <plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>
+
+        <!-- 生成的代码去掉注释 -->
+        <commentGenerator>
+            <property name="suppressAllComments" value="true" />
+        </commentGenerator>
+
+        <!-- 数据库连接 -->
+        <jdbcConnection driverClass="${jdbc.driver}"
+                        connectionURL="${jdbc.url}"
+                        userId="${jdbc.username}"
+                        password="${jdbc.password}" />
+
+        <!-- model生成 -->
+        <javaModelGenerator targetPackage="com.zheng.pay.dao.model" targetProject="src/main/java" />
+
+        <!-- MapperXML生成 -->
+        <sqlMapGenerator targetPackage="com.zheng.pay.dao.mapper" targetProject="src/main/java" />
+
+        <!-- Mapper接口生成 -->
+        <javaClientGenerator targetPackage="com.zheng.pay.dao.mapper" targetProject="src/main/java" type="XMLMAPPER" />
+
+        <!-- 需要映射的表 -->
+                <table tableName="pay_in_order" domainObjectName="PayInOrder"></table>
+                <table tableName="pay_in_order_detail" domainObjectName="PayInOrderDetail"></table>
+                <table tableName="pay_mch" domainObjectName="PayMch"></table>
+                <table tableName="pay_out_order" domainObjectName="PayOutOrder"></table>
+                <table tableName="pay_out_order_detail" domainObjectName="PayOutOrderDetail"></table>
+                <table tableName="pay_pay" domainObjectName="PayPay"></table>
+                <table tableName="pay_type" domainObjectName="PayType"></table>
+                <table tableName="pay_vendor" domainObjectName="PayVendor"></table>
+                <table tableName="pay_vest" domainObjectName="PayVest"></table>
+            </context>
 </generatorConfiguration>
 </generatorConfiguration>

+ 1 - 4
zheng-pay/zheng-pay-dao/src/main/resources/jdbc.properties

@@ -3,7 +3,4 @@ jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding
 jdbc.username=root
 jdbc.username=root
 jdbc.password=123456
 jdbc.password=123456
 
 
-classPathEntry=D:/mysql-connector-java-5.1.34.jar
-generator.javaModelGenerator.targetPackage=com.zheng.pay.dao.model
-generator.sqlMapGenerator.targetPackage=com.zheng.pay.dao.mapper
-generator.javaClientGenerator.targetPackage=com.zheng.pay.dao.mapper
+classPathEntry=D:/mysql-connector-java-5.1.34.jar