敏捷工具
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.

23 lines
516 B

2 years ago
  1. package com.whn.hellospring.repository;
  2. import com.whn.hellospring.model.CoffeeOrderDO;
  3. import com.whn.hellospring.model.MenuDO;
  4. import org.springframework.data.jpa.repository.JpaRepository;
  5. import org.springframework.data.jpa.repository.Query;
  6. import java.util.List;
  7. /**
  8. * 菜单类型
  9. */
  10. public interface MenuRepository extends JpaRepository<MenuDO, Long> {
  11. /**
  12. * 获取菜单的类型列表
  13. */
  14. @Query(value = "select * from t_menu",nativeQuery = true)
  15. List<MenuDO> getMenuList();
  16. }