From f862a844ea7e212f8cc0622b858308e2b91dca2e Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 04 七月 2020 16:35:50 +0800
Subject: [PATCH] 后台管理相关Controller注入系统

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v2/TaoLiJinControllerV2.java |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 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 158493b..42020e7 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
@@ -74,6 +74,7 @@
 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.fanli.vo.homemodule.BannerVO;
 import com.yeshi.fanli.vo.msg.ClientTextStyleVO;
 import com.yeshi.fanli.vo.redpack.TaoLiJinWinDetailVO;
 import com.yeshi.fanli.vo.tlj.ReduceHongBao;
@@ -560,7 +561,6 @@
 	 * 鍒嗕韩鐖嗘鍟嗗搧-闄愪簬娣樼ぜ閲�
 	 * 
 	 * @param acceptData
-	 * @param uid
 	 * @param out
 	 */
 	@RequestMapping(value = "getBuyGoods", method = RequestMethod.POST)
@@ -584,7 +584,7 @@
 			}
 
 			// 璁$畻鎺ㄥ箍绾㈠寘
-			BigDecimal spreadMoney = TaoBaoUtil.getGoodsHongBaoMoney(taoBaoGoodsBrief, proportion);
+			BigDecimal spreadMoney = TaoBaoUtil.getGoodsHongBaoMoney(taoBaoGoodsBrief, proportion,true);
 
 			// 鎺ㄥ箍绾㈠寘 涓嶈兘灏忎簬1
 			if (spreadMoney.compareTo(new BigDecimal(1.0)) < 0) {
@@ -618,15 +618,15 @@
 		data.put("count", array.size());
 		data.put("list", array);
 		if (page == 1) {
-			List<SwiperPicture> bannerList = swiperPictureService.getByBannerCardAndVersion("zigoulijian_banner",
-					acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()));
+			List<BannerVO> bannerList = swiperPictureService.getByBannerCardAndVersion("zigoulijian_banner",
+					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));
 	}
@@ -635,7 +635,6 @@
 	 * 鍒嗕韩鐖嗘鍟嗗搧-闄愪簬娣樼ぜ閲�
 	 * 
 	 * @param acceptData
-	 * @param uid
 	 * @param out
 	 */
 	@RequestMapping(value = "getBuyGoodsV2", method = RequestMethod.POST)
@@ -661,7 +660,7 @@
 			}
 
 			// 璁$畻鎺ㄥ箍绾㈠寘
-			BigDecimal spreadMoney = TaoBaoUtil.getGoodsHongBaoMoney(taoBaoGoodsBrief, proportion);
+			BigDecimal spreadMoney = TaoBaoUtil.getGoodsHongBaoMoney(taoBaoGoodsBrief, proportion,true);
 
 			// 鎺ㄥ箍绾㈠寘 涓嶈兘灏忎簬1
 			if (spreadMoney.compareTo(new BigDecimal(1.0)) < 0) {
@@ -707,15 +706,15 @@
 		data.put("count", array.size());
 		data.put("list", array);
 		if (page == 1) {
-			List<SwiperPicture> bannerList = swiperPictureService.getByBannerCardAndVersion("zigoulijian_banner",
-					acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()));
+			List<BannerVO> bannerList = swiperPictureService.getByBannerCardAndVersion("zigoulijian_banner",
+					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));
 	}
@@ -755,9 +754,9 @@
 			}
 
 			// 2銆侀《閮ㄨ疆鎾浘
-			List<SwiperPicture> oldtopPicList = swiperPictureService.getByBannerCardAndVersion(
-					"redpack_win_detail_banner", acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()));
-			List<SwiperPicture> topPicList = new ArrayList<>();
+			List<BannerVO> oldtopPicList = swiperPictureService.getByBannerCardAndVersion(
+					"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);
 
@@ -847,7 +846,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