Search in sources :

Example 1 with ExtraProductMapper

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

the class ExtraProductServiceImpl method countByExample.

public Integer countByExample(ExtraProductExample example) {
    ExtraProductMapper mapper = sqlSession.getMapper(ExtraProductMapper.class);
    Integer count = mapper.countByExample(example);
    return count;
}
Also used : ExtraProductMapper(com.itrus.portal.db.ExtraProductMapper)

Example 2 with ExtraProductMapper

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

the class ExtraProductServiceImpl method deleteByPrimaryKey.

public void deleteByPrimaryKey(Long id) {
    ExtraProductMapper mapper = sqlSession.getMapper(ExtraProductMapper.class);
    mapper.deleteByPrimaryKey(id);
}
Also used : ExtraProductMapper(com.itrus.portal.db.ExtraProductMapper)

Example 3 with ExtraProductMapper

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

the class ExtraProductServiceImpl method updateByPrimaryKey.

public void updateByPrimaryKey(ExtraProduct extraProduct) throws Exception {
    ExtraProductMapper mapper = sqlSession.getMapper(ExtraProductMapper.class);
    mapper.updateByPrimaryKey(extraProduct);
    sqlSession.flushStatements();
}
Also used : ExtraProductMapper(com.itrus.portal.db.ExtraProductMapper)

Example 4 with ExtraProductMapper

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

the class ExtraProductServiceImpl method selectByExample.

public List<ExtraProduct> selectByExample(ExtraProductExample example) throws Exception {
    ExtraProductMapper mapper = sqlSession.getMapper(ExtraProductMapper.class);
    List<ExtraProduct> list = mapper.selectByExample(example);
    return list;
}
Also used : ExtraProduct(com.itrus.portal.db.ExtraProduct) ExtraProductMapper(com.itrus.portal.db.ExtraProductMapper)

Example 5 with ExtraProductMapper

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

the class ExtraProductServiceImpl method updateByPrimaryKeySelective.

public void updateByPrimaryKeySelective(ExtraProduct extraProduct) throws Exception {
    ExtraProductMapper mapper = sqlSession.getMapper(ExtraProductMapper.class);
    mapper.updateByPrimaryKeySelective(extraProduct);
    sqlSession.flushStatements();
}
Also used : ExtraProductMapper(com.itrus.portal.db.ExtraProductMapper)

Aggregations

ExtraProductMapper (com.itrus.portal.db.ExtraProductMapper)7 ExtraProduct (com.itrus.portal.db.ExtraProduct)2