From a7454d8a6325566753358b37ffabfae2faa0ca7f Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 28 四月 2021 19:46:49 +0800
Subject: [PATCH] 拼多多授权调整,支持小程序跳转

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/config/SystemConfigServiceImpl.java |   88 ++++++++++++++++++++++----------------------
 1 files changed, 44 insertions(+), 44 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/config/SystemConfigServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/config/SystemConfigServiceImpl.java
index 9087d64..8f0bb8e 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/config/SystemConfigServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/config/SystemConfigServiceImpl.java
@@ -1,44 +1,44 @@
-package com.yeshi.fanli.service.impl.config;
-
-import javax.annotation.Resource;
-
-import org.springframework.cache.annotation.Cacheable;
-import org.springframework.stereotype.Service;
-
-import com.yeshi.fanli.dao.mybatis.SystemConfigMapper;
-import com.yeshi.fanli.entity.system.BusinessSystem;
-import com.yeshi.fanli.entity.system.SystemConfig;
-import com.yeshi.fanli.exception.NotExistObjectException;
-import com.yeshi.fanli.service.inter.config.SystemConfigService;
-
-@Service
-public class SystemConfigServiceImpl implements SystemConfigService{
-
-	@Resource
-	private SystemConfigMapper systemConfigMapper;
-	
-
-	@Cacheable(value={"childSystemCache"}, key="#p0")
-	public String get(String sigkey) throws NotExistObjectException {
-		 SystemConfig systemConfig = systemConfigMapper.getByKey(sigkey);		
-		 if(systemConfig == null ){
-			throw new NotExistObjectException("涓嶅瓨鍦ㄨ鍙傛暟"); 
-		}
-		return systemConfig.getValue();
-	}
-	
-	
-	@Cacheable(value={"childSystemCache"}, key="#p0+#system.id")
-	public String get(String key, BusinessSystem system) {
-		if(system==null || system.getId()==0){
-			return "";
-		}
-		SystemConfig systemConfig = systemConfigMapper.getByKeyAndSystemId(key, system.getId());
-		if(systemConfig != null){;
-			return systemConfig.getValue();
-		}
-		return "";
-	}
-	
-
-}
+package com.yeshi.fanli.service.impl.config;
+
+import javax.annotation.Resource;
+
+import org.springframework.cache.annotation.Cacheable;
+import org.springframework.stereotype.Service;
+
+import com.yeshi.fanli.dao.mybatis.SystemConfigMapper;
+import com.yeshi.fanli.entity.system.BusinessSystem;
+import com.yeshi.fanli.entity.system.SystemConfig;
+import com.yeshi.fanli.exception.NotExistObjectException;
+import com.yeshi.fanli.service.inter.config.SystemConfigService;
+
+@Service
+public class SystemConfigServiceImpl implements SystemConfigService{
+
+	@Resource
+	private SystemConfigMapper systemConfigMapper;
+	
+
+	@Cacheable(value={"childSystemCache"}, key="#p0")
+	public String get(String sigkey) throws NotExistObjectException {
+		 SystemConfig systemConfig = systemConfigMapper.getByKey(sigkey);		
+		 if(systemConfig == null ){
+			throw new NotExistObjectException("涓嶅瓨鍦ㄨ鍙傛暟"); 
+		}
+		return systemConfig.getValue();
+	}
+	
+	
+	@Cacheable(value={"childSystemCache"}, key="#p0+#system.id")
+	public String get(String key, BusinessSystem system) {
+		if(system==null || system.getId()==0){
+			return "";
+		}
+		SystemConfig systemConfig = systemConfigMapper.getByKeyAndSystemId(key, system.getId());
+		if(systemConfig != null){;
+			return systemConfig.getValue();
+		}
+		return "";
+	}
+	
+
+}

--
Gitblit v1.8.0