From ca7aa881987169d3d0202fe85d9f47d225111f33 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 01 三月 2019 18:34:55 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java | 25 ++++++++----------------- 1 files changed, 8 insertions(+), 17 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java index f456c36..a43d7f3 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java @@ -1636,14 +1636,8 @@ listswiper = swiperPictureService.getByBannerCard(swiperCard); - if (listswiper != null && listswiper.size() > 0) { - for (SwiperPicture swiperPicture : listswiper) { - swiperPicture.setBannerId(null); - swiperPicture.setCreatetime(null); - swiperPicture.setUpdatetime(null); - swiperPicture.setState(null); - swiperPicture.setRemark(null); - } + if (listswiper == null) { + listswiper = new ArrayList<SwiperPicture>(); } } catch (Exception e) { @@ -1661,12 +1655,6 @@ if (listSpecial != null && listSpecial.size() > 0) { for (Special special : listSpecial) { - special.setCreatetime(null); - special.setUpdatetime(null); - special.setState(null); - special.setRemark(null); - special.setCard(null); - special.setCardId(null); if ("闄愭椂绉掓潃".equals(special.getName())) { miaoShaSpecial = special; @@ -1680,6 +1668,7 @@ // 鍏朵粬涓撻 specialList.add(special); } + } } @@ -1713,10 +1702,12 @@ } JSONObject root = new JSONObject(); - root.put("banner", listswiper); - root.put("honest", honestList); - root.put("special", specialList); + + root.put("banner", JsonUtil.getApiCommonGson().toJson(listswiper)); + root.put("honest", JsonUtil.getApiCommonGson().toJson(honestList)); + root.put("special", JsonUtil.getApiCommonGson().toJson(specialList)); root.put("miaoSha", msJSON); + // 澧炲姞閭�璇锋湁濂� JSONObject invite = new JSONObject(); -- Gitblit v1.8.0