package com.patzn.lims.drug.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.patzn.lims.core.web.Account;
import com.patzn.lims.core.web.IBaseService;
import com.patzn.lims.drug.entity.DrugSample;
import com.patzn.lims.drug.entity.DrugSampleReport;

import javax.servlet.http.HttpServletResponse;
import java.io.File;

/**
 * <p>
 * 食药单机版报告表 服务类
 * </p>
 *
 * @author wwd
 * @since 2020-03-10
 */
public interface IDrugSampleReportService extends IBaseService<DrugSampleReport> {

    Page<DrugSampleReport> page(Page<DrugSampleReport> page, DrugSampleReport drugSampleReport);

    void uploadSampleGenerateDocx(DrugSample dbSample, Account account, String remark, File file);


    DrugSampleReport getLastByContractId(Long sampleId);

    void download(Long[] sampleId, HttpServletResponse response, DrugSampleReport drugSampleReport);
}
