From 98b1a0affd69bbe63223c21fdd2c404e8bedfccb Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 20 五月 2020 17:25:08 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/div' into 2.1.2 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/IntegralControllerV2.java | 347 ++++++++++++++++++++++++++++++++++++++++----------------- 1 files changed, 240 insertions(+), 107 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 d5b294f..7530ec2 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 @@ -30,26 +30,38 @@ import com.yeshi.fanli.entity.accept.AcceptData; import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinDetail.TaoLiJinDetailTypeEnum; import com.yeshi.fanli.entity.bus.user.UserInfo; +import com.yeshi.fanli.entity.bus.user.UserInfoExtra; import com.yeshi.fanli.entity.bus.user.UserRank; +import com.yeshi.fanli.entity.common.JumpDetailV2; import com.yeshi.fanli.entity.integral.CodePublishRecord; import com.yeshi.fanli.entity.integral.IntegralExchange; +import com.yeshi.fanli.entity.integral.IntegralExchange.ExchangeTypeEnum; +import com.yeshi.fanli.entity.integral.IntegralTask; +import com.yeshi.fanli.entity.integral.IntegralTask.TaskUniqueKeyEnum; import com.yeshi.fanli.entity.integral.IntegralTaskClass.UniqueKeyEnum; import com.yeshi.fanli.entity.integral.IntegralTaskRecord; +import com.yeshi.fanli.entity.system.ConfigKeyEnum; import com.yeshi.fanli.exception.integral.IntegralExchangeException; import com.yeshi.fanli.exception.integral.IntegralTaskRecordException; import com.yeshi.fanli.log.LogHelper; +import com.yeshi.fanli.service.inter.common.JumpDetailV2Service; import com.yeshi.fanli.service.inter.config.ConfigService; -import com.yeshi.fanli.service.inter.integral.CodePublishRecordService; -import com.yeshi.fanli.service.inter.integral.IntegralDetailService; -import com.yeshi.fanli.service.inter.integral.IntegralExchangeRecordService; -import com.yeshi.fanli.service.inter.integral.IntegralExchangeService; -import com.yeshi.fanli.service.inter.integral.IntegralTaskClassService; -import com.yeshi.fanli.service.inter.integral.IntegralTaskRecordService; import com.yeshi.fanli.service.inter.user.UserInfoExtraService; import com.yeshi.fanli.service.inter.user.UserInfoService; +import com.yeshi.fanli.service.inter.user.integral.CodePublishRecordService; +import com.yeshi.fanli.service.inter.user.integral.IntegralDetailService; +import com.yeshi.fanli.service.inter.user.integral.IntegralExchangeRecordService; +import com.yeshi.fanli.service.inter.user.integral.IntegralExchangeService; +import com.yeshi.fanli.service.inter.user.integral.IntegralGetService; +import com.yeshi.fanli.service.inter.user.integral.IntegralTaskClassService; +import com.yeshi.fanli.service.inter.user.integral.IntegralTaskRankService; +import com.yeshi.fanli.service.inter.user.integral.IntegralTaskRecordService; +import com.yeshi.fanli.service.inter.user.integral.IntegralTaskService; import com.yeshi.fanli.util.Constant; import com.yeshi.fanli.util.StringUtil; import com.yeshi.fanli.util.TimeUtil; +import com.yeshi.fanli.util.VersionUtil; +import com.yeshi.fanli.util.annotation.RequestSerializableByKey; import com.yeshi.fanli.vo.integral.DailySignVO; import com.yeshi.fanli.vo.integral.ExchangeTipVO; import com.yeshi.fanli.vo.integral.IntegralDetailVO; @@ -82,12 +94,24 @@ @Resource private IntegralExchangeRecordService integralExchangeRecordService; - + @Resource private IntegralDetailService integralDetailService; @Resource + private IntegralTaskRankService integralTaskRankService; + + @Resource private CodePublishRecordService codePublishRecordService; + + @Resource + private IntegralTaskService integralTaskService; + + @Resource + private IntegralGetService integralGetService; + + @Resource + private JumpDetailV2Service jumpDetailV2Service; /** * 鑾峰彇浠诲姟鍒楄〃 @@ -97,6 +121,7 @@ * @param page * @param out */ + // @RequestSerializableByKey(key="#acceptData.device") @RequestMapping(value = "getTaskList", method = RequestMethod.POST) public void getTaskList(AcceptData acceptData, Long uid, Integer page, PrintWriter out) { if (uid == null || uid <= 0) { @@ -119,18 +144,18 @@ list = new ArrayList<IntegralTaskClassVO>(); } long count = integralTaskClassService.countTaskClass(); - + // 鐢ㄦ埛绛惧埌 Integer signState = 0; if (page == 1) { - + // 绛惧埌 - try { + try { signState = integralTaskClassService.finishedDailySign(uid); } catch (Exception e) { e.printStackTrace(); } - + UserInfoExtraVO extraVO = userInfoExtraService.getInfoExtraVOByUid(uid); if (extraVO == null) { out.print(JsonUtil.loadFalseResult(1, "鐢ㄦ埛鐩稿叧淇℃伅涓嶅瓨鍦�")); @@ -148,12 +173,12 @@ out.print(JsonUtil.loadFalseResult(1, "鐢ㄦ埛绛夌骇涓嶅瓨鍦�")); return; } - + // 绛惧埌鏃ユ湡淇℃伅 DailySignVO dailySignVO = integralTaskClassService.getDailySignList(uid, userRank.getId()); boolean ejectSign = false; - if (signState == 1) + if (signState == 1) ejectSign = true; data.put("signState", ejectSign); @@ -162,18 +187,30 @@ data.put("userRank", gson.toJson(userRank)); data.put("dailySign", dailySignVO); } + for (int i = 0; i < list.size(); i++) { + IntegralTaskClassVO taskClassVO = list.get(i); - - for (IntegralTaskClassVO taskClassVO : list) { + UniqueKeyEnum uniqueKey = taskClassVO.getUniqueKey(); + + // 閭�璇峰ソ鍙嬶細鏄惁婵�娲婚個璇风爜 + if (uniqueKey == UniqueKeyEnum.inviteTeam) { + UserInfoExtraVO extraVO = userInfoExtraService.getInfoExtraVOByUid(uid); + if (extraVO == null || StringUtil.isNullOrEmpty(extraVO.getInviteCode())) { + JumpDetailV2 jumpDetailV2 = jumpDetailV2Service.getByTypeCache("invite_activate", + Constant.getPlatformCode(acceptData.getPlatform()), + Integer.parseInt(acceptData.getVersion())); + taskClassVO.setJumpDetail(jumpDetailV2); + } + } + String progress = taskClassVO.getProgress(); if (StringUtil.isNullOrEmpty(progress)) continue; - + Integer taskNum = taskClassVO.getTaskNum(); if (taskNum == null) continue; - UniqueKeyEnum uniqueKey = taskClassVO.getUniqueKey(); if (uniqueKey == UniqueKeyEnum.dailySign) { if (signState == 0) { taskClassVO.setLightUp(true); // 绛惧埌澶辫触 @@ -182,31 +219,55 @@ } else if (signState == 2) { taskClassVO.setLightUp(false); } + + // 鏍规嵁澶╂暟鍙樺寲鏇存敼绛惧埌閲戦 + Integer num = integralTaskRecordService.getNowdaySignNum(uid, taskClassVO.getId()); + + String uniqueKeyTask = UniqueKeyEnum.dailySign.name() + num; + IntegralTask integralTask = integralTaskService.getByCidAndUniqueKey(taskClassVO.getId(), + uniqueKeyTask); + Integer goldCoin = 0; + if (integralTask != null) { + goldCoin = integralTask.getGoldCoin(); + Integer baseDoubleNum = integralTask.getDoubleNum(); + if (baseDoubleNum != null && baseDoubleNum > 0) + goldCoin = goldCoin * baseDoubleNum; + } + taskClassVO.setTotalCoin(goldCoin); } else { taskClassVO.setLightUp(true); } - - Integer dateType = 1; // 鏌ヨ褰撴棩 - if (uniqueKey == UniqueKeyEnum.orderReward) - dateType = null; // 鏌ヨ鍘嗗彶 - Long id = taskClassVO.getId(); int countFinished = 0; - Integer totalGoldCoin = integralTaskRecordService.getTotalGoldCoin(uid, id, dateType); + Long id = taskClassVO.getId(); + // 鏌ヨ褰撴棩 + Integer totalGoldCoin = integralTaskRecordService.getTotalGoldCoin(uid, id, 1); if (totalGoldCoin != null && totalGoldCoin > 0) { taskClassVO.setFinishedCoin("+" + totalGoldCoin); - if (uniqueKey != UniqueKeyEnum.dailySign) - countFinished = integralTaskRecordService.countFinished(uid, id, dateType); + if (uniqueKey != UniqueKeyEnum.dailySign && uniqueKey != UniqueKeyEnum.accountMaintain) { + countFinished = integralTaskRecordService.countFinished(uid, id, 1); + } } + + if (uniqueKey == UniqueKeyEnum.accountMaintain) { + countFinished = integralTaskRecordService.countFinished(uid, id, null); // 鏌ヨ鍘嗗彶 + } + + /* + * // 瀹屽杽淇℃伅瀹屾垚鍚庯紝鍒楄〃涓秷澶� if (uniqueKey == + * UniqueKeyEnum.accountMaintain && taskNum == countFinished) { + * list.remove(i); i --; continue; } + */ + progress = progress.replace("{宸插畬鎴恾", countFinished + "").replace("{鎬讳换鍔", taskNum + ""); - + if (signState == 0 && uniqueKey == UniqueKeyEnum.dailySign) { progress = "鏈鍒�"; taskClassVO.setBtnName("绛惧埌"); - } + } taskClassVO.setProgress(progress); } - + data.put("count", count); data.put("list", gson.toJson(list)); out.print(JsonUtil.loadTrueResult(data)); @@ -229,11 +290,8 @@ 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) { list = new ArrayList<IntegralTaskRecord>(); @@ -252,17 +310,21 @@ * * @param acceptData * @param uid - * @param ids // 棰嗗彇id - * @param gids // 鏈鍙杋d + * @param ids + * // 棰嗗彇id + * @param gids + * // 鏈鍙杋d * @param out */ + @RequestSerializableByKey(key = "'receiveGoldCoin-'+#uid") @RequestMapping(value = "receiveGoldCoin", method = RequestMethod.POST) - public void receiveGoldCoin(AcceptData acceptData, Long uid, Integer type, String ids, String gids, PrintWriter out) { + public void receiveGoldCoin(AcceptData acceptData, Long uid, Integer type, String ids, String gids, + PrintWriter out) { if (uid == null || uid <= 0) { out.print(JsonUtil.loadFalseResult(1, "鐢ㄦ埛鏈櫥褰�")); return; } - + try { // 鍏ㄩ儴棰嗗彇 if (type != null && type == 1) { @@ -271,8 +333,8 @@ data.put("goldCoin", goldCoin); out.print(JsonUtil.loadTrueResult(data)); return; - } - + } + // 閮ㄥ垎棰嗗彇 Gson gson = new Gson(); Set<Long> idList = gson.fromJson(ids, new TypeToken<HashSet<Long>>() { @@ -282,23 +344,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())); @@ -333,19 +380,55 @@ List<IntegralExchange> list = integralExchangeRecordService.listExchange((page - 1) * Constant.PAGE_SIZE, Constant.PAGE_SIZE, uid); - if (list == null) - list = new ArrayList<IntegralExchange>(); + + List<IntegralExchange> listNew = new ArrayList<>(); + if (list != null) + listNew.addAll(list); + + if (VersionUtil.greaterThan_2_0_7(acceptData.getPlatform(), acceptData.getVersion())) { + for (int i=0; i < listNew.size(); i ++) { + IntegralExchange integralExchange = listNew.get(i); + ExchangeTypeEnum type = integralExchange.getType(); + if (type != null && + (type == ExchangeTypeEnum.inviteCodeActivate || type == ExchangeTypeEnum.inviteCodePublish)) { + listNew.remove(i); + i--; + } + } + } - //Long count = integralExchangeService.countValid(); + // Long count = integralExchangeService.countValid(); GsonBuilder gsonBuilder = new GsonBuilder().excludeFieldsWithoutExposeAnnotation(); Gson gson = gsonBuilder.create(); JSONObject data = new JSONObject(); data.put("goldCoin", extraVO.getGoldCoin() + "鏋�"); - data.put("count", list.size()); - data.put("list", gson.toJson(list)); + data.put("count", listNew.size()); + data.put("list", gson.toJson(listNew)); out.print(JsonUtil.loadTrueResult(data)); + } + + @RequestMapping(value = "getExchangeDetail") + public void getExchangeDetail(AcceptData acceptData, Long id, String callback, PrintWriter out) { + if (id == null || id <= 0) { + out.print(JsonUtil.loadFalseResult(1, "鍏戞崲ID鏈夎")); + return; + } + IntegralExchange exchange = integralExchangeService.selectByPrimaryKey(id); + if (exchange != null) { + GsonBuilder gsonBuilder = new GsonBuilder().excludeFieldsWithoutExposeAnnotation(); + Gson gson = gsonBuilder.create(); + if (StringUtil.isNullOrEmpty(callback)) + out.print(JsonUtil.loadTrueResult(gson.toJson(exchange))); + else + out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(gson.toJson(exchange)))); + } else { + if (StringUtil.isNullOrEmpty(callback)) + out.print(JsonUtil.loadFalseResult("鏈壘鍒�")); + else + out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadFalseResult("鏈壘鍒�"))); + } } /** @@ -356,19 +439,26 @@ * @param id * @param out */ - @RequestMapping(value = "verifyExchange", method = RequestMethod.POST) - public void verifyExchange(AcceptData acceptData, Long uid, Long id, PrintWriter out) { + @RequestMapping(value = "verifyExchange") + public void verifyExchange(AcceptData acceptData, Long uid, Long id, String callback, PrintWriter out) { try { ExchangeTipVO exchange = integralExchangeService.verifyExchange(uid, id); GsonBuilder gsonBuilder = new GsonBuilder().excludeFieldsWithoutExposeAnnotation(); Gson gson = gsonBuilder.create(); - JSONObject data = new JSONObject(); data.put("result", gson.toJson(exchange)); - out.print(JsonUtil.loadTrueResult(data)); + if (StringUtil.isNullOrEmpty(callback)) { + out.print(JsonUtil.loadTrueResult(data)); + } else { + out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(data))); + } } catch (IntegralExchangeException e) { - out.print(JsonUtil.loadFalseResult(1, e.getMsg())); + if (StringUtil.isNullOrEmpty(callback)) { + out.print(JsonUtil.loadFalseResult(1, e.getMsg())); + } else { + out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadFalseResult(1, e.getMsg()))); + } } } @@ -380,19 +470,29 @@ * @param id * @param out */ - @RequestMapping(value = "exchange", method = RequestMethod.POST) - public void exchange(AcceptData acceptData, Long uid, Long id, PrintWriter out) { + @RequestSerializableByKey(key = "'integralexchange-'+#uid") + @RequestMapping(value = "exchange") + public void exchange(AcceptData acceptData, Long uid, Long id, String callback, PrintWriter out) { try { IntegralExchange exchange = integralExchangeService.exchange(uid, id); + + UserInfoExtra extraVO = userInfoExtraService.getUserInfoExtra(uid); GsonBuilder gsonBuilder = new GsonBuilder().excludeFieldsWithoutExposeAnnotation(); Gson gson = gsonBuilder.create(); JSONObject data = new JSONObject(); data.put("result", gson.toJson(exchange)); - out.print(JsonUtil.loadTrueResult(data)); + data.put("goldCoin", extraVO.getGoldCoin() + "鏋�"); + if (StringUtil.isNullOrEmpty(callback)) + out.print(JsonUtil.loadTrueResult(data)); + else + out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(data))); } catch (IntegralExchangeException e) { - out.print(JsonUtil.loadFalseResult(1, e.getMsg())); + if (StringUtil.isNullOrEmpty(callback)) + out.print(JsonUtil.loadFalseResult(1, e.getMsg())); + else + out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadFalseResult(1, e.getMsg()))); } } @@ -428,11 +528,15 @@ * @param id * @param out */ + @RequestSerializableByKey(key = "'exchangeInviteCode-'+#uid") @RequestMapping(value = "exchangeInviteCode", method = RequestMethod.POST) public void exchangeInviteCode(AcceptData acceptData, Long uid, Long id, PrintWriter out) { try { - integralExchangeService.exchangeInviteCode(uid, id); - out.print(JsonUtil.loadTrueResult("閭�璇风爜婵�娲绘垚鍔�")); + String inviteCode = integralExchangeService.exchangeInviteCode(uid, id); + JSONObject data = new JSONObject(); + data.put("msg", "鍏戞崲鎴愬姛锛岄噾甯佸凡娑堣�� "); + data.put("inviteCode", inviteCode); + out.print(JsonUtil.loadTrueResult(data)); } catch (IntegralExchangeException e) { out.print(JsonUtil.loadFalseResult(1, e.getMsg())); } @@ -452,19 +556,24 @@ return; } - List<CodePublishRecord> list = codePublishRecordService.listValid((page - 1) * Constant.PAGE_SIZE, - Constant.PAGE_SIZE); - if (list == null) { - list = new ArrayList<CodePublishRecord>(); + try { + List<CodePublishRecord> list = codePublishRecordService.listValid(null, (page - 1) * Constant.PAGE_SIZE, + Constant.PAGE_SIZE); + if (list == null) { + list = new ArrayList<CodePublishRecord>(); + } + + long count = codePublishRecordService.countValid(); + + JSONObject data = new JSONObject(); + data.put("count", count); + data.put("list", getGson().toJson(list)); + data.put("helpLink", configService.get(ConfigKeyEnum.publishListHelpLink.getKey())); + out.print(JsonUtil.loadTrueResult(data)); + } catch (Exception e) { + out.print(JsonUtil.loadFalseResult(1, "鑾峰彇澶辫触")); + return; } - - long count = codePublishRecordService.countValid(); - - JSONObject data = new JSONObject(); - data.put("count", count); - data.put("list", getGson().toJson(list)); - data.put("helpLink", configService.get("publish_list_help_link")); - out.print(JsonUtil.loadTrueResult(data)); } /** @@ -476,40 +585,64 @@ * @param out */ @RequestMapping(value = "pushEvent", method = RequestMethod.POST) - public void pushEvent(AcceptData acceptData, String event, Long uid, PrintWriter out) { + public void pushEvent(AcceptData acceptData, String event, Long uid, String data, PrintWriter out) { if (uid == null || uid == 0) { out.print(JsonUtil.loadFalseResult("鐢ㄦ埛灏氭湭鐧诲綍")); return; } - + if (StringUtil.isNullOrEmpty(event)) { out.print(JsonUtil.loadFalseResult("浜嬩欢涓虹┖")); return; } + IntegralTaskRecord record = null; - JSONObject data = new JSONObject(); - if ("recommendSearch".equalsIgnoreCase(event) || "scanGoods".equalsIgnoreCase(event) - || "scanTBCart".equalsIgnoreCase(event)) { - JSONObject notify = new JSONObject(); - switch (event) { - - case "recommendSearch": - notify.put("name", "瀹屾垚涓�娆℃櫤鑳芥悳绱�"); - notify.put("score", "+20閲戝竵"); - break; - case "scanGoods": - notify.put("name", "瀹屾垚涓�娆″晢鍝佹祻瑙�"); - notify.put("score", "+100閲戝竵"); - break; - case "scanTBCart": - notify.put("name", "瀹屾垚涓�娆¤喘鐗╄溅娴忚"); - notify.put("score", "+300閲戝竵"); - break; + try { + if (TaskUniqueKeyEnum.recommendSearch.name().equalsIgnoreCase(event)) { + record = integralGetService.addRecommendSearch(uid); + } else if (TaskUniqueKeyEnum.shareInvite.name().equalsIgnoreCase(event)) { + record = integralGetService.addShareInvite(uid); + } else if (TaskUniqueKeyEnum.inShop.name().equalsIgnoreCase(event)) { + JSONObject json = JSONObject.fromObject(data); + record = integralGetService.addIntoShop(uid, StringUtil.Md5(json.optString("url"))); + } else if (TaskUniqueKeyEnum.scanPush.name().equalsIgnoreCase(event)) { + record = integralGetService.addScanPushHistory(uid); + } else if (TaskUniqueKeyEnum.scanGoods.name().equalsIgnoreCase(event)) { + JSONObject json = JSONObject.fromObject(data); + record = integralGetService.addScanGoodsDetail(uid, json.optInt("goodsType"), json.optLong("goodsId")); + } else if (TaskUniqueKeyEnum.scanHomeBanner.name().equalsIgnoreCase(event)) { + JSONObject json = JSONObject.fromObject(data); + record = integralGetService.addScanRecommendBanner(uid, json.optString("id")); + } else if (TaskUniqueKeyEnum.scanSpecial.name().equalsIgnoreCase(event)) { + JSONObject json = JSONObject.fromObject(data); + record = integralGetService.addScanRecommendSpecial(uid, json.optString("id")); + } else if (TaskUniqueKeyEnum.scanTBCart.name().equalsIgnoreCase(event)) { + record = integralGetService.addScanTaoBaoCart(uid); } - data.put("notify", notify); + if (record != null) { + JSONObject notifyData = new JSONObject(); + if (TaskUniqueKeyEnum.recommendSearch.name().equalsIgnoreCase(event) + || TaskUniqueKeyEnum.scanGoods.name().equalsIgnoreCase(event) + || TaskUniqueKeyEnum.scanTBCart.name().equalsIgnoreCase(event)) { + JSONObject notify = new JSONObject(); + if (TaskUniqueKeyEnum.recommendSearch.name().equalsIgnoreCase(event)) + notify.put("name", "瀹屾垚涓�娆℃櫤鑳芥悳绱�"); + else if (TaskUniqueKeyEnum.scanGoods.name().equalsIgnoreCase(event)) + notify.put("name", "瀹屾垚涓�娆″晢鍝佹祻瑙�"); + else if (TaskUniqueKeyEnum.scanTBCart.name().equalsIgnoreCase(event)) + notify.put("name", "瀹屾垚涓�娆¤喘鐗╄溅娴忚"); + + notify.put("score", String.format("+%s閲戝竵", record.getGoldCoin())); + notifyData.put("notify", notify); + } + out.print(JsonUtil.loadTrueResult(notifyData)); + } else { + out.print(JsonUtil.loadFalseResult("")); + } + } catch (Exception e) { + out.print(JsonUtil.loadFalseResult("")); } - out.print(JsonUtil.loadTrueResult(data)); } /** @@ -578,7 +711,6 @@ return gson; } - /** * 鏄庣粏璇︽儏 * @@ -590,7 +722,8 @@ * 骞翠唤 * @param month * 鏈堜唤 - * @param type 缁熻绫诲瀷 0鍏ㄩ儴 1 + * @param type + * 缁熻绫诲瀷 0鍏ㄩ儴 1 * @param out */ @RequestMapping(value = "getDetails") @@ -605,7 +738,7 @@ out.print(JsonUtil.loadFalseResult(1, "鏃ユ湡涓嶅畬鏁�")); return; } - + Date date = null; if (year != null && month != null) { -- Gitblit v1.8.0