use of com.itrus.portal.db.ServiceProviderMapper in project portal by ixinportal.
the class ServiceProviderServiceImpl method insert.
// private ServiceProviderMapper mapper;
//
// @PostConstruct
// public void initMapper(){
// this.mapper = sqlSession.getMapper(ServiceProviderMapper.class);
// }
public ServiceProvider insert(ServiceProvider serviceProvider) throws Exception {
ServiceProviderMapper mapper = sqlSession.getMapper(ServiceProviderMapper.class);
mapper.insert(serviceProvider);
sqlSession.flushStatements();
return serviceProvider;
}
use of com.itrus.portal.db.ServiceProviderMapper in project portal by ixinportal.
the class ServiceProviderServiceImpl method selectByExample.
public List<ServiceProvider> selectByExample(ServiceProviderExample example) throws Exception {
ServiceProviderMapper mapper = sqlSession.getMapper(ServiceProviderMapper.class);
List<ServiceProvider> list = mapper.selectByExample(example);
return list;
}
use of com.itrus.portal.db.ServiceProviderMapper in project portal by ixinportal.
the class ServiceProviderServiceImpl method selectByPrimaryKey.
public ServiceProvider selectByPrimaryKey(Long id) {
ServiceProviderMapper mapper = sqlSession.getMapper(ServiceProviderMapper.class);
ServiceProvider serviceProvider = mapper.selectByPrimaryKey(id);
return serviceProvider;
}
use of com.itrus.portal.db.ServiceProviderMapper in project portal by ixinportal.
the class ServiceProviderServiceImpl method updateByPrimaryKey.
public void updateByPrimaryKey(ServiceProvider serviceProvider) throws Exception {
ServiceProviderMapper mapper = sqlSession.getMapper(ServiceProviderMapper.class);
mapper.updateByPrimaryKey(serviceProvider);
sqlSession.flushStatements();
}
use of com.itrus.portal.db.ServiceProviderMapper in project portal by ixinportal.
the class ServiceProviderServiceImpl method countByExample.
public Integer countByExample(ServiceProviderExample example) {
ServiceProviderMapper mapper = sqlSession.getMapper(ServiceProviderMapper.class);
Integer count = mapper.countByExample(example);
return count;
}
Aggregations