Search in sources :

Example 1 with SysResourcesExample

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

the class LicenseData method loadResNums.

void loadResNums(SqlSession sqlSession) {
    SysResourcesExample resEx = new SysResourcesExample();
    resEx.or().andResRoleNameIn(roleTitle);
    List<SysResources> sysResources = sqlSession.selectList("com.itrus.ukey.db.SysResourcesMapper.selectByExample", resEx);
    if (sysResources != null && !sysResources.isEmpty())
        resNums = new HashSet<Integer>();
    for (SysResources res : sysResources) {
        resNums.add(res.getResNum());
    }
}
Also used : SysResources(com.itrus.portal.db.SysResources) SysResourcesExample(com.itrus.portal.db.SysResourcesExample)

Aggregations

SysResources (com.itrus.portal.db.SysResources)1 SysResourcesExample (com.itrus.portal.db.SysResourcesExample)1