package com.jeesharp.business.modules.food.mapper;

import com.jeesharp.business.modules.food.entity.FoodMealMenuItemSpec;
import com.jeesharp.business.modules.food.vo.FoodMealMenuItemSpecQueryVO;
import com.jeesharp.framework.mybatis.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FoodMealMenuItemSpecMapper extends BaseMapper<FoodMealMenuItemSpec, FoodMealMenuItemSpecQueryVO> {

    int increaseSoldQuantity(@Param("id") String id, @Param("quantity") Integer quantity, @Param("tenantCode") String tenantCode);

    int decreaseSoldQuantity(@Param("id") String id, @Param("quantity") Integer quantity, @Param("tenantCode") String tenantCode);

    void deleteByMenuId(@Param("menuId") String menuId);

    void deleteByMenuItemId(@Param("menuItemId") String menuItemId);
}
