From 06e70064fbc059c8cc9c654376ce589945e9702d Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期二, 03 十二月 2019 12:32:41 +0800
Subject: [PATCH] 品牌修改

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserOrderControllerV2.java |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserOrderControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserOrderControllerV2.java
index 6b572d7..559ab0e 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserOrderControllerV2.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserOrderControllerV2.java
@@ -113,9 +113,9 @@
 		Integer orderType = null;
 		if (StringUtil.isNullOrEmpty(type)) {
 			orderType = null;
-		} else if ("0".equalsIgnoreCase(type)){
+		} else if (!"0".equalsIgnoreCase(type)){
 			orderType = Integer.parseInt(type); 
-		}
+		} 
 
 		// 绛涢�夋椂闂�
 		if (slotTime != null) {
@@ -135,12 +135,14 @@
 			// 绛涢�夌粨鏋滈《閮ㄧ粺璁�
 			String validMoney = "0.00";
 			String invalidMoney = "0.00";
-			if (dateType != null) {
-				BigDecimal predictMoney = hongBaoV2CountService.getRewardMoneyByDate(uid, dateType, orderType, 1);
+			if (page == 1) {
+				BigDecimal predictMoney = hongBaoV2CountService.getRewardMoneyByToSearch(uid, dateType, orderType, 1,
+						orderNo, goodsType, startTime, endTime);
 				if (predictMoney != null) 
 					validMoney = predictMoney.setScale(2, BigDecimal.ROUND_DOWN).toString();
 				
-				BigDecimal postSaleMoney = hongBaoV2CountService.getRewardMoneyByDate(uid, dateType, orderType, 2);
+				BigDecimal postSaleMoney = hongBaoV2CountService.getRewardMoneyByToSearch(uid, dateType, orderType, 2,
+						orderNo, goodsType, startTime, endTime);
 				if (postSaleMoney != null) 
 					invalidMoney = postSaleMoney.setScale(2, BigDecimal.ROUND_DOWN).toString();
 				
@@ -167,15 +169,14 @@
 			data.put("count", count);
 			data.put("result_list", JsonUtil.getApiCommonGson().toJson(list));
 			data.put("helpUrl", configService.get("order_list_help"));
-			data.put("validMoney", validMoney);
-			data.put("invalidMoney", invalidMoney);
+			data.put("validMoney", "楼 " + validMoney);
+			data.put("invalidMoney", "楼 " + invalidMoney);
 			data.put("findOrderHelpUrl", orderFindUrl);
 			out.print(JsonUtil.loadTrueResult(data));
 		} catch (CommonOrderException e) {
 			out.print(JsonUtil.loadFalseResult(e.getCode(), e.getMsg()));
 		} catch (Exception e) {
 			out.print(JsonUtil.loadFalseResult(1, "鏌ヨ澶辫触"));
-			e.printStackTrace();
 			LogHelper.errorDetailInfo(e);
 		}
 	}
@@ -319,9 +320,9 @@
 			show = hongBaoV2CountService.getHongBaoCount(uid, null) > 0;
 		}
 		
-		BigDecimal selfMoney = hongBaoV2CountService.getRewardMoneyByDate(uid, dateType, 1, null);
-		BigDecimal shareMoney = hongBaoV2CountService.getRewardMoneyByDate(uid, dateType, 2, null);
-		BigDecimal inviteMoney = hongBaoV2CountService.getRewardMoneyByDate(uid, dateType, 3, null);
+		BigDecimal selfMoney = hongBaoV2CountService.getRewardMoneyToCount(uid, dateType, 1);
+		BigDecimal shareMoney = hongBaoV2CountService.getRewardMoneyToCount(uid, dateType, 2);
+		BigDecimal inviteMoney = hongBaoV2CountService.getRewardMoneyToCount(uid, dateType, 3);
 		
 		JSONObject data = new JSONObject();
 		data.put("show", show);

--
Gitblit v1.8.0