苍穹外卖--分类管理代码导入

This commit is contained in:
2025-11-10 14:08:06 +08:00
parent 1241b73752
commit 5d81997761
7 changed files with 420 additions and 0 deletions

View 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);
}