Search in sources :

Example 1 with MobileUserExample

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

the class MobileCertificateService method selectByUserId.

// 根据用户id查询对应的用户信息
public MobileUser selectByUserId(Long id) {
    MobileUserExample userExample = new MobileUserExample();
    MobileUserExample.Criteria ue = userExample.createCriteria();
    ue.andIdEqualTo(id);
    MobileUser mobileUser = sqlSession.selectOne("com.itrus.portal.db.MobileUserMapper.selectByExample", userExample);
    return mobileUser;
}
Also used : MobileUserExample(com.itrus.portal.db.MobileUserExample) MobileUser(com.itrus.portal.db.MobileUser)

Example 2 with MobileUserExample

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

the class MobileRiskStatisticsLogService method selectByUserId.

// 根据控记录的用户ID查询该记录所对应的用户信息
public MobileUser selectByUserId(String userId) {
    if (userId != null) {
        MobileUserExample example = new MobileUserExample();
        MobileUserExample.Criteria criteria = example.createCriteria();
        criteria.andUserIdEqualTo(userId);
        MobileUser mobileUser = sqlSession.selectOne("com.itrus.portal.db.MobileUserMapper.selectByExample", example);
        return mobileUser;
    }
    return null;
}
Also used : MobileUserExample(com.itrus.portal.db.MobileUserExample) MobileUser(com.itrus.portal.db.MobileUser)

Aggregations

MobileUser (com.itrus.portal.db.MobileUser)2 MobileUserExample (com.itrus.portal.db.MobileUserExample)2