Commit fe5a804a by 陶光胜

门店控件修复

parent 3fa567f6
......@@ -26,7 +26,7 @@ public class StringJsonSeralizer extends JsonSerializer<String> {
if(StringUtils.isNotBlank(value)){
Matcher isNum = NUMBER_PATTERN.matcher(value);
if(isNum.matches()){
BigDecimal decimal = new BigDecimal(value).setScale(1, BigDecimal.ROUND_HALF_UP);
BigDecimal decimal = new BigDecimal(value).setScale(2, BigDecimal.ROUND_HALF_UP);
jsonGenerator.writeString(decimal.toString());
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment