package com.willalp.canteen.mapper;

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

import java.util.List;

/**
 * 食堂订单明细Mapper接口
 *
 * @author songyu
 * @date 2021-12-03
 */
public interface HsCanteenOrderDetailMapper extends BaseMapper<HsCanteenOrderDetail>
{
    /**
     * 查询食堂订单明细
     *
     * @param detailId 食堂订单明细主键
     * @return 食堂订单明细
     */
    public HsCanteenOrderDetail selectHsCanteenOrderDetailByDetailId(String detailId);

    /**
     * 查询食堂订单明细列表
     *
     * @param hsCanteenOrderDetail 食堂订单明细
     * @return 食堂订单明细集合
     */
    public List<HsCanteenOrderDetail> selectHsCanteenOrderDetailList(HsCanteenOrderDetail hsCanteenOrderDetail);

    /**
     * 新增食堂订单明细
     *
     * @param hsCanteenOrderDetail 食堂订单明细
     * @return 结果
     */
    public int insertHsCanteenOrderDetail(HsCanteenOrderDetail hsCanteenOrderDetail);

    /**
     * 修改食堂订单明细
     *
     * @param hsCanteenOrderDetail 食堂订单明细
     * @return 结果
     */
    public int updateHsCanteenOrderDetail(HsCanteenOrderDetail hsCanteenOrderDetail);

    /**
     * 删除食堂订单明细
     *
     * @param detailId 食堂订单明细主键
     * @return 结果
     */
    public int deleteHsCanteenOrderDetailByDetailId(String detailId);

    /**
     * 批量删除食堂订单明细
     *
     * @param detailIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHsCanteenOrderDetailByDetailIds(String[] detailIds);
}
