Exemplo n.º 1
0
 /* (非 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);
 }
Exemplo n.º 2
0
 /* (非 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);
 }
Exemplo n.º 3
0
 /* (非 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);
 }