|
|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.inspect.partrolresult.domain; |
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
import com.inspect.base.core.utils.StringUtils; |
|
|
|
import lombok.Getter; |
|
|
|
import lombok.Setter; |
|
|
|
|
|
|
|
@ -21,6 +22,9 @@ public class ResultValue implements Serializable { |
|
|
|
private String createTime; |
|
|
|
|
|
|
|
public String formatValue(String args) { |
|
|
|
if(StringUtils.isEmpty(args)) { |
|
|
|
return StringUtils.EMPTY; |
|
|
|
} |
|
|
|
String pattern = "(\\d+(\\.\\d+)?)"; |
|
|
|
String valueOnlyPrecise = args.replaceAll(".*?(" + pattern + ").*", "$1"); |
|
|
|
if(valueOnlyPrecise.startsWith(".")) { |
|
|
|
|