/* (非 Javadoc) * <p>Title: insert</p> * <p>Description: </p> * @param record * @return * @throws SQLException * @see com.wugu.ycyp.service.CategoryService#insert(com.wugu.ycyp.entity.Category) */ @Override public int insert(Category record) throws SQLException { return categoryMapper.insertSelective(record); }
/* (非 Javadoc) * <p>Title: update</p> * <p>Description: </p> * @param record * @return * @throws SQLException * @see com.wugu.ycyp.service.CategoryService#update(com.wugu.ycyp.entity.Category) */ @Override public int update(Category record) throws SQLException { return categoryMapper.updateByPrimaryKeySelective(record); }
/* (非 Javadoc) * <p>Title: getList</p> * <p>Description: </p> * @param example * @return * @throws SQLException * @see com.wugu.ycyp.service.CategoryService#getList(com.wugu.ycyp.entity.CategoryExample) */ @Override public List<Category> getList(CategoryExample example) throws SQLException { return categoryMapper.selectByExample(example); }