| | |
| | | } |
| | | |
| | | /** |
| | | * NBSP(非间断空格) 转成 普通空格 |
| | | * @param oldStr |
| | | * @return |
| | | */ |
| | | private String normalizedSpaces(String oldStr){ |
| | | if(StringUtils.isBlank(oldStr)){ |
| | | return oldStr; |
| | | } |
| | | return oldStr.replaceAll("\u00A0", " ").trim(); |
| | | } |
| | | |
| | | /** |
| | | * 添加报告结论中英文 |
| | | * @param sample |
| | | * @param itemCh |
| | |
| | | String itemCh, |
| | | String itemEn) { |
| | | // 判断是否有检验项分类map |
| | | String classTiemName = itemCh + (StringUtils.isBlank(sample.getInspectionItemClass()) ? "" : sample.getInspectionItemClass()); |
| | | String classTiemNameEn = itemEn + (StringUtils.isBlank(sample.getInspectionItemClassEN()) ? "" : sample.getInspectionItemClassEN()); |
| | | String classTiemNameItemEN = StringUtils.isBlank(sample.getInspectionItemEn()) ? "" : sample.getInspectionItemEn(); |
| | | String classTiemName = itemCh + (StringUtils.isBlank(sample.getInspectionItemClass()) ? "" : normalizedSpaces(sample.getInspectionItemClass())); |
| | | String classTiemNameEn = itemEn + (StringUtils.isBlank(sample.getInspectionItemClassEN()) ? "" : normalizedSpaces(sample.getInspectionItemClassEN())); |
| | | String classTiemNameItemEN = StringUtils.isBlank(sample.getInspectionItemEn()) ? "" : normalizedSpaces(sample.getInspectionItemEn()); |
| | | |
| | | if (errorClassItemMapCn.containsKey(classTiemName)) { |
| | | // 判断是否有检验项map |