分类管理
This commit is contained in:
17
sky-server/src/main/java/com/sky/mapper/DishMapper.java
Normal file
17
sky-server/src/main/java/com/sky/mapper/DishMapper.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package com.sky.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
@Mapper
|
||||
public interface DishMapper {
|
||||
|
||||
/**
|
||||
* 根据分类id查询菜品数量
|
||||
* @param categoryId
|
||||
* @return
|
||||
*/
|
||||
@Select("select count(id) from dish where category_id = #{categoryId}")
|
||||
Integer countByCategoryId(Long categoryId);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user