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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.supply.purchase.domain.bo.DrpProcurementContract;
import com.bonus.canteen.core.supply.purchase.domain.param.DrpContractPageDTO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpContractDetailVO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpContractPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DrpProcurementContractMapper extends BaseMapper<DrpProcurementContract> {
   List<DrpContractPageVO> page(@Param("content") DrpContractPageDTO content, @Param("delFlag") Integer delFlag);

   List<DrpContractDetailVO> getDetailListByContractId(@Param("contractId") String contractId);

   DrpProcurementContract getBySupplierId(@Param("supplierId") Long supplierId);
}
