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

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

@Mapper
public interface FoodMealMenuItemMapper extends BaseMapper<FoodMealMenuItem, FoodMealMenuItemQueryVO> {

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

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

    int updatePublishStatus(@Param("id") String id, @Param("publishStatus") String publishStatus, @Param("tenantCode") String tenantCode);
}
