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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.supply.purchase.domain.bo.DrpOrderGoods;
import com.bonus.canteen.core.supply.purchase.domain.param.DrpOrderGoodsPageDTO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpMaterialLatestPriceVO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpOrderGoodsPageVO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpOrderGoodsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DrpPurchaseOrderGoodsMapper extends BaseMapper<DrpOrderGoods> {
    DrpOrderGoodsVO getDrpOrderGoodsInfo(@Param("orderGoodsId") String orderGoodsId);
    List<DrpOrderGoodsPageVO> getDrpOrderGoodsList(@Param("content") DrpOrderGoodsPageDTO content, @Param("delFlag") Integer delFlag);
    List<DrpMaterialLatestPriceVO> getDrpOrderGoodsLastPriceList(@Param("materialIdList") List<Long> materialIdList, @Param("canteenId") Long canteenId);

}
