From 24a8d17e007545f7426c48352109aa1a9c6587ee Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 06 五月 2020 12:02:09 +0800
Subject: [PATCH] IOS上线隐藏我的界面的banner与超级会员升级信息

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopGoodsServiceImpl.java |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopGoodsServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopGoodsServiceImpl.java
index f3837ac..ced65cf 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopGoodsServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopGoodsServiceImpl.java
@@ -186,6 +186,31 @@
 		}
 	}
 	
+	
+	@Override
+	public void switchState(Long id) throws BanLiShopGoodsException {
+		if (id == null) {
+			throw new BanLiShopGoodsException(1, "璇蜂紶閫掓纭弬鏁�");
+		}
+		BanLiShopGoods resultObj = banLiShopGoodsMapper.selectByPrimaryKey(id);
+		if (resultObj == null) {
+			throw new BanLiShopGoodsException(1, "姝ゅ唴瀹瑰凡涓嶅瓨鍦�");
+		}
+		
+		Integer state = resultObj.getState();
+		if (state == null || state == 0) {
+			state = 1;
+		} else {
+			state = 0;
+		}
+		
+		BanLiShopGoods updateObj = new BanLiShopGoods();
+		updateObj.setId(id);
+		updateObj.setState(state);
+		banLiShopGoodsMapper.updateByPrimaryKeySelective(updateObj);
+	}
+	
+	
 
 	/**
 	 * 涓婁紶鍥剧墖
@@ -236,6 +261,9 @@
 				deleteByPrimaryKey(id);
 
 	}
+	
+	
+	
 
 	@Transactional
 	@Override

--
Gitblit v1.8.0