use of com.itrus.portal.db.SysConfig in project portal by ixinportal.
the class SystemConfigService method getkeyConfig.
public String getkeyConfig() {
String type = SystemConfigService.SECRET_key;
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 getTsAddress.
public String getTsAddress() throws Exception {
// 读取系统配置信息 获取终端后台地址
String type = SystemConfigService.TS_URL;
SysConfig sysConfig = sqlSession.selectOne("com.itrus.portal.db.SysConfigMapper.selectByType", type);
if (sysConfig != null) {
return sysConfig.getConfig();
} else {
throw new Exception("没有配置终端后台地址!");
}
}
use of com.itrus.portal.db.SysConfig in project portal by ixinportal.
the class SystemConfigService method getReviewProjectId.
public String getReviewProjectId() {
// 读取系统配置信息 获取判断查询送审结果的项目ID
String type = SystemConfigService.REVIEW_PROJECT_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 getPersonAppid.
public String getPersonAppid() throws Exception {
// 读取系统配置信息 获取个人实名认证AppId
String type = SystemConfigService.PERSON_APPID;
SysConfig sysConfig = sqlSession.selectOne("com.itrus.portal.db.SysConfigMapper.selectByType", type);
if (sysConfig != null) {
return sysConfig.getConfig();
} else {
throw new Exception("没有配置个人实名认证AppId!");
}
}
use of com.itrus.portal.db.SysConfig in project portal by ixinportal.
the class SmsSendService method sendMDURL.
// 发送移动端下载地址
public boolean sendMDURL(String phoneNum, Long projectId) {
SysConfig sysConfig = cacheCustomer.getSysConfigByType(SystemConfigService.MD_URL);
if (sysConfig != null)
mobileUrl = sysConfig.getConfig();
Map<String, Object> data = new HashMap<String, Object>();
data.put("mDownload", mobileUrl);
String content = VelocityEngineUtils.mergeTemplateIntoString(velocityEngine, "smsMDownload.vm", "UTF-8", data);
return sendSms(phoneNum, content, "客户端下载", projectId, null, null);
}
Aggregations