文件名从 cnas-require/src/main/java/com/ruoyi/require/handler/ThermalCycleReportHandler.java 修改 |
| | |
| | | package com.ruoyi.require.handler; |
| | | package com.ruoyi.inspect.handler; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | |
| | | |
| | | private final InsProductResultMapper insProductResultMapper; |
| | | |
| | | public ThermalCycleReportHandler(InsProductMapper insProductMapper, InsProductResultMapper insProductResultMapper){ |
| | | public ThermalCycleReportHandler(InsProductMapper insProductMapper,InsProductResultMapper insProductResultMapper){ |
| | | this.insProductMapper = insProductMapper; |
| | | this.insProductResultMapper = insProductResultMapper; |
| | | } |
| | |
| | | .eq(InsProduct::getInspectionItemClass, "鐩存祦鐢甸樆") |
| | | .isNull(InsProduct::getInsFiberId) //鐢ㄥ厜绾ゅ尯鍒俯鍗囪瘯楠屽拰娓╁害寰幆 |
| | | .eq(InsProduct::getInspectionItem, i + "")); |
| | | InsProductResult insProductResult = insProductResultMapper.selectList(Wrappers.<InsProductResult>lambdaQuery().eq(InsProductResult::getInsProductId, insPros.get(0).getId())).get(0); |
| | | InsProductResult insProductResult = insProductResultMapper.selectList(Wrappers.<InsProductResult>lambdaQuery() |
| | | .eq(InsProductResult::getInsProductId, insPros.get(0).getId())).get(0); |
| | | vCount += StringUtils.countMatches(insProductResult.getInsValue(), "\"v\":\""); |
| | | list.add(StringUtils.countMatches(insProductResult.getInsValue(), "\"v\":\"")); |
| | | } |
| | |
| | | } |
| | | } |
| | | 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"); |
| | | } |