package com.casic.missiles.mapper.business;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.casic.missiles.dto.business.outsource.OutsourcerApprovalListRequest;
import com.casic.missiles.dto.business.outsource.OutsourcerApprovalListResponse;
import com.casic.missiles.model.business.BusinessOutsourcerInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 分包方 Mapper 接口
 * </p>
 *
 * @author wangpeng
 * @since 2023-03-23
 */
public interface BusinessOutsourcerInfoMapper extends BaseMapper<BusinessOutsourcerInfo> {

    List<BusinessOutsourcerInfo> selectDraftListForApproval(Page<OutsourcerApprovalListResponse> page, @Param("request") OutsourcerApprovalListRequest request);

    List<BusinessOutsourcerInfo> selectBatchForApproval(Page<OutsourcerApprovalListResponse> page, @Param("request") OutsourcerApprovalListRequest request, @Param("businessKey") List<String> businessKeys);

    Long selectMaxOutsourcerNo();
}
