use of com.itrus.portal.db.PersonalServiceAuthenticationExample in project portal by ixinportal.
the class AppServiceExtImpl method selectServiceObjectByAppServiceId.
/**
* 得到对应的服务配置
* @param appId
* 应用id
* @return
*/
public Object selectServiceObjectByAppServiceId(Long appId) {
AppServiceAuthenticationExample appServiceAuthenticationExample = new AppServiceAuthenticationExample();
AppServiceAuthenticationExample.Criteria aec = appServiceAuthenticationExample.createCriteria();
aec.andAppServiceEqualTo(appId);
AppServiceAuthentication appServiceAuthentication = sqlSession.selectOne("com.itrus.portal.db.AppServiceAuthenticationMapper.selectByExample", appServiceAuthenticationExample);
if (appServiceAuthentication != null) {
return appServiceAuthentication;
}
PersonalServiceAuthenticationExample personalServiceAuthenticationExample = new PersonalServiceAuthenticationExample();
PersonalServiceAuthenticationExample.Criteria pec = personalServiceAuthenticationExample.createCriteria();
pec.andAppServiceEqualTo(appId);
PersonalServiceAuthentication personalServiceAuthentication = sqlSession.selectOne("com.itrus.portal.db.PersonalServiceAuthenticationMapper.selectByExample", personalServiceAuthenticationExample);
if (personalServiceAuthentication != null) {
return personalServiceAuthentication;
}
return null;
}
Aggregations