Search in sources :

Example 1 with MobileRiskStatisticsLog

use of com.itrus.portal.db.MobileRiskStatisticsLog in project portal by ixinportal.

the class MobileRiskStatisticsLogService method selectByRiskStatisticsLogId.

// 根据风控记录的ID查询该条风控记录
public MobileRiskStatisticsLog selectByRiskStatisticsLogId(Long id) {
    if (id != null) {
        MobileRiskStatisticsLogExample example = new MobileRiskStatisticsLogExample();
        MobileRiskStatisticsLogExample.Criteria RiskStatisticsCr = example.createCriteria();
        RiskStatisticsCr.andIdEqualTo(id);
        MobileRiskStatisticsLog mobileRiskStatisticsLog = sqlSession.selectOne("com.itrus.portal.db.MobileRiskStatisticsLogMapper.selectByExample", example);
        return mobileRiskStatisticsLog;
    }
    return null;
}
Also used : MobileRiskStatisticsLog(com.itrus.portal.db.MobileRiskStatisticsLog) MobileRiskStatisticsLogExample(com.itrus.portal.db.MobileRiskStatisticsLogExample)

Example 2 with MobileRiskStatisticsLog

use of com.itrus.portal.db.MobileRiskStatisticsLog in project portal by ixinportal.

the class MobileRiskStatisticsLogController method show.

/*
	 * 查看详情
	 */
@RequestMapping(value = "/{id}", produces = "text/html")
public String show(@PathVariable("id") Long id, Model uimodel) {
    // 得到该条风控记录
    MobileRiskStatisticsLog mobileRiskStatisticsLog = mobileRiskStatisticsLogService.selectByRiskStatisticsLogId(id);
    uimodel.addAttribute("mobileRiskStatisticsLog", mobileRiskStatisticsLog);
    // 根据风控记录的用户ID查询该记录所对应的用户信息
    if (mobileRiskStatisticsLog != null) {
        MobileUser mobileUser = mobileRiskStatisticsLogService.selectByUserId(mobileRiskStatisticsLog.getUserId());
        uimodel.addAttribute("mobileUser", mobileUser);
        // 根据风控记录的证书序列号查询该条记录对应的证书信息
        MobileCertificate mobileCertificate = mobileRiskStatisticsLogService.selectbyCertNumber(mobileRiskStatisticsLog.getCertSequenceNumber());
        uimodel.addAttribute("mobileCertificate", mobileCertificate);
    }
    return "mobileriskstatisticslog/show";
}
Also used : MobileRiskStatisticsLog(com.itrus.portal.db.MobileRiskStatisticsLog) MobileCertificate(com.itrus.portal.db.MobileCertificate) MobileUser(com.itrus.portal.db.MobileUser) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

MobileRiskStatisticsLog (com.itrus.portal.db.MobileRiskStatisticsLog)2 MobileCertificate (com.itrus.portal.db.MobileCertificate)1 MobileRiskStatisticsLogExample (com.itrus.portal.db.MobileRiskStatisticsLogExample)1 MobileUser (com.itrus.portal.db.MobileUser)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1