use of com.itrus.portal.db.RealNameAuthentication in project portal by ixinportal.
the class RealNameAuthenticationSerivceImpl method updateRealName.
// 修改信息
public void updateRealName(RealNameAuthentication realname) throws ServiceNullException, Exception {
if (realname == null || realname.getId() == null)
throw new ServiceNullException("配置为空");
RealNameAuthentication realname1 = getRealNameById(realname.getId());
if (realname1 == null)
throw new ServiceNullException("配置不存在");
sqlSession.update("com.itrus.portal.db.RealNameAuthenticationMapper.updateByPrimaryKeySelective", realname);
}
use of com.itrus.portal.db.RealNameAuthentication in project portal by ixinportal.
the class RealNameAuthenticationSerivceImpl method getRealNameAuthenticationByMap.
// 查看信息
public Map<Integer, RealNameAuthentication> getRealNameAuthenticationByMap() {
List<RealNameAuthentication> list = sqlSession.selectList("com.itrus.portal.db.RealNameAuthenticationMapper.selectByExample");
if (list == null || list.isEmpty())
return null;
Map<Integer, RealNameAuthentication> realNameMap = new HashMap<Integer, RealNameAuthentication>();
for (RealNameAuthentication realName : list) {
realNameMap.put(realName.getType(), realName);
}
return realNameMap;
}
use of com.itrus.portal.db.RealNameAuthentication in project portal by ixinportal.
the class RealNameAuthenticationSerivceImpl method getRealNameAuthenticationExample.
// 查看信息
public RealNameAuthentication getRealNameAuthenticationExample(RealNameAuthenticationExample example) throws Exception {
List<RealNameAuthentication> list = sqlSession.selectList("com.itrus.portal.db.RealNameAuthenticationMapper.selectByExample", example);
if (list == null || list.isEmpty())
return null;
RealNameAuthentication realname = list.get(0);
return realname;
}
use of com.itrus.portal.db.RealNameAuthentication in project portal by ixinportal.
the class RealNameAuthenticationSerivceImpl method getRealNameAuthenticationByOss.
/**
* 获取OSS服务配置
* @return
* @throws Exception
*/
public RealNameAuthentication getRealNameAuthenticationByOss() throws Exception {
RealNameAuthenticationExample re = new RealNameAuthenticationExample();
RealNameAuthenticationExample.Criteria rec = re.createCriteria();
rec.andTypeEqualTo(4);
RealNameAuthentication realname = this.getRealNameAuthenticationExample(re);
return realname;
}
Aggregations