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