package com.casic.missiles.service.business;

import com.baomidou.mybatisplus.extension.service.IService;
import com.casic.missiles.model.business.BusinessOriginalRecordEquipmentRelation;
import com.casic.missiles.model.equipment.EquipmentFixedAssets;
import liquibase.pro.packaged.B;

import java.util.List;

/**
 * <p>
 * 业务管理-原始记录-标准装置关联表 服务类
 * </p>
 *
 * @author wangpeng
 * @since 2023-02-02
 */
public interface IBusinessOriginalRecordEquipmentRelationService extends IService<BusinessOriginalRecordEquipmentRelation> {

    boolean saveBatch(Long originId, List<EquipmentFixedAssets> equipmentFixedAssetsList);

    //根据原始记录单id查询所有关联的检测设备
    List<EquipmentFixedAssets> getEquipmentsByOriginalRecordId(Long originId);

    Boolean deleteByOriginId(Long originId);
}
