package com.casic.missiles.service.Impl.business;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.casic.missiles.dto.business.outsource.OrderSampleResponseDTO;
import com.casic.missiles.mapper.business.BusinessOutsourceProjectSampleRelationMapper;
import com.casic.missiles.model.business.BusinessOutsourceProjectSampleRelation;
import com.casic.missiles.service.business.IBusinessOutsourceProjectSampleRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 分包项目-样品关联表 服务实现类
 * </p>
 *
 * @author wangpeng
 * @since 2023-03-23
 */
@Service
public class BusinessOutsourceProjectSampleRelationServiceImpl extends ServiceImpl<BusinessOutsourceProjectSampleRelationMapper, BusinessOutsourceProjectSampleRelation> implements IBusinessOutsourceProjectSampleRelationService {
    @Autowired
    private BusinessOutsourceProjectSampleRelationMapper relationMapper;

    @Override
    public List<OrderSampleResponseDTO> selectSampleList(Long projectId) {
        return relationMapper.selectSampleList(projectId);
    }

    @Override
    public List<OrderSampleResponseDTO> selectSampleList2(Long projectId, String sampleNo, String sampleName) {
        return relationMapper.selectSampleList2(projectId, sampleNo, sampleName);
    }
}
