|
@@ -111,8 +111,10 @@ public class EntityProcessLis extends EntityProcess {
|
|
if (value.trim().length() > 0) {
|
|
if (value.trim().length() > 0) {
|
|
val_unit = extract_digit_new(value);
|
|
val_unit = extract_digit_new(value);
|
|
}
|
|
}
|
|
- pd.setValue(val_unit[0]);
|
|
|
|
- pd.setUnit(val_unit[1]);
|
|
|
|
|
|
+ if (val_unit != null && val_unit.length == 2) {
|
|
|
|
+ pd.setValue(val_unit[0]);
|
|
|
|
+ pd.setUnit(val_unit[1].trim()); // 单位去空格
|
|
|
|
+ }
|
|
return pd;
|
|
return pd;
|
|
}
|
|
}
|
|
|
|
|