新增套餐、套餐分页查询、根据分类id查询菜品
This commit is contained in:
@@ -7,7 +7,6 @@ import com.sky.entity.Dish;
|
||||
import com.sky.enumeration.OperationType;
|
||||
import com.sky.vo.DishVO;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
@@ -61,4 +60,12 @@ public interface DishMapper {
|
||||
|
||||
@AutoFill(OperationType.UPDATE)
|
||||
void update(Dish dish);
|
||||
|
||||
/**
|
||||
* 根据分类id查询菜品
|
||||
* @param categoryId
|
||||
* @return
|
||||
*/
|
||||
@Select("select * from dish where category_id = #{categoryId}")
|
||||
List<Dish> selectByCategoryId(String categoryId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user