敏捷工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
918 B

2 years ago
  1. package com.whn.hellospring.mapper;
  2. import org.apache.ibatis.annotations.*;
  3. @Mapper
  4. public interface CoffeeMapper {
  5. // @Insert("INSERT into t_coffee (name,price,create_time,update_time)"
  6. // +"values(#{name},#{price},now(),now())")
  7. // @Options(useGeneratedKeys = true)
  8. // int save(Coffee coffee);
  9. //
  10. //
  11. // @Select("select * from t_coffee where id = #{id}")
  12. // @Results({
  13. // @Result(id = true,column = "id",property = "id"),
  14. // @Result(column = "create_time",property = "create_time"),
  15. // })
  16. // Coffee findById(@Param("id") Long id);
  17. //
  18. //
  19. //
  20. // //分页
  21. // @Select("select * from t_coffee order by id")
  22. // List<Coffee> findAllWithRowBounds(RowBounds rowBounds);
  23. //
  24. // @Select("select * from t_coffee order by id")
  25. // List<Coffee> findAllWithParam(@Param("pageNum") int pageNum,
  26. // @Param("pageSize") int pageSize);
  27. }