| | |
| | | return pathName; |
| | | } |
| | | // 震动doc文件解析 |
| | | if(filename.contains(".doc") && sonLaboratory.equals("振动")){ |
| | | if(filename.toLowerCase().contains(".doc") && sonLaboratory.equals("振动")){ |
| | | return docAnalysis(urlString,orderId,sampleId,file.getOriginalFilename()); |
| | | } |
| | | } catch (Exception e) { |
| | |
| | | if(tableIndex == 0){ |
| | | Table table = tableList.get(0); |
| | | for (int i = 0; i < table.numRows(); i++) { |
| | | if(table.getRow(i).numCells() < 2){ |
| | | continue; |
| | | } |
| | | String columnText = ObjectUtils.isEmpty(table.getRow(i).getCell(0))? "" : table.getRow(i).getCell(0).text(); |
| | | String columnValue = ObjectUtils.isEmpty(table.getRow(i).getCell(1))? "" : table.getRow(i).getCell(1).text(); |
| | | if(columnValue.contains("\u0007")){ |
| | |
| | | //取第一个表单输入通道参数第一条数据 |
| | | if(tableIndex == 1){ |
| | | Table table = tableList.get(1); |
| | | if(ObjectUtils.isNotEmpty(table)&& table.numRows() > 0){ |
| | | if(ObjectUtils.isNotEmpty(table) && table.numRows() > 1 && table.getRow(1).numCells() >= 3){ |
| | | String columnValue = ObjectUtils.isEmpty(table.getRow(1).getCell(2))? "" : table.getRow(1).getCell(2).text(); |
| | | if(columnValue.contains("\u0007")){ |
| | | columnValue = columnValue.replace("\u0007",""); |
| | |
| | | if(tableIndex == tableList.size() - 1){ |
| | | Table table = tableList.get(tableIndex); |
| | | for (int i = 0; i < table.numRows(); i++) { |
| | | if(table.getRow(i).numCells() < 2){ |
| | | continue; |
| | | } |
| | | String columnText = ObjectUtils.isEmpty(table.getRow(i).getCell(0))? "" : table.getRow(i).getCell(0).text(); |
| | | String columnValue = ObjectUtils.isEmpty(table.getRow(i).getCell(1))? "" : table.getRow(i).getCell(1).text(); |
| | | if(columnValue.contains("\u0007")){ |