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");
|
}
|
|
|
}
|