Search in sources :

Example 26 with SysConfig

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;
    }
}
Also used : SysConfig(com.itrus.portal.db.SysConfig)

Example 27 with SysConfig

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("没有配置终端后台地址!");
    }
}
Also used : SysConfig(com.itrus.portal.db.SysConfig) UnknownHostException(java.net.UnknownHostException)

Example 28 with SysConfig

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;
    }
}
Also used : SysConfig(com.itrus.portal.db.SysConfig)

Example 29 with SysConfig

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!");
    }
}
Also used : SysConfig(com.itrus.portal.db.SysConfig) UnknownHostException(java.net.UnknownHostException)

Example 30 with SysConfig

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);
}
Also used : SysConfig(com.itrus.portal.db.SysConfig) HashMap(java.util.HashMap) JSONObject(com.alibaba.fastjson.JSONObject)

Aggregations

SysConfig (com.itrus.portal.db.SysConfig)33 UnknownHostException (java.net.UnknownHostException)15 InetAddress (java.net.InetAddress)9 HashMap (java.util.HashMap)7 Date (java.util.Date)5 Scheduled (org.springframework.scheduling.annotation.Scheduled)5 UserInfoServiceException (com.itrus.portal.exception.UserInfoServiceException)3 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)3 ApplicationInfo (com.itrus.portal.db.ApplicationInfo)2 Charging (com.itrus.portal.db.Charging)2 Product (com.itrus.portal.db.Product)2 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)2 LinkedMultiValueMap (org.springframework.util.LinkedMultiValueMap)2 JSONObject (com.alibaba.fastjson.JSONObject)1 AppService (com.itrus.portal.db.AppService)1 AuditSystemConfig (com.itrus.portal.db.AuditSystemConfig)1 AuditSystemConfigExample (com.itrus.portal.db.AuditSystemConfigExample)1 Bill (com.itrus.portal.db.Bill)1 BusinessLicense (com.itrus.portal.db.BusinessLicense)1 Certification (com.itrus.portal.db.Certification)1