package com.bonus.canteen.core.supply.purchase.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.supply.purchase.domain.bo.DrpProductionPlanDetail;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpProductionDetailDirectListVO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpProductionDetailRecipeOrderListVO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpProductionDishesNumVO;
import com.bonus.canteen.core.supply.purchase.domain.vo.ProductionPlanDateVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface DrpProductionPlanDetailMapper extends BaseMapper<DrpProductionPlanDetail> {
   List<DrpProductionDetailDirectListVO> listDetailDirect(@Param("productionPlanId") String productionPlanId);

   List<DrpProductionDetailRecipeOrderListVO> listDetailRecipeOrder(@Param("productionPlanId") String productionPlanId);

   List<DrpProductionDishesNumVO> listProductionDishesSum(@Param("productionPlanId") String productionPlanId);

   List<LocalDate> listDetailPlanDate(@Param("productionPlanId") String productionPlanId);

   List<ProductionPlanDateVO> listDetailPlanDateByIdList(@Param("productionPlanIdList") List<String> productionPlanId);

   List<DrpProductionDishesNumVO> listProductionDishesSumByPlanIds(@Param("content") List<String> content);

   List<DrpProductionDishesNumVO> listProductionDishesSumByDate(@Param("productionPlanId") String productionPlanId);
}
