yujian
2019-03-14 4aadf484e193995c23ee1d5bb1971a497d2f9a0d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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);
 
}