|
|
|
|
@ -63,15 +63,15 @@ public class ProductQualifiedService { |
|
|
|
|
nominalWorkingPressure = matchWaterVolume(fieldMap.get("nominalWorkingPressure"), nominalWorkingPressure, "MPa"); |
|
|
|
|
if (nominalWorkingPressure != null) { |
|
|
|
|
equipmentRegistryRespVO.setNominalWorkingPressure(nominalWorkingPressure); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
nominalWorkingPressure = extractManufacturer(texts, fieldMap.get("nominalWorkingPressure"), nominalWorkingPressureOffset); |
|
|
|
|
if (ObjectUtil.isNotEmpty(nominalWorkingPressure)) { |
|
|
|
|
if (nominalWorkingPressure.equals("MPa")) { |
|
|
|
|
nominalWorkingPressure = extractManufacturer(texts, fieldMap.get("nominalWorkingPressure"), 2); |
|
|
|
|
} else { |
|
|
|
|
nominalWorkingPressure = extractManufacturer(texts, fieldMap.get("nominalWorkingPressure"), nominalWorkingPressureOffset); |
|
|
|
|
if (ObjectUtil.isNotEmpty(nominalWorkingPressure)) { |
|
|
|
|
if (nominalWorkingPressure.equals("MPa")) { |
|
|
|
|
nominalWorkingPressure = extractManufacturer(texts, fieldMap.get("nominalWorkingPressure"), 2); |
|
|
|
|
} |
|
|
|
|
//气瓶公称工作压力
|
|
|
|
|
equipmentRegistryRespVO.setNominalWorkingPressure(nominalWorkingPressure); |
|
|
|
|
} |
|
|
|
|
//气瓶公称工作压力
|
|
|
|
|
equipmentRegistryRespVO.setNominalWorkingPressure(nominalWorkingPressure); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
int cylinderVolumeOffset = 1; |
|
|
|
|
@ -83,22 +83,22 @@ public class ProductQualifiedService { |
|
|
|
|
cylinderVolume = matchWaterVolume(fieldMap.get("cylinderVolume"), cylinderVolume, "L"); |
|
|
|
|
if (cylinderVolume != null) { |
|
|
|
|
return equipmentRegistryRespVO.setCylinderVolume(cylinderVolume); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
cylinderVolume = extractManufacturer(texts, fieldMap.get("cylinderVolume"), cylinderVolumeOffset); |
|
|
|
|
if (isNumeric(cylinderVolume) || isNumericL(cylinderVolume)) { |
|
|
|
|
return equipmentRegistryRespVO.setCylinderVolume(cylinderVolume); |
|
|
|
|
} else { |
|
|
|
|
if (cylinderVolume != null && cylinderVolume.equals("L")) { |
|
|
|
|
//处理识别到上一行的情况
|
|
|
|
|
cylinderVolume = extractManufacturer(texts, fieldMap.get("cylinderVolume"), -1); |
|
|
|
|
if (isNumeric(cylinderVolume)) { |
|
|
|
|
return equipmentRegistryRespVO.setCylinderVolume(cylinderVolume); |
|
|
|
|
} |
|
|
|
|
cylinderVolume = extractManufacturer(texts, fieldMap.get("cylinderVolume"), cylinderVolumeOffset); |
|
|
|
|
if (isNumeric(cylinderVolume) || isNumericL(cylinderVolume)) { |
|
|
|
|
return equipmentRegistryRespVO.setCylinderVolume(cylinderVolume); |
|
|
|
|
} else { |
|
|
|
|
cylinderVolume = extractManufacturer(texts, "实测水容机: ", 1); |
|
|
|
|
if (isNumeric(cylinderVolume) || isNumericL(cylinderVolume)) { |
|
|
|
|
return equipmentRegistryRespVO.setCylinderVolume(cylinderVolume); |
|
|
|
|
if (cylinderVolume != null && cylinderVolume.equals("L")) { |
|
|
|
|
//处理识别到上一行的情况
|
|
|
|
|
cylinderVolume = extractManufacturer(texts, fieldMap.get("cylinderVolume"), -1); |
|
|
|
|
if (isNumeric(cylinderVolume)) { |
|
|
|
|
return equipmentRegistryRespVO.setCylinderVolume(cylinderVolume); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
cylinderVolume = extractManufacturer(texts, "实测水容机: ", 1); |
|
|
|
|
if (isNumeric(cylinderVolume) || isNumericL(cylinderVolume)) { |
|
|
|
|
return equipmentRegistryRespVO.setCylinderVolume(cylinderVolume); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|