From 0d9ac58dc11f54351e5e18dba8e950717d78019f Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期一, 09 九月 2019 14:55:24 +0800
Subject: [PATCH] 搜索发现

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v2/IntegralControllerV2.java |   26 ++++----------------------
 1 files changed, 4 insertions(+), 22 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/IntegralControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/IntegralControllerV2.java
index 4f00016..3a5dcd9 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/IntegralControllerV2.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/IntegralControllerV2.java
@@ -233,8 +233,9 @@
 					taskClassVO.setLightUp(true);
 				}
 
-				Integer dateType = 1; // 鏌ヨ褰撴棩
-				if (uniqueKey == UniqueKeyEnum.orderReward)
+				// 鏌ヨ褰撴棩
+				Integer dateType = 1; 
+				if (uniqueKey == UniqueKeyEnum.orderReward || uniqueKey == UniqueKeyEnum.accountMaintain) 
 					dateType = null; // 鏌ヨ鍘嗗彶
 
 				Long id = taskClassVO.getId();
@@ -276,10 +277,7 @@
 			return;
 		}
 
-		int count = 5;
-		if ("android".equalsIgnoreCase(acceptData.getPlatform())) {
-			count = Integer.MAX_VALUE;
-		}
+		int count = Integer.MAX_VALUE;
 
 		List<IntegralTaskRecord> list = integralTaskRecordService.listNotReceived(count, uid);
 		if (list == null) {
@@ -332,24 +330,8 @@
 				return;
 			}
 			Integer goldCoin = integralTaskRecordService.receiveGoldCoin(uid, idList);
-			Set<Long> gidList = gson.fromJson(gids, new TypeToken<HashSet<Long>>() {
-			}.getType());
-			List<IntegralTaskRecord> list = null;
-			if (gidList != null && gidList.size() > 0) {
-				list = integralTaskRecordService.listNotReceivedExcludeId(5 - gidList.size(), uid, gidList);
-			} else {
-				list = integralTaskRecordService.listNotReceivedExcludeId(5, uid, null);
-			}
-
-			if (list == null) {
-				list = new ArrayList<IntegralTaskRecord>();
-			}
-			GsonBuilder gsonBuilder = new GsonBuilder().excludeFieldsWithoutExposeAnnotation();
-			Gson gson2 = gsonBuilder.create();
-
 			JSONObject data = new JSONObject();
 			data.put("goldCoin", goldCoin);
-			data.put("list", gson2.toJson(list));
 			out.print(JsonUtil.loadTrueResult(data));
 		} catch (IntegralTaskRecordException e) {
 			out.print(JsonUtil.loadFalseResult(e.getMsg()));

--
Gitblit v1.8.0