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.FileApprovalListRequest;
import com.casic.missiles.dto.meter.FileApprovalListResponse;
import com.casic.missiles.model.meter.MeterFile;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 计量管理-计量文件-文件表 Mapper 接口
 * </p>
 *
 * @author wangpeng
 * @since 2022-11-22
 */
public interface MeterFileMapper extends BaseMapper<MeterFile> {

    Long selectMaxFileNo();

    int updateEffectiveStatusByTime();

    List<FileApprovalListResponse> selectApprovalList(Page<FileApprovalListResponse> page, @Param("request") FileApprovalListRequest request);

    List<MeterFile> selectDraftListForApproval(Page<FileApprovalListResponse> page, @Param("request") FileApprovalListRequest request);

    List<MeterFile> selectBatchForApproval(Page<FileApprovalListResponse> page, @Param("request")FileApprovalListRequest request, @Param("businessKey")List<String> businessKey);
}
