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/homemodule/FloatADServiceImpl.java |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/FloatADServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/FloatADServiceImpl.java
index 9b3b57f..7788f95 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/FloatADServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/FloatADServiceImpl.java
@@ -216,6 +216,31 @@
 		floatADMapper.updateByPrimaryKey(exchangeObject);
 	}
 	
+	
+	@Override
+	public void switchState(Long id) throws FloatADException {
+		if (id == null) {
+			throw new FloatADException(1, "璇蜂紶閫掓纭弬鏁�");
+		}
+		FloatAD resultObj = floatADMapper.selectByPrimaryKey(id);
+		if (resultObj == null) {
+			throw new FloatADException(1, "姝ゅ唴瀹瑰凡涓嶅瓨鍦�");
+		}
+		
+		Integer state = resultObj.getState();
+		if (state == null || state == 0) {
+			state = 1;
+		} else {
+			state = 0;
+		}
+		
+		FloatAD updateObj = new FloatAD();
+		updateObj.setId(id);
+		updateObj.setState(state);
+		floatADMapper.updateByPrimaryKeySelective(updateObj);
+	}
+	
+	
 	@Override
 	@Transactional(rollbackFor=Exception.class)
 	public int deleteByPrimaryKeyList(List<Long> list) throws Exception{

--
Gitblit v1.8.0