use of com.itrus.portal.db.SysConfig in project portal by ixinportal.
the class SystemConfigService method getClientfwPayConfigIds.
/**
* @return
* @throws Exception
*/
public String getClientfwPayConfigIds() {
// 读取系统配置信息 获取个人实名认证AppId
String type = SystemConfigService.CLIENT_FW_PAY_CONFIG_IDS;
SysConfig sysConfig = sqlSession.selectOne("com.itrus.portal.db.SysConfigMapper.selectByType", type);
if (sysConfig != null) {
return sysConfig.getConfig();
}
return "";
}
use of com.itrus.portal.db.SysConfig in project portal by ixinportal.
the class SystemConfigService method getappConfig.
public String getappConfig() {
String type = SystemConfigService.APP_ID;
SysConfig sysConfig = sqlSession.selectOne("com.itrus.portal.db.SysConfigMapper.selectByType", type);
if (sysConfig != null) {
return sysConfig.getConfig();
} else {
return null;
}
}
use of com.itrus.portal.db.SysConfig in project portal by ixinportal.
the class SystemConfigService method getPersonProject.
public Long getPersonProject() {
// 读取系统配置信息 获取个人实名认证地址
String type = SystemConfigService.PERSON_PROJECT;
SysConfig sysConfig = sqlSession.selectOne("com.itrus.portal.db.SysConfigMapper.selectByType", type);
if (sysConfig != null) {
return Long.parseLong(sysConfig.getConfig());
} else {
return 101L;
}
}
use of com.itrus.portal.db.SysConfig in project portal by ixinportal.
the class SystemConfigService method getDir.
/**
* 获取指定配置目录信息
* @param logType 日志记录类型
* @param configType 配置类型
* @return
* @throws Exception 当配置不存在、指定目录不存在、指定目录不能读取时抛出异常
*/
public File getDir(String logType, String configType) throws Exception {
String dirname = "";
SysConfig sysConfig = sqlSession.selectOne("com.itrus.portal.db.SysConfigMapper.selectByType", configType);
if (sysConfig != null) {
dirname = sysConfig.getConfig();
} else {
throw new Exception("没有配置存放目录!");
}
File softDir = new File(dirname);
// 判断指定目录是否存在,是否有读写权限
if (!softDir.exists() || !softDir.canRead()) {
LogUtil.syslog(sqlSession, logType, "【" + dirname + "】目录不存在或权限不足");
throw new Exception("【" + dirname + "】目录不存在或权限不足");
}
return softDir;
}
use of com.itrus.portal.db.SysConfig in project portal by ixinportal.
the class SystemConfigService method getPersonUrl.
public String getPersonUrl() throws Exception {
// 读取系统配置信息 获取个人实名认证地址
String type = SystemConfigService.PERSON_URL;
SysConfig sysConfig = sqlSession.selectOne("com.itrus.portal.db.SysConfigMapper.selectByType", type);
if (sysConfig != null) {
return sysConfig.getConfig();
} else {
throw new Exception("没有配置个人实名认证地址!");
}
}
Aggregations