From 51a4ff5d777028d52a19c314a99f796334cb7b51 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 23 十一月 2019 18:30:01 +0800
Subject: [PATCH] 配置文件修改

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v2/BrandControllerV2.java |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/BrandControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/BrandControllerV2.java
index 6a4daba..df8b079 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/BrandControllerV2.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/BrandControllerV2.java
@@ -349,8 +349,14 @@
 	 * @param acceptData
 	 * @param out
 	 */
-//	@RequestMapping(value = "getList", method = RequestMethod.POST)
+	@RequestMapping(value = "getList", method = RequestMethod.POST)
 	public void getList(AcceptData acceptData, Integer page, Long cid, Long uid, PrintWriter out) {
+		if (Constant.IS_TEST) {
+			getListV3(acceptData, page, cid, uid, out);
+			return;
+		}
+		
+		
 		if (page == null || page < 1) {
 			out.print(JsonUtil.loadFalseResult("椤电爜涓嶆纭�"));
 			return;
@@ -391,8 +397,13 @@
 	 * @param acceptData
 	 * @param out
 	 */
-//	@RequestMapping(value = "getShopInfoV2", method = RequestMethod.POST)
+	@RequestMapping(value = "getShopInfoV2", method = RequestMethod.POST)
 	public void getShopInfoV2(AcceptData acceptData, Integer page, Long id, Long uid, PrintWriter out) {
+		
+		if (Constant.IS_TEST) {
+			getShopInfoV3(acceptData, page, id, uid, out);
+			return;
+		}
 		
 		if (id == null) {
 			out.print(JsonUtil.loadFalseResult("缂哄け搴楅摵id"));
@@ -550,8 +561,13 @@
 	 *            绮鹃��1锛� 瓒宠抗鍒楄〃2
 	 * @param out
 	 */
-//	@RequestMapping(value = "getHistoryV2", method = RequestMethod.POST)
+	@RequestMapping(value = "getHistoryV2", method = RequestMethod.POST)
 	public void getHistoryV2(AcceptData acceptData, Integer page, Long uid, Integer type, PrintWriter out) {
+		if (Constant.IS_TEST) {
+			getHistoryV3(acceptData, page, uid, type, out);
+			return;
+		}
+		
 		if (type == null) {
 			out.print(JsonUtil.loadFalseResult("绫诲瀷涓嶆纭�"));
 			return;
@@ -622,7 +638,7 @@
 	 * @param acceptData
 	 * @param out
 	 */
-	@RequestMapping(value = "getList", method = RequestMethod.POST)
+//	@RequestMapping(value = "getList", method = RequestMethod.POST)
 	public void getListV3(AcceptData acceptData, Integer page, Long cid, Long uid, PrintWriter out) {
 		if (page == null || page < 1) {
 			out.print(JsonUtil.loadFalseResult("椤电爜涓嶆纭�"));
@@ -665,7 +681,7 @@
 	 * @param acceptData
 	 * @param out
 	 */
-	@RequestMapping(value = "getShopInfoV2", method = RequestMethod.POST)
+//	@RequestMapping(value = "getShopInfoV2", method = RequestMethod.POST)
 	public void getShopInfoV3(AcceptData acceptData, Integer page, Long id, Long uid, PrintWriter out) {
 		if (id == null) {
 			out.print(JsonUtil.loadFalseResult("缂哄け搴楅摵id"));
@@ -681,8 +697,10 @@
 		BigDecimal shareRate = hongBaoManageService.getShareRate();
 		Gson gson = JsonUtil.getConvertBigDecimalToStringSubZeroBuilder(new GsonBuilder())
 				.excludeFieldsWithoutExposeAnnotation().setDateFormat("yyyy-MM-dd").create();
+		
 		ConfigParamsDTO paramsDTO = new ConfigParamsDTO(fanLiRate, shareRate, Constant.MAX_REWARD_RATE);
 		JSONArray array = new JSONArray();
+		
 		List<BrandGoodsCahe> listGoods = brandGoodsCaheService.getByBrandId((page - 1) * 50, 50,id);
 		for (BrandGoodsCahe brandGoods: listGoods) {
 			JDGoods goodsJD = brandGoods.getGoodsJD();
@@ -738,7 +756,7 @@
 	 *            绮鹃��1锛� 瓒宠抗鍒楄〃2
 	 * @param out
 	 */
-	@RequestMapping(value = "getHistoryV2", method = RequestMethod.POST)
+//	@RequestMapping(value = "getHistoryV2", method = RequestMethod.POST)
 	public void getHistoryV3(AcceptData acceptData, Integer page, Long uid, Integer type, PrintWriter out) {
 		if (type == null) {
 			out.print(JsonUtil.loadFalseResult("绫诲瀷涓嶆纭�"));

--
Gitblit v1.8.0