cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package cn.ksource.web.interfacee;
 
import java.util.List;
import java.util.Map;
 
import javax.servlet.http.HttpServletRequest;
 
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import cn.ksource.core.dao.BaseDao;
import cn.ksource.core.dao.SqlParameter;
import cn.ksource.core.util.ConvertUtil;
import cn.ksource.web.service.DataDictionaryService;
 
@Service("interfaceFacade")
public class InterfaceFacadeImpl implements InterfaceFacade {
 
    @Autowired
    private BaseDao baseDao;
    
    
    @Autowired
    private DataDictionaryService dataDictionaryService;
 
    @Override
    public List<Map> getAreaList(String fid) {
        return dataDictionaryService.getAreaListByParentID(fid);
    }
 
    @Override
    public Map getAreaNameById(String areaid) {
        return dataDictionaryService.getAreaById(areaid);  
    }
 
    @Override
    public String getSystemUrl(String systemkey) {
        return dataDictionaryService.getSubSystemUrl(systemkey);
    }
    
    public String getInterfaceUrl(String interfaceKey){
        return dataDictionaryService.getInterfaceUrlByKey(interfaceKey);
    }
    
    public String getMessageUrl(String messageKey){
        return dataDictionaryService.getInterfaceUrlByMessageKey(messageKey);
    }
    
    public List<Map> getDataDictionaryByCategoryKey(String categoryKey){
        return dataDictionaryService.getDataDictionaryByCategoryKey(categoryKey);
    }
    
    public Map getDataDictionaryByKey(String dicKey){
        return dataDictionaryService.getDataDictionaryByKey(dicKey);
    }
 
    @Override
    public Map getDataDictionaryByCategory(String categoryKey) {
        
        return ConvertUtil.list2Map(dataDictionaryService.getDataDictionaryByCategoryKey(categoryKey), "DATAKEY", "DATAVALUE");
    }
 
    
}