package com.casic.missiles.service.business;

import com.baomidou.mybatisplus.extension.service.IService;
import com.casic.missiles.model.business.BusinessOriginalRecordFileRelation;
import com.casic.missiles.model.meter.MeterFile;
import liquibase.pro.packaged.L;

import java.util.List;

/**
 * <p>
 * 业务管理-原始记录-计量文件关联表 服务类
 * </p>
 *
 * @author wangpeng
 * @since 2023-02-02
 */
public interface IBusinessOriginalRecordFileRelationService extends IService<BusinessOriginalRecordFileRelation> {
    boolean saveBatch(Long originId, List<MeterFile> meterFileList);

    //根据原始记录单id查询所有关联的计量文件
    List<MeterFile> getFilesByOriginalRecordId(Long originId);

    Boolean deleteByOriginId(Long originId);

}
