Commit b67021fb by lijingjing

单元格异常处理;

parent 41a9cc67
......@@ -928,12 +928,12 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
Long templateId = dto.getTemplateId();
RestAssert.fail(null == templateId, "请选择报告模板!");
List<EntrustReportRelSample> relSamples = entrustReportRelSampleService.list(Condition.create().in("sample_id", ids));
List<EntrustReportRelSample> relSamples = entrustReportRelSampleService.list(Condition.<EntrustReportRelSample>wrapper().in("sample_id", ids));
if (CollectionUtils.isNotEmpty(relSamples)) {
RestAssert.fail("您选择的样品含有已经生成过报告的,请确认");
}
List<EntrustSample> sampleList = super.list(Condition.create().in("id", ids));
List<EntrustSample> sampleList = super.list(Condition.<EntrustSample>wrapper().in("id", ids));
RestAssert.fail(CollectionUtils.isEmpty(sampleList), "样品不存在请确认!");
// 委托信息
Long entrustId = sampleList.get(0).getEntrustId();
......@@ -1026,7 +1026,7 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
try {
xssfWorkbook = new XSSFWorkbook(io);
} catch (IOException e) {
e.printStackTrace();
logger.error("==== EntrustSampleServiceImpl ==== makeReport ====> 生成XSSFWorkbook时异常:", e);
}
List<EntrustReportTemplateConfig> configList = entrustReportTemplateConfigService.list(Condition.create().eq("template_id", templateId));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment