新增套餐、套餐分页查询、根据分类id查询菜品

This commit is contained in:
slhaf
2024-09-12 20:02:21 +08:00
parent 5419e321c8
commit e223fbb1a8
19 changed files with 209 additions and 14 deletions

View File

@@ -1,5 +1,10 @@
package com.sky.mapper;
import com.github.pagehelper.Page;
import com.sky.annotation.AutoFill;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.Setmeal;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@@ -14,4 +19,8 @@ public interface SetmealMapper {
@Select("select count(id) from setmeal where category_id = #{categoryId}")
Integer countByCategoryId(Long id);
Page<Setmeal> pageQuery(SetmealPageQueryDTO setmealPageQueryDTO);
@AutoFill(OperationType.INSERT)
void insert(Setmeal setmeal);
}