Search in sources :

Example 1 with EvidenceCertUserExample

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

the class EvidenceCertUserService method getCertBySn.

// 通过 序列号 得到对应证书
public EvidenceCertUser getCertBySn(String certSn) {
    EvidenceCertUserExample certUserExample = new EvidenceCertUserExample();
    EvidenceCertUserExample.Criteria criteria = certUserExample.createCriteria();
    criteria.andCertSerialnumberEqualTo(certSn);
    List<EvidenceCertUser> certUsers = sqlSession.selectList("com.itrus.portal.db.EvidenceCertUserMapper.selectByExample", certUserExample);
    if (certUsers != null && !certUsers.isEmpty()) {
        return certUsers.get(0);
    }
    return null;
}
Also used : EvidenceCertUserExample(com.itrus.portal.db.EvidenceCertUserExample) EvidenceCertUser(com.itrus.portal.db.EvidenceCertUser)

Aggregations

EvidenceCertUser (com.itrus.portal.db.EvidenceCertUser)1 EvidenceCertUserExample (com.itrus.portal.db.EvidenceCertUserExample)1