From 20d1a38a0f8049873f1fbbaef96c22e971ea9d77 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期三, 17 七月 2019 15:50:09 +0800 Subject: [PATCH] 搜索词 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java index 63a7206..cb35924 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java @@ -70,7 +70,7 @@ import com.yeshi.fanli.vo.goods.GoodsDetailVO; import com.yeshi.fanli.vo.goods.MoneyInfoVO; import com.yeshi.fanli.vo.goods.OtherInfo; -import com.yeshi.fanli.vo.goods.ShareInfoVO; +import com.yeshi.fanli.vo.goods.ShareVO; import com.yeshi.fanli.vo.msg.ClientTextStyleVO; import com.yeshi.fanli.vo.tlj.ReduceHongBao; import com.yeshi.fanli.vo.tlj.SpreadHongBao; @@ -160,13 +160,13 @@ */ @RequestMapping(value = "getDetail", method = RequestMethod.POST) public void getDetail(AcceptData acceptData, Long id, Integer goodsType, Long uid, String from, PrintWriter out) { - if (id == null || goodsType == null) { - out.print(JsonUtil.loadFalseResult(1, "鍟嗗搧id鍜屽晢鍝佸钩鍙颁笉鑳戒负绌�")); + if (id == null) { + out.print(JsonUtil.loadFalseResult(1, "鍟嗗搧id涓嶈兘涓虹┖")); return; } - + // 娣樺疂鍟嗗搧 - if (Constant.SOURCE_TYPE_TAOBAO == goodsType) { + if (goodsType == null || Constant.SOURCE_TYPE_TAOBAO == goodsType) { getTaoBaoGoodsDetial(acceptData, id, uid, from, out); return; } @@ -347,10 +347,10 @@ BigDecimal fanLiRate = hongBaoManageService.getFanLiRate(); BigDecimal shareRate = hongBaoManageService.getShareRate(); - GoodsDetailVO goodsDetail = GoodsDetailVOFactory.convertTaoBao(tb, null, fanLiRate, shareRate); + GoodsDetailVO goodsDetail = GoodsDetailVOFactory.convertTaoBao(goods, null, fanLiRate, shareRate); // 搴楅摵淇℃伅 - TaoBaoShop shop = taoBaoShopService.getTaoBaoShop(goods.getAuctionId(), goods.getSellerId()); + TaoBaoShop shop = taoBaoShopService.getTaoBaoShop(id, goods.getSellerId()); if (shop != null) { String shopLink = shop.getShopLink(); if (StringUtil.isNullOrEmpty(shopLink)) { @@ -451,11 +451,11 @@ SpreadHongBao spreadHongBao = new SpreadHongBao(); if (isNewUser) { - spreadHongBao.setMoney("楼1"); + spreadHongBao.setMoney("1"); } else { moneyType = 2; fanliValid = false; - spreadHongBao.setMoney("楼" + spreadMoney.toString()); + spreadHongBao.setMoney(spreadMoney.toString()); ClientTextStyleVO textStyleVO1 = new ClientTextStyleVO(); textStyleVO1.setContent("鍒嗕韩"); @@ -512,7 +512,7 @@ ReduceHongBao reduceHongBao = new ReduceHongBao(); reduceHongBao.setLeft(buyGoods.getLeftHongBaoCount()); reduceHongBao.setMoney(tljHongBao); - reduceHongBao.setName("浠樻绔嬪噺 楼" + tljHongBao); + reduceHongBao.setName("浠樻绔嬪噺 "); reduceHongBao.setTip("褰撴棩棰嗗彇锛屽綋鏃ュ唴浣跨敤锛岃繃鏈熷け鏁�"); reduceHongBao.setTotal(buyGoods.getTotalHongBaoCount()); @@ -537,7 +537,7 @@ // 鍒嗕韩璺緞 String shareUrl = String.format("%s?id=" + id, Constant.systemCommonConfig.getAppShareInfoUrl()); - ShareInfoVO shareInfoVO = new ShareInfoVO(); + ShareVO shareInfoVO = new ShareVO(); shareInfoVO.setUrl(shareUrl); shareInfoVO.setHelpLink(helpLink); extraVO.setShare(shareInfoVO); @@ -665,7 +665,7 @@ // 鍒嗕韩璺緞 String shareUrl = String.format("%s?id=" + jdGoods.getSkuId(), Constant.systemCommonConfig.getAppShareInfoUrl()); - ShareInfoVO shareInfoVO = new ShareInfoVO(); + ShareVO shareInfoVO = new ShareVO(); shareInfoVO.setUrl(shareUrl); shareInfoVO.setHelpLink(helpLink); extraVO.setShare(shareInfoVO); @@ -777,7 +777,7 @@ } // 鍒嗕韩璺緞 String shareUrl = String.format("%s?id=" + id, Constant.systemCommonConfig.getAppShareInfoUrl()); - ShareInfoVO shareInfoVO = new ShareInfoVO(); + ShareVO shareInfoVO = new ShareVO(); shareInfoVO.setUrl(shareUrl); shareInfoVO.setHelpLink(helpLink); extraVO.setShare(shareInfoVO); -- Gitblit v1.8.0