package com.casic.missiles.mapper.meter;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.casic.missiles.dto.meter.TraceSupplierApprovalListRequest;
import com.casic.missiles.dto.meter.TraceSupplierApprovalListResponse;
import com.casic.missiles.dto.meter.TraceSupplierDetailResponse;
import com.casic.missiles.model.meter.MeterTraceSupplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 计量管理-溯源供方-溯源供方表(计量计量单位的设备的单位) Mapper 接口
 * </p>
 *
 * @author wangpeng
 * @since 2022-11-28
 */
public interface MeterTraceSupplierMapper extends BaseMapper<MeterTraceSupplier> {

    Long selectMaxSupplierNo();

    TraceSupplierDetailResponse selectTraceSupplierById(@Param("id") Long id);

    List<MeterTraceSupplier> selectDraftListForApproval(Page<TraceSupplierApprovalListResponse> page, @Param("request") TraceSupplierApprovalListRequest request);

    List<MeterTraceSupplier> selectBatchForApproval(Page<TraceSupplierApprovalListResponse> page, @Param("request") TraceSupplierApprovalListRequest request, @Param("businessKey") List<String> businessKey);
}
