From dc5be7d38446f70e6ff86df311119c32b41fe7f8 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 28 十一月 2020 16:37:05 +0800 Subject: [PATCH] 大淘客搜索接口升级 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/TaoLiJinControllerV2.java | 33 +++++++++++++++------------------ 1 files changed, 15 insertions(+), 18 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/TaoLiJinControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/TaoLiJinControllerV2.java index 782558c..044acc7 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/TaoLiJinControllerV2.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/TaoLiJinControllerV2.java @@ -29,7 +29,6 @@ import com.google.gson.stream.JsonWriter; import com.yeshi.fanli.dto.ConfigParamsDTO; import com.yeshi.fanli.entity.accept.AcceptData; -import com.yeshi.fanli.entity.bus.homemodule.SwiperPicture; import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinDetail.TaoLiJinDetailTypeEnum; import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinNewbies; import com.yeshi.fanli.entity.bus.user.UserMoneyExtra; @@ -38,8 +37,8 @@ import com.yeshi.fanli.entity.taobao.ShareHotGoods; import com.yeshi.fanli.entity.taobao.TLJBuyGoods; import com.yeshi.fanli.entity.taobao.TLJFreeBuyGoods; -import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief; -import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBriefExtra; +import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief; +import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBriefExtra; import com.yeshi.fanli.exception.user.UserInfoException; import com.yeshi.fanli.service.inter.common.JumpDetailV2Service; import com.yeshi.fanli.service.inter.config.ConfigService; @@ -66,16 +65,16 @@ import com.yeshi.fanli.service.inter.user.tb.UserExtraTaoBaoInfoService; import com.yeshi.fanli.util.Constant; import com.yeshi.fanli.util.TaoBaoConstant; -import com.yeshi.fanli.util.TimeUtil; +import org.yeshi.utils.TimeUtil; import com.yeshi.fanli.util.factory.goods.GoodsDetailVOFactory; import com.yeshi.fanli.util.taobao.TaoBaoUtil; import com.yeshi.fanli.util.taobao.TaoLiJinUtil; 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.taobao.TLJBuyHongBaoVO; +import com.yeshi.goods.facade.entity.taobao.TLJBuyHongBaoVO; import com.yeshi.fanli.vo.homemodule.BannerVO; -import com.yeshi.fanli.vo.msg.ClientTextStyleVO; +import com.yeshi.common.vo.ClientTextStyleVO; import com.yeshi.fanli.vo.redpack.TaoLiJinWinDetailVO; import com.yeshi.fanli.vo.tlj.ReduceHongBao; import com.yeshi.fanli.vo.tlj.SpreadHongBao; @@ -418,7 +417,7 @@ } } - BigDecimal proportion = hongBaoManageService.getTLJShareRate(System.currentTimeMillis()); + BigDecimal proportion = hongBaoManageService.getTLJShareRate(System.currentTimeMillis(),acceptData.getSystem()); for (ShareHotGoods hotGoods : listHot) { TaoBaoGoodsBrief taoBaoGoodsBrief = hotGoods.getGoods(); if (taoBaoGoodsBrief == null) { @@ -493,7 +492,7 @@ } ConfigParamsDTO paramsDTO = orderHongBaoMoneyComputeService.getShowComputeRate(acceptData.getPlatform(), - acceptData.getVersion()); + acceptData.getVersion(),acceptData.getSystem()); for (ShareHotGoods hotGoods : listHot) { TaoBaoGoodsBrief taoBaoGoodsBrief = hotGoods.getGoods(); @@ -561,7 +560,6 @@ * 鍒嗕韩鐖嗘鍟嗗搧-闄愪簬娣樼ぜ閲� * * @param acceptData - * @param uid * @param out */ @RequestMapping(value = "getBuyGoods", method = RequestMethod.POST) @@ -620,14 +618,14 @@ data.put("list", array); if (page == 1) { List<BannerVO> bannerList = swiperPictureService.getByBannerCardAndVersion("zigoulijian_banner", - acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion())); + acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()),acceptData.getSystem()); if (bannerList != null && bannerList.size() > 0) data.put("topPicture", bannerList.get(0).getSrc()); else data.put("topPicture", ""); - data.put("ruleUrl", configService.get(ConfigKeyEnum.zigoulijianRule.getKey())); + data.put("ruleUrl", configService.getValue(ConfigKeyEnum.zigoulijianRule.getKey(),acceptData.getSystem())); } out.print(JsonUtil.loadTrueResult(data)); } @@ -636,7 +634,6 @@ * 鍒嗕韩鐖嗘鍟嗗搧-闄愪簬娣樼ぜ閲� * * @param acceptData - * @param uid * @param out */ @RequestMapping(value = "getBuyGoodsV2", method = RequestMethod.POST) @@ -654,7 +651,7 @@ BigDecimal proportion = TaoBaoConstant.OWN_BUY_WITHOUT_FANLI_RATE; ConfigParamsDTO paramsDTO = new ConfigParamsDTO(proportion, proportion, Constant.MAX_REWARD_RATE, - hongBaoManageService.getFanLiRate(UserLevelEnum.superVIP)); + hongBaoManageService.getFanLiRate(UserLevelEnum.superVIP,acceptData.getSystem())); for (TLJBuyGoods hotGoods : listHot) { TaoBaoGoodsBrief taoBaoGoodsBrief = hotGoods.getGoods(); if (taoBaoGoodsBrief == null) { @@ -709,14 +706,14 @@ data.put("list", array); if (page == 1) { List<BannerVO> bannerList = swiperPictureService.getByBannerCardAndVersion("zigoulijian_banner", - acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion())); + acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()),acceptData.getSystem()); if (bannerList != null && bannerList.size() > 0) data.put("topPicture", bannerList.get(0).getSrc()); else data.put("topPicture", ""); - data.put("ruleUrl", configService.get(ConfigKeyEnum.zigoulijianRule.getKey())); + data.put("ruleUrl", configService.getValue(ConfigKeyEnum.zigoulijianRule.getKey(),acceptData.getSystem())); } out.print(JsonUtil.loadTrueResult(data)); } @@ -757,7 +754,7 @@ // 2銆侀《閮ㄨ疆鎾浘 List<BannerVO> oldtopPicList = swiperPictureService.getByBannerCardAndVersion( - "redpack_win_detail_banner", acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion())); + "redpack_win_detail_banner", acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()),acceptData.getSystem()); List<BannerVO> topPicList = new ArrayList<>(); if (oldtopPicList != null && oldtopPicList.size() > 0) topPicList.addAll(oldtopPicList); @@ -795,7 +792,7 @@ .excludeFieldsWithoutExposeAnnotation().setDateFormat("yyyy-MM-dd").create(); ConfigParamsDTO paramsDTO = orderHongBaoMoneyComputeService.getShowComputeRate(acceptData.getPlatform(), - acceptData.getVersion()); + acceptData.getVersion(),acceptData.getSystem()); for (TLJFreeBuyGoods freeGoods : listFree) { TaoBaoGoodsBrief goods = freeGoods.getGoods(); @@ -848,7 +845,7 @@ } String rule = configTaoLiJinService.getValueByKey("new_user_free_buy_list_rule"); - rule = rule.replace("{閾炬帴}", configService.get(ConfigKeyEnum.customerServiceLink.getKey())); + rule = rule.replace("{閾炬帴}", configService.getValue(ConfigKeyEnum.customerServiceLink.getKey(),acceptData.getSystem())); data.put("state", state); data.put("balance", "鏂颁汉绾㈠寘锛�" + balance.setScale(2) + "鍏�"); -- Gitblit v1.8.0