Ver código fonte

消息推送

wanghui 8 anos atrás
pai
commit
75b6054835
24 arquivos alterados com 5604 adições e 112 exclusões
  1. 1 1
      GeneratorConfig.xml
  2. 1 0
      src/main/java/com/goafanti/app/controller/AppAchievementDemandController.java
  3. 1 0
      src/main/java/com/goafanti/app/controller/AppApiController.java
  4. 64 0
      src/main/java/com/goafanti/common/dao/TFundingRecordersMapper.java
  5. 75 0
      src/main/java/com/goafanti/common/dao/TOrderMapper.java
  6. 337 0
      src/main/java/com/goafanti/common/mapper/TFundingRecordersMapper.xml
  7. 589 0
      src/main/java/com/goafanti/common/mapper/TOrderMapper.xml
  8. 468 0
      src/main/java/com/goafanti/common/model/TFundingRecorders.java
  9. 1184 0
      src/main/java/com/goafanti/common/model/TFundingRecordersExample.java
  10. 560 0
      src/main/java/com/goafanti/common/model/TOrder.java
  11. 1753 0
      src/main/java/com/goafanti/common/model/TOrderExample.java
  12. 110 111
      src/main/java/com/goafanti/core/mybatis/JDBCIdGenerator.java
  13. 1 0
      src/main/java/com/goafanti/message/service/impl/MessageServiceImpl.java
  14. 12 0
      src/main/java/com/goafanti/order/controller/OrderController.java
  15. 56 0
      src/main/java/com/goafanti/order/enums/IntentionSate.java
  16. 60 0
      src/main/java/com/goafanti/order/enums/LiquidationSate.java
  17. 52 0
      src/main/java/com/goafanti/order/enums/OrderChannel.java
  18. 56 0
      src/main/java/com/goafanti/order/enums/OrderState.java
  19. 52 0
      src/main/java/com/goafanti/order/enums/PayChannel.java
  20. 56 0
      src/main/java/com/goafanti/order/enums/PaymentState.java
  21. 54 0
      src/main/java/com/goafanti/order/enums/TradingState.java
  22. 50 0
      src/main/java/com/goafanti/order/enums/TransactionState.java
  23. 5 0
      src/main/java/com/goafanti/order/service/OrderService.java
  24. 7 0
      src/main/java/com/goafanti/order/service/impl/OrderServiceImpl.java

+ 1 - 1
GeneratorConfig.xml

@@ -8,6 +8,6 @@
     <javaModelGenerator targetPackage="com.goafanti.common.model" targetProject="AFT" />
     <sqlMapGenerator targetPackage="com.goafanti.common.mapper" targetProject="AFT" />
     <javaClientGenerator targetPackage="com.goafanti.common.dao" targetProject="AFT" type="XMLMAPPER" />
-    <table schema="aft" tableName="jpush_easemob_account"/>
+    <table schema="aft" tableName="t_order"/>
   </context>
 </generatorConfiguration>

+ 1 - 0
src/main/java/com/goafanti/app/controller/AppAchievementDemandController.java

@@ -143,4 +143,5 @@ public class AppAchievementDemandController extends BaseApiController {
 		return res;
 	}
 	
+	
 }

+ 1 - 0
src/main/java/com/goafanti/app/controller/AppApiController.java

@@ -160,4 +160,5 @@ public class AppApiController extends BaseApiController {
 		messageServiceImpl.updateMessageConsumer(messageId);
 		return res;
 	}
+
 }

+ 64 - 0
src/main/java/com/goafanti/common/dao/TFundingRecordersMapper.java

