| | |
| | | package com.ots.project.exam.service; |
| | | |
| | | import com.ots.common.enums.LangTypeEnum; |
| | | import com.ots.common.enums.ReportTypeEnum; |
| | | import com.ots.project.exam.domain.TExamReport; |
| | | import com.ots.project.exam.domain.TReportTemplate; |
| | | import com.ots.project.system.dict.domain.DictData; |
| | | import com.ots.project.tool.report.ReportResultData; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 评测报告Service接口 |
| | | * |
| | | * @author ots |
| | | * @date 2019-12-26 |
| | | */ |
| | | public interface ITExamReportService { |
| | | |
| | | /** |
| | | * 查询评测报告 |
| | | * |
| | | * @param id 评测报告ID |
| | | * @return 评测报告 |
| | | */ |
| | | TExamReport selectTExamReportById(Long id); |
| | | |
| | | |
| | | /** |
| | | * 查询评测报告列表 |
| | | * |
| | | * @param tExamReport 评测报告 |
| | | * @return 评测报告集合 |
| | | */ |
| | | List<TExamReport> selectTExamReportList(TExamReport tExamReport); |
| | | |
| | | |
| | | // 根据finish查询 |
| | | List<TExamReport> selectViewReportList(TExamReport tExamReport); |
| | | |
| | | |
| | | /** |
| | | * 新增评测报告 |
| | | * |
| | | * @param tExamReport 评测报告 |
| | | * @return 结果 |
| | | */ |
| | | int insertTExamReport(TExamReport tExamReport); |
| | | |
| | | |
| | | /** |
| | | * 修改评测报告 |
| | | * |
| | | * @param tExamReport 评测报告 |
| | | * @return 结果 |
| | | */ |
| | | int updateTExamReport(TExamReport tExamReport); |
| | | |
| | | int updateTExamReportStatus(TExamReport tExamReport); |
| | | |
| | | int updateTExamReportByTokenId(TExamReport tExamReport); |
| | | |
| | | int updateTExamReportDeleteLastOneByTokenId(TExamReport tExamReport); |
| | | |
| | | |
| | | /** |
| | | * 批量删除评测报告 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | int deleteTExamReportByIds(String ids); |
| | | |
| | | |
| | | /** |
| | | * 删除评测报告信息 |
| | | * |
| | | * @param id 评测报告ID |
| | | * @return 结果 |
| | | */ |
| | | int deleteTExamReportById(Long id); |
| | | |
| | | |
| | | /** |
| | | * 报告审批状态变更 |
| | | * |
| | | * @param tExamReport |
| | | * @return |
| | | */ |
| | | int changeStatus(TExamReport tExamReport); |
| | | |
| | | |
| | | /** |
| | | * 批量更新审批状态 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | int updateTexamReportByIds(String ids, String downloadTimes); |
| | | |
| | | |
| | | /** |
| | | * 根据tokenId批量查询 |
| | | */ |
| | | |
| | | List<TExamReport> selectTExamReportByTokenList(String[] tokenIds); |
| | | |
| | | |
| | | List<TExamReport> selectTExamReportByIds(String[] ids); |
| | | |
| | | |
| | | List<DictData> getType(Long id); |
| | | |
| | | TReportTemplate getReportTemplate(String questionTemplateId, String langType, String templateType); |
| | | |
| | | |
| | | // 模拟调用接口抽取到服务层 |
| | | void setTextPicture(TExamReport tExamReport, ReportResultData reportResultData, List<String> deleteStrList, LangTypeEnum langType, Map<String, Object> textMap); |
| | | |
| | | |
| | | // 发送附件接口 |
| | | public void setExportBaseOrDetailReportData(List<TExamReport> tExamReportList, List<String> deleteStrList, List<String> fileNameList, TReportTemplate tReportTemplate); |
| | | |
| | | public String getDemographicName(TExamReport tExamReport); |
| | | |
| | | public boolean getBaseAndComleteSendMailFile(List<TExamReport> tExamReportList, TExamReport tExamReportResult, List<String> fileNameResult, List<String> deleteStrList, TReportTemplate tReportTemplate); |
| | | |
| | | public TExamReport getReportFromTemplate(TExamReport tExamReport, List<String> fileNameResult, List<String> deleteStrList); |
| | | |
| | | public void getBaseAndDetailRportDataList(TReportTemplate tReportTemplate, Map<String, Map<String, String>> excelMap, List<ReportResultData> reportResultDataList, List<TExamReport> tExamQueryReportList); |
| | | |
| | | public void dealTaiData(List<TExamReport> tExamReportList, Map<String, Map<String, String>> excelMap); |
| | | |
| | | public ReportResultData getRuilinReportData(String langType, Map.Entry<String, Map<String, String>> entry, TExamReport tExamReport); |
| | | |
| | | public ReportResultData getMAQReportData(String langType,ReportTypeEnum reportTypeEnum, Map.Entry<String, Map<String, String>> entry, TExamReport tExamReport); |
| | | |
| | | public ReportResultData getCAQReportData(String langType, Map.Entry<String, Map<String, String>> entry, TExamReport tExamReport); |
| | | |
| | | public void setTextMap(TExamReport tExamReport, ReportResultData reportResultData, Map<String, Object> textMap); |
| | | |
| | | public ReportResultData getReportResultData(String reportType, String langType, Map.Entry<String, Map<String, String>> entry, TExamReport tExamReport); |
| | | public void setExcelMapextraValue(TExamReport tExamReport, Map dataMap); |
| | | } |