Search in sources :

Example 1 with ServiceProviderMapper

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;
}
Also used : ServiceProviderMapper(com.itrus.portal.db.ServiceProviderMapper)

Example 2 with ServiceProviderMapper

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;
}
Also used : ServiceProviderMapper(com.itrus.portal.db.ServiceProviderMapper) ServiceProvider(com.itrus.portal.db.ServiceProvider)

Example 3 with ServiceProviderMapper

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;
}
Also used : ServiceProviderMapper(com.itrus.portal.db.ServiceProviderMapper) ServiceProvider(com.itrus.portal.db.ServiceProvider)

Example 4 with ServiceProviderMapper

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();
}
Also used : ServiceProviderMapper(com.itrus.portal.db.ServiceProviderMapper)

Example 5 with ServiceProviderMapper

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;
}
Also used : ServiceProviderMapper(com.itrus.portal.db.ServiceProviderMapper)

Aggregations

ServiceProviderMapper (com.itrus.portal.db.ServiceProviderMapper)7 ServiceProvider (com.itrus.portal.db.ServiceProvider)2