苍穹外卖--分类管理代码导入
This commit is contained in:
17
sky-server/src/main/java/com/sky/mapper/SetmealMapper.java
Normal file
17
sky-server/src/main/java/com/sky/mapper/SetmealMapper.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 SetmealMapper {
|
||||
|
||||
/**
|
||||
* 根据分类id查询套餐的数量
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@Select("select count(id) from setmeal where category_id = #{categoryId}")
|
||||
Integer countByCategoryId(Long id);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user