文件名从 cnas-require/src/main/java/com/ruoyi/require/handler/TemperatureTestReportHandler.java 修改 |
| | |
| | | package com.ruoyi.require.handler; |
| | | package com.ruoyi.inspect.handler; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.deepoove.poi.data.*; |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.dto.SampleProductDto; |
| | | import com.ruoyi.inspect.mapper.InsProductMapper; |
| | |
| | | |
| | | private final InsProductResultMapper insProductResultMapper; |
| | | |
| | | public TemperatureTestReportHandler(InsProductMapper insProductMapper, InsProductResultMapper insProductResultMapper){ |
| | | public TemperatureTestReportHandler(InsProductMapper insProductMapper,InsProductResultMapper insProductResultMapper){ |
| | | this.insProductMapper = insProductMapper; |
| | | this.insProductResultMapper = insProductResultMapper; |
| | | } |
| | |
| | | } |
| | | } |
| | | rowRenderData.setCells(cells); |
| | | if (rowRenderData.getCells().size() != 0) { |
| | | if (!rowRenderData.getCells().isEmpty()) { |
| | | rows.add(rowRenderData); |
| | | } |
| | | } |
| | |
| | | tableRenderData.setRows(rows); |
| | | int countSize = tableRenderData.getRows().get(0).getCells().size(); |
| | | for (RowRenderData row : tableRenderData.getRows()) { |
| | | /*for (CellRenderData cell : row.getCells()) { |
| | | System.out.print(cell.getParagraphs().get(0).getContents()); |
| | | } |
| | | System.out.println("");*/ |
| | | if (row.getCells().size() != countSize) { |
| | | throw new ErrorException("姣忚鍗曞厓鏍间笉鐩哥瓑5"); |
| | | } |