Commit b67021fb by lijingjing

单元格异常处理;

parent 41a9cc67
...@@ -928,12 +928,12 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe ...@@ -928,12 +928,12 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
Long templateId = dto.getTemplateId(); Long templateId = dto.getTemplateId();
RestAssert.fail(null == templateId, "请选择报告模板!"); 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)) { if (CollectionUtils.isNotEmpty(relSamples)) {
RestAssert.fail("您选择的样品含有已经生成过报告的,请确认"); 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), "样品不存在请确认!"); RestAssert.fail(CollectionUtils.isEmpty(sampleList), "样品不存在请确认!");
// 委托信息 // 委托信息
Long entrustId = sampleList.get(0).getEntrustId(); Long entrustId = sampleList.get(0).getEntrustId();
...@@ -1026,7 +1026,7 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe ...@@ -1026,7 +1026,7 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
try { try {
xssfWorkbook = new XSSFWorkbook(io); xssfWorkbook = new XSSFWorkbook(io);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); logger.error("==== EntrustSampleServiceImpl ==== makeReport ====> 生成XSSFWorkbook时异常:", e);
} }
List<EntrustReportTemplateConfig> configList = entrustReportTemplateConfigService.list(Condition.create().eq("template_id", templateId)); 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