From d1f26741bddf6f512d62c0100d42c52be8d37e76 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 06 二月 2021 15:35:40 +0800 Subject: [PATCH] 工具类优化 --- fanli/src/main/java/com/yeshi/fanli/service/inter/config/SystemConfigService.java | 46 ++++++++++++---------------------------------- 1 files changed, 12 insertions(+), 34 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/config/SystemConfigService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/config/SystemConfigService.java index ab4adc6..2aa1786 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/config/SystemConfigService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/config/SystemConfigService.java @@ -1,34 +1,12 @@ -package com.yeshi.fanli.service.inter.config; - -import java.util.List; - -import org.springframework.cache.annotation.CacheEvict; - -import com.yeshi.fanli.entity.system.BusinessSystem; -import com.yeshi.fanli.entity.system.SystemConfig; -import com.yeshi.fanli.exception.NotExistObjectException; - -public interface SystemConfigService { - - public int getCount(BusinessSystem system,String key); - - public List<SystemConfig> getSystemConfigList(int index,BusinessSystem system, String key); - - public void addSystemConfig(SystemConfig sc); - @CacheEvict(value="childSystemCache",allEntries=true) - public void deleteSystem(long id, BusinessSystem system) throws NotExistObjectException; - @CacheEvict(value="childSystemCache",allEntries=true) - public void addSystem(long id, BusinessSystem system) throws NotExistObjectException; - - public SystemConfig getSystemConfig(long id); - - public void updateSystemConfig(SystemConfig sc) throws NotExistObjectException; - - public void deleteSystemConfig(long id); - - - public String get(String key) throws NotExistObjectException; - - public String get(String key, BusinessSystem system); - -} +package com.yeshi.fanli.service.inter.config; + +import com.yeshi.fanli.entity.system.BusinessSystem; +import com.yeshi.fanli.exception.NotExistObjectException; + +public interface SystemConfigService { + + public String get(String key) throws NotExistObjectException; + + public String get(String key, BusinessSystem system); + +} -- Gitblit v1.8.0