@@ -0,0 +1,64 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.TFundingRecorders;
+import com.goafanti.common.model.TFundingRecordersExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface TFundingRecordersMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table t_funding_recorders
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    long countByExample(TFundingRecordersExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table t_funding_recorders
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    int deleteByExample(TFundingRecordersExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table t_funding_recorders
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    int insert(TFundingRecorders record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table t_funding_recorders
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    int insertSelective(TFundingRecorders record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table t_funding_recorders
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    List<TFundingRecorders> selectByExample(TFundingRecordersExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table t_funding_recorders
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    int updateByExampleSelective(@Param("record") TFundingRecorders record, @Param("example") TFundingRecordersExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table t_funding_recorders
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    int updateByExample(@Param("record") TFundingRecorders record, @Param("example") TFundingRecordersExample example);
+}

+ 75 - 0
src/main/java/com/goafanti/common/dao/TOrderMapper.java

@@ -0,0 +1,75 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.TOrder;
+import com.goafanti.common.model.TOrderExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface TOrderMapper {
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	long countByExample(TOrderExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	int deleteByExample(TOrderExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	int deleteByPrimaryKey(Long orderNo);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	int insert(TOrder record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	int insertSelective(TOrder record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	List<TOrder> selectByExample(TOrderExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	TOrder selectByPrimaryKey(Long orderNo);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	int updateByExampleSelective(@Param("record") TOrder record, @Param("example") TOrderExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	int updateByExample(@Param("record") TOrder record, @Param("example") TOrderExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	int updateByPrimaryKeySelective(TOrder record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	int updateByPrimaryKey(TOrder record);
+}

+ 337 - 0
src/main/java/com/goafanti/common/mapper/TFundingRecordersMapper.xml

@@ -0,0 +1,337 @@
+<?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.goafanti.common.dao.TFundingRecordersMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.TFundingRecorders">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 14:28:37 CST 2017.
+    -->
+    <result column="id" jdbcType="BIGINT" property="id" />
+    <result column="order_id" jdbcType="BIGINT" property="orderId" />
+    <result column="creater" jdbcType="VARCHAR" property="creater" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="payee_id" jdbcType="VARCHAR" property="payeeId" />
+    <result column="payer_id" jdbcType="VARCHAR" property="payerId" />
+    <result column="transaction_amount" jdbcType="DECIMAL" property="transactionAmount" />
+    <result column="transaction_subject" jdbcType="INTEGER" property="transactionSubject" />
+    <result column="transaction_channel" jdbcType="INTEGER" property="transactionChannel" />
+    <result column="transaction_mode" jdbcType="INTEGER" property="transactionMode" />
+    <result column="comments" jdbcType="VARCHAR" property="comments" />
+    <result column="confirm_sign" jdbcType="BIT" property="confirmSign" />
+    <result column="delete_sign" jdbcType="BIT" property="deleteSign" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 14:28:37 CST 2017.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 14:28:37 CST 2017.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 14:28:37 CST 2017.
+    -->
+    id, order_id, creater, create_time, update_time, payee_id, payer_id, transaction_amount, 
+    transaction_subject, transaction_channel, transaction_mode, comments, confirm_sign, 
+    delete_sign
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.TFundingRecordersExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 14:28:37 CST 2017.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from t_funding_recorders
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.TFundingRecordersExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 14:28:37 CST 2017.
+    -->
+    delete from t_funding_recorders
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.TFundingRecorders">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 14:28:37 CST 2017.
+    -->
+    insert into t_funding_recorders (id, order_id, creater, 
+      create_time, update_time, payee_id, 
+      payer_id, transaction_amount, transaction_subject, 
+      transaction_channel, transaction_mode, comments, 
+      confirm_sign, delete_sign)
+    values (#{id,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{creater,jdbcType=VARCHAR}, 
+      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{payeeId,jdbcType=VARCHAR}, 
+      #{payerId,jdbcType=VARCHAR}, #{transactionAmount,jdbcType=DECIMAL}, #{transactionSubject,jdbcType=INTEGER}, 
+      #{transactionChannel,jdbcType=INTEGER}, #{transactionMode,jdbcType=INTEGER}, #{comments,jdbcType=VARCHAR}, 
+      #{confirmSign,jdbcType=BIT}, #{deleteSign,jdbcType=BIT})
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.TFundingRecorders">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 14:28:37 CST 2017.
+    -->
+    insert into t_funding_recorders
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="orderId != null">
+        order_id,
+      </if>
+      <if test="creater != null">
+        creater,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+      <if test="payeeId != null">
+        payee_id,
+      </if>
+      <if test="payerId != null">
+        payer_id,
+      </if>
+      <if test="transactionAmount != null">
+        transaction_amount,
+      </if>
+      <if test="transactionSubject != null">
+        transaction_subject,
+      </if>
+      <if test="transactionChannel != null">
+        transaction_channel,
+      </if>
+      <if test="transactionMode != null">
+        transaction_mode,
+      </if>
+      <if test="comments != null">
+        comments,
+      </if>
+      <if test="confirmSign != null">
+        confirm_sign,
+      </if>
+      <if test="deleteSign != null">
+        delete_sign,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=BIGINT},
+      </if>
+      <if test="orderId != null">
+        #{orderId,jdbcType=BIGINT},
+      </if>
+      <if test="creater != null">
+        #{creater,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="payeeId != null">
+        #{payeeId,jdbcType=VARCHAR},
+      </if>
+      <if test="payerId != null">
+        #{payerId,jdbcType=VARCHAR},
+      </if>
+      <if test="transactionAmount != null">
+        #{transactionAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="transactionSubject != null">
+        #{transactionSubject,jdbcType=INTEGER},
+      </if>
+      <if test="transactionChannel != null">
+        #{transactionChannel,jdbcType=INTEGER},
+      </if>
+      <if test="transactionMode != null">
+        #{transactionMode,jdbcType=INTEGER},
+      </if>
+      <if test="comments != null">
+        #{comments,jdbcType=VARCHAR},
+      </if>
+      <if test="confirmSign != null">
+        #{confirmSign,jdbcType=BIT},
+      </if>
+      <if test="deleteSign != null">
+        #{deleteSign,jdbcType=BIT},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.TFundingRecordersExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 14:28:37 CST 2017.
+    -->
+    select count(*) from t_funding_recorders
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 14:28:37 CST 2017.
+    -->
+    update t_funding_recorders
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=BIGINT},
+      </if>
+      <if test="record.orderId != null">
+        order_id = #{record.orderId,jdbcType=BIGINT},
+      </if>
+      <if test="record.creater != null">
+        creater = #{record.creater,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.updateTime != null">
+        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.payeeId != null">
+        payee_id = #{record.payeeId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.payerId != null">
+        payer_id = #{record.payerId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.transactionAmount != null">
+        transaction_amount = #{record.transactionAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="record.transactionSubject != null">
+        transaction_subject = #{record.transactionSubject,jdbcType=INTEGER},
+      </if>
+      <if test="record.transactionChannel != null">
+        transaction_channel = #{record.transactionChannel,jdbcType=INTEGER},
+      </if>
+      <if test="record.transactionMode != null">
+        transaction_mode = #{record.transactionMode,jdbcType=INTEGER},
+      </if>
+      <if test="record.comments != null">
+        comments = #{record.comments,jdbcType=VARCHAR},
+      </if>
+      <if test="record.confirmSign != null">
+        confirm_sign = #{record.confirmSign,jdbcType=BIT},
+      </if>
+      <if test="record.deleteSign != null">
+        delete_sign = #{record.deleteSign,jdbcType=BIT},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 14:28:37 CST 2017.
+    -->
+    update t_funding_recorders
+    set id = #{record.id,jdbcType=BIGINT},
+      order_id = #{record.orderId,jdbcType=BIGINT},
+      creater = #{record.creater,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+      payee_id = #{record.payeeId,jdbcType=VARCHAR},
+      payer_id = #{record.payerId,jdbcType=VARCHAR},
+      transaction_amount = #{record.transactionAmount,jdbcType=DECIMAL},
+      transaction_subject = #{record.transactionSubject,jdbcType=INTEGER},
+      transaction_channel = #{record.transactionChannel,jdbcType=INTEGER},
+      transaction_mode = #{record.transactionMode,jdbcType=INTEGER},
+      comments = #{record.comments,jdbcType=VARCHAR},
+      confirm_sign = #{record.confirmSign,jdbcType=BIT},
+      delete_sign = #{record.deleteSign,jdbcType=BIT}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+</mapper>

+ 589 - 0
src/main/java/com/goafanti/common/mapper/TOrderMapper.xml

@@ -0,0 +1,589 @@
+<?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.goafanti.common.dao.TOrderMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    <id column="order_no" jdbcType="BIGINT" property="orderNo" />
+    <result column="creater" jdbcType="VARCHAR" property="creater" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="buyer_id" jdbcType="VARCHAR" property="buyerId" />
+    <result column="seller_id" jdbcType="VARCHAR" property="sellerId" />
+    <result column="commodity_id" jdbcType="VARCHAR" property="commodityId" />
+    <result column="commodity_type" jdbcType="INTEGER" property="commodityType" />
+    <result column="first_payment" jdbcType="DECIMAL" property="firstPayment" />
+    <result column="total_payment" jdbcType="DECIMAL" property="totalPayment" />
+    <result column="brokerage_amount" jdbcType="DECIMAL" property="brokerageAmount" />
+    <result column="brokerage_proportion" jdbcType="DECIMAL" property="brokerageProportion" />
+    <result column="actually_first_payment" jdbcType="DECIMAL" property="actuallyFirstPayment" />
+    <result column="actually_total_payment" jdbcType="DECIMAL" property="actuallyTotalPayment" />
+    <result column="actually_brokerage_amount" jdbcType="DECIMAL" property="actuallyBrokerageAmount" />
+    <result column="delete_sign" jdbcType="BIT" property="deleteSign" />
+    <result column="order_status" jdbcType="INTEGER" property="orderStatus" />
+    <result column="intention_status" jdbcType="INTEGER" property="intentionStatus" />
+    <result column="trading_status" jdbcType="INTEGER" property="tradingStatus" />
+    <result column="technology_transfer_progress" jdbcType="INTEGER" property="technologyTransferProgress" />
+    <result column="payment_status" jdbcType="INTEGER" property="paymentStatus" />
+    <result column="liquidation_status" jdbcType="INTEGER" property="liquidationStatus" />
+    <result column="order_follow" jdbcType="VARCHAR" property="orderFollow" />
+    <result column="order_channel" jdbcType="INTEGER" property="orderChannel" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    order_no, creater, create_time, update_time, buyer_id, seller_id, commodity_id, commodity_type, 
+    first_payment, total_payment, brokerage_amount, brokerage_proportion, actually_first_payment, 
+    actually_total_payment, actually_brokerage_amount, delete_sign, order_status, intention_status, 
+    trading_status, technology_transfer_progress, payment_status, liquidation_status, 
+    order_follow, order_channel
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.TOrderExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from t_order
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from t_order
+    where order_no = #{orderNo,jdbcType=BIGINT}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    delete from t_order
+    where order_no = #{orderNo,jdbcType=BIGINT}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.TOrderExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    delete from t_order
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.TOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    insert into t_order (order_no, creater, create_time, 
+      update_time, buyer_id, seller_id, 
+      commodity_id, commodity_type, first_payment, 
+      total_payment, brokerage_amount, brokerage_proportion, 
+      actually_first_payment, actually_total_payment, 
+      actually_brokerage_amount, delete_sign, order_status, 
+      intention_status, trading_status, technology_transfer_progress, 
+      payment_status, liquidation_status, order_follow, 
+      order_channel)
+    values (#{orderNo,jdbcType=BIGINT}, #{creater,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{buyerId,jdbcType=VARCHAR}, #{sellerId,jdbcType=VARCHAR}, 
+      #{commodityId,jdbcType=VARCHAR}, #{commodityType,jdbcType=INTEGER}, #{firstPayment,jdbcType=DECIMAL}, 
+      #{totalPayment,jdbcType=DECIMAL}, #{brokerageAmount,jdbcType=DECIMAL}, #{brokerageProportion,jdbcType=DECIMAL}, 
+      #{actuallyFirstPayment,jdbcType=DECIMAL}, #{actuallyTotalPayment,jdbcType=DECIMAL}, 
+      #{actuallyBrokerageAmount,jdbcType=DECIMAL}, #{deleteSign,jdbcType=BIT}, #{orderStatus,jdbcType=INTEGER}, 
+      #{intentionStatus,jdbcType=INTEGER}, #{tradingStatus,jdbcType=INTEGER}, #{technologyTransferProgress,jdbcType=INTEGER}, 
+      #{paymentStatus,jdbcType=INTEGER}, #{liquidationStatus,jdbcType=INTEGER}, #{orderFollow,jdbcType=VARCHAR}, 
+      #{orderChannel,jdbcType=INTEGER})
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.TOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    insert into t_order
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="orderNo != null">
+        order_no,
+      </if>
+      <if test="creater != null">
+        creater,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+      <if test="buyerId != null">
+        buyer_id,
+      </if>
+      <if test="sellerId != null">
+        seller_id,
+      </if>
+      <if test="commodityId != null">
+        commodity_id,
+      </if>
+      <if test="commodityType != null">
+        commodity_type,
+      </if>
+      <if test="firstPayment != null">
+        first_payment,
+      </if>
+      <if test="totalPayment != null">
+        total_payment,
+      </if>
+      <if test="brokerageAmount != null">
+        brokerage_amount,
+      </if>
+      <if test="brokerageProportion != null">
+        brokerage_proportion,
+      </if>
+      <if test="actuallyFirstPayment != null">
+        actually_first_payment,
+      </if>
+      <if test="actuallyTotalPayment != null">
+        actually_total_payment,
+      </if>
+      <if test="actuallyBrokerageAmount != null">
+        actually_brokerage_amount,
+      </if>
+      <if test="deleteSign != null">
+        delete_sign,
+      </if>
+      <if test="orderStatus != null">
+        order_status,
+      </if>
+      <if test="intentionStatus != null">
+        intention_status,
+      </if>
+      <if test="tradingStatus != null">
+        trading_status,
+      </if>
+      <if test="technologyTransferProgress != null">
+        technology_transfer_progress,
+      </if>
+      <if test="paymentStatus != null">
+        payment_status,
+      </if>
+      <if test="liquidationStatus != null">
+        liquidation_status,
+      </if>
+      <if test="orderFollow != null">
+        order_follow,
+      </if>
+      <if test="orderChannel != null">
+        order_channel,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="orderNo != null">
+        #{orderNo,jdbcType=BIGINT},
+      </if>
+      <if test="creater != null">
+        #{creater,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="buyerId != null">
+        #{buyerId,jdbcType=VARCHAR},
+      </if>
+      <if test="sellerId != null">
+        #{sellerId,jdbcType=VARCHAR},
+      </if>
+      <if test="commodityId != null">
+        #{commodityId,jdbcType=VARCHAR},
+      </if>
+      <if test="commodityType != null">
+        #{commodityType,jdbcType=INTEGER},
+      </if>
+      <if test="firstPayment != null">
+        #{firstPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="totalPayment != null">
+        #{totalPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="brokerageAmount != null">
+        #{brokerageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="brokerageProportion != null">
+        #{brokerageProportion,jdbcType=DECIMAL},
+      </if>
+      <if test="actuallyFirstPayment != null">
+        #{actuallyFirstPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="actuallyTotalPayment != null">
+        #{actuallyTotalPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="actuallyBrokerageAmount != null">
+        #{actuallyBrokerageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="deleteSign != null">
+        #{deleteSign,jdbcType=BIT},
+      </if>
+      <if test="orderStatus != null">
+        #{orderStatus,jdbcType=INTEGER},
+      </if>
+      <if test="intentionStatus != null">
+        #{intentionStatus,jdbcType=INTEGER},
+      </if>
+      <if test="tradingStatus != null">
+        #{tradingStatus,jdbcType=INTEGER},
+      </if>
+      <if test="technologyTransferProgress != null">
+        #{technologyTransferProgress,jdbcType=INTEGER},
+      </if>
+      <if test="paymentStatus != null">
+        #{paymentStatus,jdbcType=INTEGER},
+      </if>
+      <if test="liquidationStatus != null">
+        #{liquidationStatus,jdbcType=INTEGER},
+      </if>
+      <if test="orderFollow != null">
+        #{orderFollow,jdbcType=VARCHAR},
+      </if>
+      <if test="orderChannel != null">
+        #{orderChannel,jdbcType=INTEGER},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.TOrderExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    select count(*) from t_order
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    update t_order
+    <set>
+      <if test="record.orderNo != null">
+        order_no = #{record.orderNo,jdbcType=BIGINT},
+      </if>
+      <if test="record.creater != null">
+        creater = #{record.creater,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.updateTime != null">
+        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.buyerId != null">
+        buyer_id = #{record.buyerId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.sellerId != null">
+        seller_id = #{record.sellerId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.commodityId != null">
+        commodity_id = #{record.commodityId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.commodityType != null">
+        commodity_type = #{record.commodityType,jdbcType=INTEGER},
+      </if>
+      <if test="record.firstPayment != null">
+        first_payment = #{record.firstPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="record.totalPayment != null">
+        total_payment = #{record.totalPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="record.brokerageAmount != null">
+        brokerage_amount = #{record.brokerageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="record.brokerageProportion != null">
+        brokerage_proportion = #{record.brokerageProportion,jdbcType=DECIMAL},
+      </if>
+      <if test="record.actuallyFirstPayment != null">
+        actually_first_payment = #{record.actuallyFirstPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="record.actuallyTotalPayment != null">
+        actually_total_payment = #{record.actuallyTotalPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="record.actuallyBrokerageAmount != null">
+        actually_brokerage_amount = #{record.actuallyBrokerageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="record.deleteSign != null">
+        delete_sign = #{record.deleteSign,jdbcType=BIT},
+      </if>
+      <if test="record.orderStatus != null">
+        order_status = #{record.orderStatus,jdbcType=INTEGER},
+      </if>
+      <if test="record.intentionStatus != null">
+        intention_status = #{record.intentionStatus,jdbcType=INTEGER},
+      </if>
+      <if test="record.tradingStatus != null">
+        trading_status = #{record.tradingStatus,jdbcType=INTEGER},
+      </if>
+      <if test="record.technologyTransferProgress != null">
+        technology_transfer_progress = #{record.technologyTransferProgress,jdbcType=INTEGER},
+      </if>
+      <if test="record.paymentStatus != null">
+        payment_status = #{record.paymentStatus,jdbcType=INTEGER},
+      </if>
+      <if test="record.liquidationStatus != null">
+        liquidation_status = #{record.liquidationStatus,jdbcType=INTEGER},
+      </if>
+      <if test="record.orderFollow != null">
+        order_follow = #{record.orderFollow,jdbcType=VARCHAR},
+      </if>
+      <if test="record.orderChannel != null">
+        order_channel = #{record.orderChannel,jdbcType=INTEGER},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    update t_order
+    set order_no = #{record.orderNo,jdbcType=BIGINT},
+      creater = #{record.creater,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+      buyer_id = #{record.buyerId,jdbcType=VARCHAR},
+      seller_id = #{record.sellerId,jdbcType=VARCHAR},
+      commodity_id = #{record.commodityId,jdbcType=VARCHAR},
+      commodity_type = #{record.commodityType,jdbcType=INTEGER},
+      first_payment = #{record.firstPayment,jdbcType=DECIMAL},
+      total_payment = #{record.totalPayment,jdbcType=DECIMAL},
+      brokerage_amount = #{record.brokerageAmount,jdbcType=DECIMAL},
+      brokerage_proportion = #{record.brokerageProportion,jdbcType=DECIMAL},
+      actually_first_payment = #{record.actuallyFirstPayment,jdbcType=DECIMAL},
+      actually_total_payment = #{record.actuallyTotalPayment,jdbcType=DECIMAL},
+      actually_brokerage_amount = #{record.actuallyBrokerageAmount,jdbcType=DECIMAL},
+      delete_sign = #{record.deleteSign,jdbcType=BIT},
+      order_status = #{record.orderStatus,jdbcType=INTEGER},
+      intention_status = #{record.intentionStatus,jdbcType=INTEGER},
+      trading_status = #{record.tradingStatus,jdbcType=INTEGER},
+      technology_transfer_progress = #{record.technologyTransferProgress,jdbcType=INTEGER},
+      payment_status = #{record.paymentStatus,jdbcType=INTEGER},
+      liquidation_status = #{record.liquidationStatus,jdbcType=INTEGER},
+      order_follow = #{record.orderFollow,jdbcType=VARCHAR},
+      order_channel = #{record.orderChannel,jdbcType=INTEGER}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    update t_order
+    <set>
+      <if test="creater != null">
+        creater = #{creater,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="buyerId != null">
+        buyer_id = #{buyerId,jdbcType=VARCHAR},
+      </if>
+      <if test="sellerId != null">
+        seller_id = #{sellerId,jdbcType=VARCHAR},
+      </if>
+      <if test="commodityId != null">
+        commodity_id = #{commodityId,jdbcType=VARCHAR},
+      </if>
+      <if test="commodityType != null">
+        commodity_type = #{commodityType,jdbcType=INTEGER},
+      </if>
+      <if test="firstPayment != null">
+        first_payment = #{firstPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="totalPayment != null">
+        total_payment = #{totalPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="brokerageAmount != null">
+        brokerage_amount = #{brokerageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="brokerageProportion != null">
+        brokerage_proportion = #{brokerageProportion,jdbcType=DECIMAL},
+      </if>
+      <if test="actuallyFirstPayment != null">
+        actually_first_payment = #{actuallyFirstPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="actuallyTotalPayment != null">
+        actually_total_payment = #{actuallyTotalPayment,jdbcType=DECIMAL},
+      </if>
+      <if test="actuallyBrokerageAmount != null">
+        actually_brokerage_amount = #{actuallyBrokerageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="deleteSign != null">
+        delete_sign = #{deleteSign,jdbcType=BIT},
+      </if>
+      <if test="orderStatus != null">
+        order_status = #{orderStatus,jdbcType=INTEGER},
+      </if>
+      <if test="intentionStatus != null">
+        intention_status = #{intentionStatus,jdbcType=INTEGER},
+      </if>
+      <if test="tradingStatus != null">
+        trading_status = #{tradingStatus,jdbcType=INTEGER},
+      </if>
+      <if test="technologyTransferProgress != null">
+        technology_transfer_progress = #{technologyTransferProgress,jdbcType=INTEGER},
+      </if>
+      <if test="paymentStatus != null">
+        payment_status = #{paymentStatus,jdbcType=INTEGER},
+      </if>
+      <if test="liquidationStatus != null">
+        liquidation_status = #{liquidationStatus,jdbcType=INTEGER},
+      </if>
+      <if test="orderFollow != null">
+        order_follow = #{orderFollow,jdbcType=VARCHAR},
+      </if>
+      <if test="orderChannel != null">
+        order_channel = #{orderChannel,jdbcType=INTEGER},
+      </if>
+    </set>
+    where order_no = #{orderNo,jdbcType=BIGINT}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sat Dec 23 15:43:40 CST 2017.
+    -->
+    update t_order
+    set creater = #{creater,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_time = #{updateTime,jdbcType=TIMESTAMP},
+      buyer_id = #{buyerId,jdbcType=VARCHAR},
+      seller_id = #{sellerId,jdbcType=VARCHAR},
+      commodity_id = #{commodityId,jdbcType=VARCHAR},
+      commodity_type = #{commodityType,jdbcType=INTEGER},
+      first_payment = #{firstPayment,jdbcType=DECIMAL},
+      total_payment = #{totalPayment,jdbcType=DECIMAL},
+      brokerage_amount = #{brokerageAmount,jdbcType=DECIMAL},
+      brokerage_proportion = #{brokerageProportion,jdbcType=DECIMAL},
+      actually_first_payment = #{actuallyFirstPayment,jdbcType=DECIMAL},
+      actually_total_payment = #{actuallyTotalPayment,jdbcType=DECIMAL},
+      actually_brokerage_amount = #{actuallyBrokerageAmount,jdbcType=DECIMAL},
+      delete_sign = #{deleteSign,jdbcType=BIT},
+      order_status = #{orderStatus,jdbcType=INTEGER},
+      intention_status = #{intentionStatus,jdbcType=INTEGER},
+      trading_status = #{tradingStatus,jdbcType=INTEGER},
+      technology_transfer_progress = #{technologyTransferProgress,jdbcType=INTEGER},
+      payment_status = #{paymentStatus,jdbcType=INTEGER},
+      liquidation_status = #{liquidationStatus,jdbcType=INTEGER},
+      order_follow = #{orderFollow,jdbcType=VARCHAR},
+      order_channel = #{orderChannel,jdbcType=INTEGER}
+    where order_no = #{orderNo,jdbcType=BIGINT}
+  </update>
+</mapper>

+ 468 - 0
src/main/java/com/goafanti/common/model/TFundingRecorders.java

@@ -0,0 +1,468 @@
+package com.goafanti.common.model;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class TFundingRecorders {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private Long id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.order_id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private Long orderId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.creater
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private String creater;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.create_time
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private Date createTime;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.update_time
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private Date updateTime;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.payee_id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private String payeeId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.payer_id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private String payerId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.transaction_amount
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private BigDecimal transactionAmount;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.transaction_subject
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private Integer transactionSubject;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.transaction_channel
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private Integer transactionChannel;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.transaction_mode
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private Integer transactionMode;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.comments
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private String comments;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.confirm_sign
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private Boolean confirmSign;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column t_funding_recorders.delete_sign
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    private Boolean deleteSign;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.id
+     *
+     * @return the value of t_funding_recorders.id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public Long getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.id
+     *
+     * @param id the value for t_funding_recorders.id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.order_id
+     *
+     * @return the value of t_funding_recorders.order_id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public Long getOrderId() {
+        return orderId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.order_id
+     *
+     * @param orderId the value for t_funding_recorders.order_id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setOrderId(Long orderId) {
+        this.orderId = orderId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.creater
+     *
+     * @return the value of t_funding_recorders.creater
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public String getCreater() {
+        return creater;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.creater
+     *
+     * @param creater the value for t_funding_recorders.creater
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setCreater(String creater) {
+        this.creater = creater;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.create_time
+     *
+     * @return the value of t_funding_recorders.create_time
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.create_time
+     *
+     * @param createTime the value for t_funding_recorders.create_time
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.update_time
+     *
+     * @return the value of t_funding_recorders.update_time
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.update_time
+     *
+     * @param updateTime the value for t_funding_recorders.update_time
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.payee_id
+     *
+     * @return the value of t_funding_recorders.payee_id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public String getPayeeId() {
+        return payeeId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.payee_id
+     *
+     * @param payeeId the value for t_funding_recorders.payee_id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setPayeeId(String payeeId) {
+        this.payeeId = payeeId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.payer_id
+     *
+     * @return the value of t_funding_recorders.payer_id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public String getPayerId() {
+        return payerId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.payer_id
+     *
+     * @param payerId the value for t_funding_recorders.payer_id
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setPayerId(String payerId) {
+        this.payerId = payerId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.transaction_amount
+     *
+     * @return the value of t_funding_recorders.transaction_amount
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public BigDecimal getTransactionAmount() {
+        return transactionAmount;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.transaction_amount
+     *
+     * @param transactionAmount the value for t_funding_recorders.transaction_amount
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setTransactionAmount(BigDecimal transactionAmount) {
+        this.transactionAmount = transactionAmount;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.transaction_subject
+     *
+     * @return the value of t_funding_recorders.transaction_subject
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public Integer getTransactionSubject() {
+        return transactionSubject;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.transaction_subject
+     *
+     * @param transactionSubject the value for t_funding_recorders.transaction_subject
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setTransactionSubject(Integer transactionSubject) {
+        this.transactionSubject = transactionSubject;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.transaction_channel
+     *
+     * @return the value of t_funding_recorders.transaction_channel
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public Integer getTransactionChannel() {
+        return transactionChannel;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.transaction_channel
+     *
+     * @param transactionChannel the value for t_funding_recorders.transaction_channel
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setTransactionChannel(Integer transactionChannel) {
+        this.transactionChannel = transactionChannel;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.transaction_mode
+     *
+     * @return the value of t_funding_recorders.transaction_mode
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public Integer getTransactionMode() {
+        return transactionMode;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.transaction_mode
+     *
+     * @param transactionMode the value for t_funding_recorders.transaction_mode
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setTransactionMode(Integer transactionMode) {
+        this.transactionMode = transactionMode;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.comments
+     *
+     * @return the value of t_funding_recorders.comments
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public String getComments() {
+        return comments;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.comments
+     *
+     * @param comments the value for t_funding_recorders.comments
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setComments(String comments) {
+        this.comments = comments;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.confirm_sign
+     *
+     * @return the value of t_funding_recorders.confirm_sign
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public Boolean getConfirmSign() {
+        return confirmSign;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.confirm_sign
+     *
+     * @param confirmSign the value for t_funding_recorders.confirm_sign
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setConfirmSign(Boolean confirmSign) {
+        this.confirmSign = confirmSign;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column t_funding_recorders.delete_sign
+     *
+     * @return the value of t_funding_recorders.delete_sign
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public Boolean getDeleteSign() {
+        return deleteSign;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column t_funding_recorders.delete_sign
+     *
+     * @param deleteSign the value for t_funding_recorders.delete_sign
+     *
+     * @mbg.generated Sat Dec 23 14:28:37 CST 2017
+     */
+    public void setDeleteSign(Boolean deleteSign) {
+        this.deleteSign = deleteSign;
+    }
+}

Diferenças do arquivo suprimidas por serem muito extensas
+ 1184 - 0
src/main/java/com/goafanti/common/model/TFundingRecordersExample.java


+ 560 - 0
src/main/java/com/goafanti/common/model/TOrder.java

@@ -0,0 +1,560 @@
+package com.goafanti.common.model;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class TOrder {
+
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.order_no
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Long orderNo;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.creater
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private String creater;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.create_time
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Date createTime;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.update_time
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Date updateTime;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.buyer_id
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private String buyerId;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.seller_id
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private String sellerId;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.commodity_id
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private String commodityId;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.commodity_type
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Integer commodityType;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.first_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private BigDecimal firstPayment;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.total_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private BigDecimal totalPayment;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.brokerage_amount
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private BigDecimal brokerageAmount;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.brokerage_proportion
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private BigDecimal brokerageProportion;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.actually_first_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private BigDecimal actuallyFirstPayment;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.actually_total_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private BigDecimal actuallyTotalPayment;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.actually_brokerage_amount
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private BigDecimal actuallyBrokerageAmount;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.delete_sign
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Boolean deleteSign;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.order_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Integer orderStatus;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.intention_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Integer intentionStatus;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.trading_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Integer tradingStatus;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.technology_transfer_progress
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Integer technologyTransferProgress;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.payment_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Integer paymentStatus;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.liquidation_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Integer liquidationStatus;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.order_follow
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private String orderFollow;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order.order_channel
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	private Integer orderChannel;
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.order_no
+	 * @return  the value of t_order.order_no
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Long getOrderNo() {
+		return orderNo;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.order_no
+	 * @param orderNo  the value for t_order.order_no
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setOrderNo(Long orderNo) {
+		this.orderNo = orderNo;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.creater
+	 * @return  the value of t_order.creater
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public String getCreater() {
+		return creater;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.creater
+	 * @param creater  the value for t_order.creater
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setCreater(String creater) {
+		this.creater = creater;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.create_time
+	 * @return  the value of t_order.create_time
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Date getCreateTime() {
+		return createTime;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.create_time
+	 * @param createTime  the value for t_order.create_time
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setCreateTime(Date createTime) {
+		this.createTime = createTime;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.update_time
+	 * @return  the value of t_order.update_time
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Date getUpdateTime() {
+		return updateTime;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.update_time
+	 * @param updateTime  the value for t_order.update_time
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setUpdateTime(Date updateTime) {
+		this.updateTime = updateTime;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.buyer_id
+	 * @return  the value of t_order.buyer_id
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public String getBuyerId() {
+		return buyerId;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.buyer_id
+	 * @param buyerId  the value for t_order.buyer_id
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setBuyerId(String buyerId) {
+		this.buyerId = buyerId;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.seller_id
+	 * @return  the value of t_order.seller_id
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public String getSellerId() {
+		return sellerId;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.seller_id
+	 * @param sellerId  the value for t_order.seller_id
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setSellerId(String sellerId) {
+		this.sellerId = sellerId;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.commodity_id
+	 * @return  the value of t_order.commodity_id
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public String getCommodityId() {
+		return commodityId;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.commodity_id
+	 * @param commodityId  the value for t_order.commodity_id
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setCommodityId(String commodityId) {
+		this.commodityId = commodityId;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.commodity_type
+	 * @return  the value of t_order.commodity_type
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Integer getCommodityType() {
+		return commodityType;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.commodity_type
+	 * @param commodityType  the value for t_order.commodity_type
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setCommodityType(Integer commodityType) {
+		this.commodityType = commodityType;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.first_payment
+	 * @return  the value of t_order.first_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public BigDecimal getFirstPayment() {
+		return firstPayment;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.first_payment
+	 * @param firstPayment  the value for t_order.first_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setFirstPayment(BigDecimal firstPayment) {
+		this.firstPayment = firstPayment;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.total_payment
+	 * @return  the value of t_order.total_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public BigDecimal getTotalPayment() {
+		return totalPayment;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.total_payment
+	 * @param totalPayment  the value for t_order.total_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setTotalPayment(BigDecimal totalPayment) {
+		this.totalPayment = totalPayment;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.brokerage_amount
+	 * @return  the value of t_order.brokerage_amount
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public BigDecimal getBrokerageAmount() {
+		return brokerageAmount;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.brokerage_amount
+	 * @param brokerageAmount  the value for t_order.brokerage_amount
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setBrokerageAmount(BigDecimal brokerageAmount) {
+		this.brokerageAmount = brokerageAmount;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.brokerage_proportion
+	 * @return  the value of t_order.brokerage_proportion
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public BigDecimal getBrokerageProportion() {
+		return brokerageProportion;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.brokerage_proportion
+	 * @param brokerageProportion  the value for t_order.brokerage_proportion
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setBrokerageProportion(BigDecimal brokerageProportion) {
+		this.brokerageProportion = brokerageProportion;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.actually_first_payment
+	 * @return  the value of t_order.actually_first_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public BigDecimal getActuallyFirstPayment() {
+		return actuallyFirstPayment;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.actually_first_payment
+	 * @param actuallyFirstPayment  the value for t_order.actually_first_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setActuallyFirstPayment(BigDecimal actuallyFirstPayment) {
+		this.actuallyFirstPayment = actuallyFirstPayment;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.actually_total_payment
+	 * @return  the value of t_order.actually_total_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public BigDecimal getActuallyTotalPayment() {
+		return actuallyTotalPayment;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.actually_total_payment
+	 * @param actuallyTotalPayment  the value for t_order.actually_total_payment
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setActuallyTotalPayment(BigDecimal actuallyTotalPayment) {
+		this.actuallyTotalPayment = actuallyTotalPayment;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.actually_brokerage_amount
+	 * @return  the value of t_order.actually_brokerage_amount
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public BigDecimal getActuallyBrokerageAmount() {
+		return actuallyBrokerageAmount;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.actually_brokerage_amount
+	 * @param actuallyBrokerageAmount  the value for t_order.actually_brokerage_amount
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setActuallyBrokerageAmount(BigDecimal actuallyBrokerageAmount) {
+		this.actuallyBrokerageAmount = actuallyBrokerageAmount;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.delete_sign
+	 * @return  the value of t_order.delete_sign
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Boolean getDeleteSign() {
+		return deleteSign;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.delete_sign
+	 * @param deleteSign  the value for t_order.delete_sign
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setDeleteSign(Boolean deleteSign) {
+		this.deleteSign = deleteSign;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.order_status
+	 * @return  the value of t_order.order_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Integer getOrderStatus() {
+		return orderStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.order_status
+	 * @param orderStatus  the value for t_order.order_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setOrderStatus(Integer orderStatus) {
+		this.orderStatus = orderStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.intention_status
+	 * @return  the value of t_order.intention_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Integer getIntentionStatus() {
+		return intentionStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.intention_status
+	 * @param intentionStatus  the value for t_order.intention_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setIntentionStatus(Integer intentionStatus) {
+		this.intentionStatus = intentionStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.trading_status
+	 * @return  the value of t_order.trading_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Integer getTradingStatus() {
+		return tradingStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.trading_status
+	 * @param tradingStatus  the value for t_order.trading_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setTradingStatus(Integer tradingStatus) {
+		this.tradingStatus = tradingStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.technology_transfer_progress
+	 * @return  the value of t_order.technology_transfer_progress
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Integer getTechnologyTransferProgress() {
+		return technologyTransferProgress;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.technology_transfer_progress
+	 * @param technologyTransferProgress  the value for t_order.technology_transfer_progress
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setTechnologyTransferProgress(Integer technologyTransferProgress) {
+		this.technologyTransferProgress = technologyTransferProgress;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.payment_status
+	 * @return  the value of t_order.payment_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Integer getPaymentStatus() {
+		return paymentStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.payment_status
+	 * @param paymentStatus  the value for t_order.payment_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setPaymentStatus(Integer paymentStatus) {
+		this.paymentStatus = paymentStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.liquidation_status
+	 * @return  the value of t_order.liquidation_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Integer getLiquidationStatus() {
+		return liquidationStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.liquidation_status
+	 * @param liquidationStatus  the value for t_order.liquidation_status
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setLiquidationStatus(Integer liquidationStatus) {
+		this.liquidationStatus = liquidationStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.order_follow
+	 * @return  the value of t_order.order_follow
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public String getOrderFollow() {
+		return orderFollow;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.order_follow
+	 * @param orderFollow  the value for t_order.order_follow
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setOrderFollow(String orderFollow) {
+		this.orderFollow = orderFollow;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order.order_channel
+	 * @return  the value of t_order.order_channel
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public Integer getOrderChannel() {
+		return orderChannel;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order.order_channel
+	 * @param orderChannel  the value for t_order.order_channel
+	 * @mbg.generated  Sat Dec 23 15:43:40 CST 2017
+	 */
+	public void setOrderChannel(Integer orderChannel) {
+		this.orderChannel = orderChannel;
+	}
+}

Diferenças do arquivo suprimidas por serem muito extensas
+ 1753 - 0
src/main/java/com/goafanti/common/model/TOrderExample.java


+ 110 - 111
src/main/java/com/goafanti/core/mybatis/JDBCIdGenerator.java

@@ -1,112 +1,111 @@
-package com.goafanti.core.mybatis;
-
-import java.text.MessageFormat;
-import java.util.Calendar;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.util.Assert;
-
-import com.goafanti.common.utils.LoggerUtils;
-import com.goafanti.common.utils.StringUtils;
-
-/**
- * 
- * @author xiaolong
- *
- */
-public class JDBCIdGenerator {
-
-	private static final long	JDBC_EPOCH;
-
-	private static final long	SEQUENCE_BITS				= 12L;
-
-	private static final long	WORKER_ID_BITS				= 10L;
-
-	private static final long	SEQUENCE_MASK				= (1 << SEQUENCE_BITS) - 1;
-
-	private static final long	WORKER_ID_LEFT_SHIFT_BITS	= SEQUENCE_BITS;
-
-	private static final long	TIMESTAMP_LEFT_SHIFT_BITS	= WORKER_ID_LEFT_SHIFT_BITS + WORKER_ID_BITS;
-
-	private static final long	WORKER_ID_MAX_VALUE			= 1L << WORKER_ID_BITS;
-
-	private static final Logger	logger						= LoggerFactory.getLogger(JDBCIdGenerator.class);
-
-	private static long			workerId;
-
-	static {
-		Calendar calendar = Calendar.getInstance();
-		calendar.set(2016, Calendar.NOVEMBER, 1);
-		calendar.set(Calendar.HOUR_OF_DAY, 0);
-		calendar.set(Calendar.MINUTE, 0);
-		calendar.set(Calendar.SECOND, 0);
-		calendar.set(Calendar.MILLISECOND, 0);
-		JDBC_EPOCH = calendar.getTimeInMillis();
-		initWorkerId();
-	}
-
-	private long	sequence;
-
-	private long	lastTime;
-
-	static void initWorkerId() {
-		String workerId = System.getProperty("jdbc.worker.id");
-		if (StringUtils.isNoneBlank(workerId)) {
-			setWorkerId(Long.valueOf(workerId));
-			return;
-		}
-		workerId = System.getenv("JDBC_WORKER_ID");
-		if (StringUtils.isNoneBlank(workerId)) {
-			setWorkerId(Long.valueOf(workerId));
-			return;
-		}
-		setWorkerId(0l);
-	}
-
-	/**
-	 * 设置工作进程Id.
-	 *
-	 * @param workerId
-	 *            工作进程Id
-	 */
-	public static void setWorkerId(final Long workerId) {
-		LoggerUtils.debug(logger, "工作进程ID:[%s]", workerId);
-		Assert.isTrue(workerId > 0L && workerId < WORKER_ID_MAX_VALUE, "工作进程ID不能为空,且小于1024");
-		JDBCIdGenerator.workerId = workerId;
-	}
-
-	/**
-	 * 生成Id.
-	 *
-	 * @return 返回@{@link Long}类型的Id
-	 */
-	public synchronized Long generateId() {
-		long time = System.currentTimeMillis();
-		Assert.isTrue(lastTime <= time,
-				MessageFormat.format(
-						"Clock is moving backwards, last time is {0} milliseconds, current time is {1} milliseconds",
-						lastTime, time));
-		if (lastTime == time) {
-			if (0L == (sequence = ++sequence & SEQUENCE_MASK)) {
-				time = waitUntilNextTime(time);
-			}
-		} else {
-			sequence = 0;
-		}
-		lastTime = time;
-		Long res = ((time - JDBC_EPOCH) << TIMESTAMP_LEFT_SHIFT_BITS) | (workerId << WORKER_ID_LEFT_SHIFT_BITS)
-				| sequence;
-		LoggerUtils.debug(logger, "生成JDBCID:[%s] -- [%s] -- [%s] -- [%s]", lastTime, workerId, sequence, res);
-		return res;
-	}
-
-	private long waitUntilNextTime(final long lastTime) {
-		long time = System.currentTimeMillis();
-		while (time <= lastTime) {
-			time = System.currentTimeMillis();
-		}
-		return time;
-	}
-
+package com.goafanti.core.mybatis;
+
+import java.text.MessageFormat;
+import java.util.Calendar;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.util.Assert;
+
+import com.goafanti.common.utils.LoggerUtils;
+import com.goafanti.common.utils.StringUtils;
+
+/**
+ * 
+ * @author xiaolong
+ *
+ */
+public class JDBCIdGenerator {
+
+	private static final long	JDBC_EPOCH;
+
+	private static final long	SEQUENCE_BITS				= 12L;
+
+	private static final long	WORKER_ID_BITS				= 10L;
+
+	private static final long	SEQUENCE_MASK				= (1 << SEQUENCE_BITS) - 1;
+
+	private static final long	WORKER_ID_LEFT_SHIFT_BITS	= SEQUENCE_BITS;
+
+	private static final long	TIMESTAMP_LEFT_SHIFT_BITS	= WORKER_ID_LEFT_SHIFT_BITS + WORKER_ID_BITS;
+
+	private static final long	WORKER_ID_MAX_VALUE			= 1L << WORKER_ID_BITS;
+
+	private static final Logger	logger						= LoggerFactory.getLogger(JDBCIdGenerator.class);
+
+	private static long			workerId;
+
+	static {
+		Calendar calendar = Calendar.getInstance();
+		calendar.set(2016, Calendar.NOVEMBER, 1);
+		calendar.set(Calendar.HOUR_OF_DAY, 0);
+		calendar.set(Calendar.MINUTE, 0);
+		calendar.set(Calendar.SECOND, 0);
+		calendar.set(Calendar.MILLISECOND, 0);
+		JDBC_EPOCH = calendar.getTimeInMillis();
+		initWorkerId();
+	}
+
+	private long	sequence;
+
+	private long	lastTime;
+
+	static void initWorkerId() {
+		String workerId = System.getProperty("jdbc.worker.id");
+		if (StringUtils.isNoneBlank(workerId)) {
+			setWorkerId(Long.valueOf(workerId));
+			return;
+		}
+		workerId = System.getenv("JDBC_WORKER_ID");
+		if (StringUtils.isNoneBlank(workerId)) {
+			setWorkerId(Long.valueOf(workerId));
+			return;
+		}
+		setWorkerId(0l);
+	}
+
+	/**
+	 * 设置工作进程Id.
+	 *
+	 * @param workerId
+	 *            工作进程Id
+	 */
+	public static void setWorkerId(final Long workerId) {
+		LoggerUtils.debug(logger, "工作进程ID:[%s]", workerId);
+		Assert.isTrue(workerId > 0L && workerId < WORKER_ID_MAX_VALUE, "工作进程ID不能为空,且小于1024");
+		JDBCIdGenerator.workerId = workerId;
+	}
+
+	/**
+	 * 生成Id.
+	 *
+	 * @return 返回@{@link Long}类型的Id
+	 */
+	public synchronized Long generateId() {
+		long time = System.currentTimeMillis();
+		Assert.isTrue(lastTime <= time,
+				MessageFormat.format(
+						"Clock is moving backwards, last time is {0} milliseconds, current time is {1} milliseconds",
+						lastTime, time));
+		if (lastTime == time) {
+			if (0L == (sequence = ++sequence & SEQUENCE_MASK)) {
+				time = waitUntilNextTime(time);
+			}
+		} else {
+			sequence = 0;
+		}
+		lastTime = time;
+		Long res = ((time - JDBC_EPOCH) << TIMESTAMP_LEFT_SHIFT_BITS) | (workerId << WORKER_ID_LEFT_SHIFT_BITS)
+				| sequence;
+		LoggerUtils.debug(logger, "生成JDBCID:[%s] -- [%s] -- [%s] -- [%s]", lastTime, workerId, sequence, res);
+		return res;
+	}
+
+	private long waitUntilNextTime(final long lastTime) {
+		long time = System.currentTimeMillis();
+		while (time <= lastTime) {
+			time = System.currentTimeMillis();
+		}
+		return time;
+	}
 }

+ 1 - 0
src/main/java/com/goafanti/message/service/impl/MessageServiceImpl.java

@@ -325,4 +325,5 @@ public class MessageServiceImpl  extends BaseMybatisDao<MessageFromSystemMapper>
 	public JpushEasemobAccount selectSynAccByUid(String uid) {
 		return jpushEasemobAccountMapper.selectSynAccByUid(uid);
 	}
+
 }

+ 12 - 0
src/main/java/com/goafanti/order/controller/OrderController.java

@@ -0,0 +1,12 @@
+package com.goafanti.order.controller;
+
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.goafanti.common.controller.CertifyApiController;
+
+@RestController
+@RequestMapping(value = "/api/user/order")
+public class OrderController extends CertifyApiController{
+	
+}

+ 56 - 0
src/main/java/com/goafanti/order/enums/IntentionSate.java

@@ -0,0 +1,56 @@
+package com.goafanti.order.enums;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public enum IntentionSate {
+	/** 待卖方确认 **/
+	WAIT_SELLER_CONFIRM(0,"WAIT_SELLER_CONFIRM"),
+	/** 卖方已确认 **/
+	SELLER_CONFIRM(1,"SELLER_CONFIRM"),
+	/** 卖方已拒绝 **/
+	SELLER_REFUSE(2,"SELLER_REFUSE"),
+	/** 买方已取消 **/
+	BUYER_CANCELLED(3,"BUYER_CANCELLED"),
+	/** 已过期 **/
+	EXPIRED(4,"EXPIRED"),
+	/** 无效 **/
+	INVALID(10, "INVALID");
+	
+	private IntentionSate(Integer code, String desc) {
+		this.code = code;
+		this.desc = desc;
+	}
+
+	private static Map<Integer, IntentionSate> status = new HashMap<Integer, IntentionSate>();
+
+	static {
+		for (IntentionSate value : IntentionSate.values()) {
+			status.put(value.getCode(), value);
+		}
+	}
+	public static IntentionSate getStatus(Integer code) {
+		if (containsType(code)) {
+			return status.get(code);
+		}
+		return INVALID;
+	}
+	public static boolean containsType(Integer code) {
+		return status.containsKey(code);
+	}
+	
+	private Integer	code;
+	private String	desc;
+	public Integer getCode() {
+		return code;
+	}
+	public void setCode(Integer code) {
+		this.code = code;
+	}
+	public String getDesc() {
+		return desc;
+	}
+	public void setDesc(String desc) {
+		this.desc = desc;
+	}
+}

+ 60 - 0
src/main/java/com/goafanti/order/enums/LiquidationSate.java

@@ -0,0 +1,60 @@
+package com.goafanti.order.enums;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public enum LiquidationSate {
+	/** 等待支付  **/
+	WAIT_FOR_PAY(0,"WAIT_FOR_PAY"),
+	/** 部分支付 **/
+	PART_PAY(1,"PART_PAY"),
+	/** 已支付 **/
+	FULL_PAY(2,"FULL_PAY"),
+	/** 待提现 **/
+	WAIT_FOR_WITHDRAW(3,"WAIT_FOR_WITHDRAW"),
+	/** 支付结清 **/
+	PAY_SETTLE(4,"ALREADY_SETTLE"),
+	/** 等待退款 **/
+	WAIT_FOR_REFUND(5,"WAIT_FOR_REFUND"),
+	/** 退款结清 **/
+	REFUND_SETTLE(6,"WAIT_FOR_REFUND"),
+	/** 无效 **/
+	INVALID(10, "INVALID");
+	
+	private LiquidationSate(Integer code, String desc) {
+		this.code = code;
+		this.desc = desc;
+	}
+
+	private static Map<Integer, LiquidationSate> status = new HashMap<Integer, LiquidationSate>();
+
+	static {
+		for (LiquidationSate value : LiquidationSate.values()) {
+			status.put(value.getCode(), value);
+		}
+	}
+	public static LiquidationSate getStatus(Integer code) {
+		if (containsType(code)) {
+			return status.get(code);
+		}
+		return INVALID;
+	}
+	public static boolean containsType(Integer code) {
+		return status.containsKey(code);
+	}
+	
+	private Integer	code;
+	private String	desc;
+	public Integer getCode() {
+		return code;
+	}
+	public void setCode(Integer code) {
+		this.code = code;
+	}
+	public String getDesc() {
+		return desc;
+	}
+	public void setDesc(String desc) {
+		this.desc = desc;
+	}
+}

+ 52 - 0
src/main/java/com/goafanti/order/enums/OrderChannel.java

@@ -0,0 +1,52 @@
+package com.goafanti.order.enums;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public enum OrderChannel {
+	/** 手机APP **/
+	APP(0,"APP"),
+	/** 门户网站 **/
+	PORTAL(1,"PORTAL"),
+	/** 线下支付 **/
+	SCENE(2,"SCENE"),
+	/** 无效 **/
+	INVALID(10, "INVALID");
+	
+	private OrderChannel(Integer code, String desc) {
+		this.code = code;
+		this.desc = desc;
+	}
+
+	private static Map<Integer, OrderChannel> status = new HashMap<Integer, OrderChannel>();
+
+	static {
+		for (OrderChannel value : OrderChannel.values()) {
+			status.put(value.getCode(), value);
+		}
+	}
+	public static OrderChannel getStatus(Integer code) {
+		if (containsType(code)) {
+			return status.get(code);
+		}
+		return INVALID;
+	}
+	public static boolean containsType(Integer code) {
+		return status.containsKey(code);
+	}
+	
+	private Integer	code;
+	private String	desc;
+	public Integer getCode() {
+		return code;
+	}
+	public void setCode(Integer code) {
+		this.code = code;
+	}
+	public String getDesc() {
+		return desc;
+	}
+	public void setDesc(String desc) {
+		this.desc = desc;
+	}
+}

+ 56 - 0
src/main/java/com/goafanti/order/enums/OrderState.java

@@ -0,0 +1,56 @@
+package com.goafanti.order.enums;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public enum OrderState {
+	/** 意向订单 **/
+	INTENTION(0,"INTENTION"),
+	/** 交易中 **/
+	IN_TRADING(1,"IN_TRADING"),
+	/** 等待支付 **/
+	WAIT_FOR_PAY(2,"WAIT_FOR_PAY"),
+	/** 已完成 **/
+	COMPLETED(3,"WAIT_FOR_PAY"),
+	/** 已取消 **/
+	CANCELLED(4,"WAIT_FOR_PAY"),
+	/** 无效 **/
+	INVALID(10, "INVALID");
+	
+	private OrderState(Integer code, String desc) {
+		this.code = code;
+		this.desc = desc;
+	}
+
+	private static Map<Integer, OrderState> status = new HashMap<Integer, OrderState>();
+
+	static {
+		for (OrderState value : OrderState.values()) {
+			status.put(value.getCode(), value);
+		}
+	}
+	public static OrderState getStatus(Integer code) {
+		if (containsType(code)) {
+			return status.get(code);
+		}
+		return INVALID;
+	}
+	public static boolean containsType(Integer code) {
+		return status.containsKey(code);
+	}
+	private Integer	code;
+	private String	desc;
+	public Integer getCode() {
+		return code;
+	}
+	public void setCode(Integer code) {
+		this.code = code;
+	}
+	public String getDesc() {
+		return desc;
+	}
+	public void setDesc(String desc) {
+		this.desc = desc;
+	}
+	
+}

+ 52 - 0
src/main/java/com/goafanti/order/enums/PayChannel.java

@@ -0,0 +1,52 @@
+package com.goafanti.order.enums;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public enum PayChannel {
+	/** 微信 **/
+	WECHAT(0,"WECHAT"),
+	/** 支付宝 **/
+	ALIPAY(1,"ALIPAY"),
+	/** 银联支付 **/
+	UNIONPAY(2,"UNIONPAY"),
+	/** 无效 **/
+	INVALID(10, "INVALID");
+	
+	private PayChannel(Integer code, String desc) {
+		this.code = code;
+		this.desc = desc;
+	}
+
+	private static Map<Integer, PayChannel> status = new HashMap<Integer, PayChannel>();
+
+	static {
+		for (PayChannel value : PayChannel.values()) {
+			status.put(value.getCode(), value);
+		}
+	}
+	public static PayChannel getStatus(Integer code) {
+		if (containsType(code)) {
+			return status.get(code);
+		}
+		return INVALID;
+	}
+	public static boolean containsType(Integer code) {
+		return status.containsKey(code);
+	}
+	
+	private Integer	code;
+	private String	desc;
+	public Integer getCode() {
+		return code;
+	}
+	public void setCode(Integer code) {
+		this.code = code;
+	}
+	public String getDesc() {
+		return desc;
+	}
+	public void setDesc(String desc) {
+		this.desc = desc;
+	}
+}

+ 56 - 0
src/main/java/com/goafanti/order/enums/PaymentState.java

@@ -0,0 +1,56 @@
+package com.goafanti.order.enums;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public enum PaymentState {
+	/** 等付款  **/
+	WAIT_FOR_PAY(0,"WAIT_FOR_PAY"),
+	/** 已首付 **/
+	ALREADY_FIRST_PAY(1,"ALREADY_FIRST_PAY"),
+	/** 待付清 **/
+	WAIT_PAY_ALL(2,"WAIT_PAY_ALL"),
+	/** 待退款 **/
+	WAIT_REFUND(3,"WAIT_REFUND"),
+	/** 已退款 **/
+	ALREADY_REFUND(4,"WAIT_REFUND"),
+	/** 无效 **/
+	INVALID(10, "INVALID");
+	
+	private PaymentState(Integer code, String desc) {
+		this.code = code;
+		this.desc = desc;
+	}
+
+	private static Map<Integer, PaymentState> status = new HashMap<Integer, PaymentState>();
+
+	static {
+		for (PaymentState value : PaymentState.values()) {
+			status.put(value.getCode(), value);
+		}
+	}
+	public static PaymentState getStatus(Integer code) {
+		if (containsType(code)) {
+			return status.get(code);
+		}
+		return INVALID;
+	}
+	public static boolean containsType(Integer code) {
+		return status.containsKey(code);
+	}
+	
+	private Integer	code;
+	private String	desc;
+	public Integer getCode() {
+		return code;
+	}
+	public void setCode(Integer code) {
+		this.code = code;
+	}
+	public String getDesc() {
+		return desc;
+	}
+	public void setDesc(String desc) {
+		this.desc = desc;
+	}
+}

+ 54 - 0
src/main/java/com/goafanti/order/enums/TradingState.java

@@ -0,0 +1,54 @@
+package com.goafanti.order.enums;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public enum TradingState {
+	/** 等待交易 **/
+	WAIT_FOR_TRADE(0,"WAIT_FOR_TRADE"),
+	/** 交易中 **/
+	ON_TRADE(1,"ON_TRADE"),
+	/** 交易成功 **/
+	TRADE_SUCCESS(2,"TRADE_SUCCESS"),
+	/** 交易失败 **/
+	TRADE_FAILED(3,"TRADE_FAILED"),
+	/** 无效 **/
+	INVALID(10, "INVALID");
+	
+	private TradingState(Integer code, String desc) {
+		this.code = code;
+		this.desc = desc;
+	}
+
+	private static Map<Integer, TradingState> status = new HashMap<Integer, TradingState>();
+
+	static {
+		for (TradingState value : TradingState.values()) {
+			status.put(value.getCode(), value);
+		}
+	}
+	public static TradingState getStatus(Integer code) {
+		if (containsType(code)) {
+			return status.get(code);
+		}
+		return INVALID;
+	}
+	public static boolean containsType(Integer code) {
+		return status.containsKey(code);
+	}
+	
+	private Integer	code;
+	private String	desc;
+	public Integer getCode() {
+		return code;
+	}
+	public void setCode(Integer code) {
+		this.code = code;
+	}
+	public String getDesc() {
+		return desc;
+	}
+	public void setDesc(String desc) {
+		this.desc = desc;
+	}
+}

+ 50 - 0
src/main/java/com/goafanti/order/enums/TransactionState.java

@@ -0,0 +1,50 @@
+package com.goafanti.order.enums;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public enum TransactionState {
+	/** 线上支付 **/
+	ONLINE(0,"ONLINE"),
+	/** 线下支付 **/
+	OFFLINE(1,"OFFLINE"),
+	/** 无效 **/
+	INVALID(10, "INVALID");
+	
+	private TransactionState(Integer code, String desc) {
+		this.code = code;
+		this.desc = desc;
+	}
+
+	private static Map<Integer, TransactionState> status = new HashMap<Integer, TransactionState>();
+
+	static {
+		for (TransactionState value : TransactionState.values()) {
+			status.put(value.getCode(), value);
+		}
+	}
+	public static TransactionState getStatus(Integer code) {
+		if (containsType(code)) {
+			return status.get(code);
+		}
+		return INVALID;
+	}
+	public static boolean containsType(Integer code) {
+		return status.containsKey(code);
+	}
+	
+	private Integer	code;
+	private String	desc;
+	public Integer getCode() {
+		return code;
+	}
+	public void setCode(Integer code) {
+		this.code = code;
+	}
+	public String getDesc() {
+		return desc;
+	}
+	public void setDesc(String desc) {
+		this.desc = desc;
+	}
+}

+ 5 - 0
src/main/java/com/goafanti/order/service/OrderService.java

@@ -0,0 +1,5 @@
+package com.goafanti.order.service;
+
+public interface OrderService {
+
+}

+ 7 - 0
src/main/java/com/goafanti/order/service/impl/OrderServiceImpl.java

@@ -0,0 +1,7 @@
+package com.goafanti.order.service.impl;
+
+import com.goafanti.order.service.OrderService;
+
+public class OrderServiceImpl implements OrderService {
+	
+}