From 972d3bc71115ec977dccf835fbcd148da3bcc86c Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期二, 03 九月 2019 16:41:49 +0800
Subject: [PATCH] 统计可用的免单券数量-countUsableFreeCouponForBuy

---
 fanli/src/main/java/com/yeshi/fanli/util/factory/goods/CommonOrderFactory.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/util/factory/goods/CommonOrderFactory.java b/fanli/src/main/java/com/yeshi/fanli/util/factory/goods/CommonOrderFactory.java
index 5849ec9..b3fcdd2 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/factory/goods/CommonOrderFactory.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/factory/goods/CommonOrderFactory.java
@@ -15,7 +15,7 @@
 		CommonOrder commonOrder = new CommonOrder();
 		commonOrder.setCount(order.getGoodsQuantity());
 		commonOrder.setCreateTime(new Date());
-		if (order.getOrderStatus() == 3) {
+		if (order.getOrderStatus() == 3) {// 瀹℃牳閫氳繃
 			commonOrder.seteIncome(
 					MoneyBigDecimalUtil.div(new BigDecimal(order.getPromotionAmount()), new BigDecimal(100)));
 			commonOrder.setSettlement(
@@ -31,6 +31,7 @@
 			commonOrder.seteIncome(new BigDecimal(0));
 			commonOrder.setSettlement(new BigDecimal(0));
 		}
+
 		commonOrder
 				.setEstimate(MoneyBigDecimalUtil.div(new BigDecimal(order.getPromotionAmount()), new BigDecimal(100)));
 		commonOrder.setOrderNo(order.getOrderSn());
@@ -44,8 +45,8 @@
 		} else if (0 == order.getOrderStatus()) {
 			state = CommonOrder.STATE_FK;
 		} else if (1 == order.getOrderStatus()) {
-			state = CommonOrder.STATE_FK;
-		} else if (2 == order.getOrderStatus()) {
+			state = CommonOrder.STATE_FK;
+		} else if (2 == order.getOrderStatus()) {// 纭鏀惰揣
 			state = CommonOrder.STATE_JS;
 		} else if (3 == order.getOrderStatus()) {
 			state = CommonOrder.STATE_FK;

--
Gitblit v1.8.0