package com.willalp.canteen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.willalp.canteen.domain.HsCanteenMenuCustom;

import java.util.List;

/**
 * 自由消费定制菜单Mapper接口
 *
 * @author songyu
 * @date 2021-12-15
 */
public interface HsCanteenMenuCustomMapper extends BaseMapper<HsCanteenMenuCustom>
{
    /**
     * 查询自由消费定制菜单
     *
     * @param customId 自由消费定制菜单主键
     * @return 自由消费定制菜单
     */
    public HsCanteenMenuCustom selectHsCanteenMenuCustomByCustomId(Long customId);

    /**
     * 查询自由消费定制菜单列表
     *
     * @param hsCanteenMenuCustom 自由消费定制菜单
     * @return 自由消费定制菜单集合
     */
    public List<HsCanteenMenuCustom> selectHsCanteenMenuCustomList(HsCanteenMenuCustom hsCanteenMenuCustom);

    /**
     * 新增自由消费定制菜单
     *
     * @param hsCanteenMenuCustom 自由消费定制菜单
     * @return 结果
     */
    public int insertHsCanteenMenuCustom(HsCanteenMenuCustom hsCanteenMenuCustom);

    /**
     * 修改自由消费定制菜单
     *
     * @param hsCanteenMenuCustom 自由消费定制菜单
     * @return 结果
     */
    public int updateHsCanteenMenuCustom(HsCanteenMenuCustom hsCanteenMenuCustom);

    /**
     * 删除自由消费定制菜单
     *
     * @param customId 自由消费定制菜单主键
     * @return 结果
     */
    public int deleteHsCanteenMenuCustomByCustomId(Long customId);

    /**
     * 批量删除自由消费定制菜单
     *
     * @param customIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHsCanteenMenuCustomByCustomIds(Long[] customIds);
}
