|
@@ -18,6 +18,7 @@ import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
import java.math.RoundingMode;
|
|
import java.math.RoundingMode;
|
|
|
|
+import java.text.DecimalFormat;
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
@@ -77,7 +78,9 @@ public class EnvWarningServiceImpl extends ServiceImpl<EnvWarningMapper, EnvWarn
|
|
if (ObjectUtil.isNull(gap)){
|
|
if (ObjectUtil.isNull(gap)){
|
|
gap = 0.0;
|
|
gap = 0.0;
|
|
}
|
|
}
|
|
- BigDecimal bg = new BigDecimal(gap).setScale(2, RoundingMode.UP);
|
|
|
|
|
|
+// BigDecimal bg = new BigDecimal(gap).setScale(2, RoundingMode.UP);
|
|
|
|
+ DecimalFormat def = new DecimalFormat("#.00");
|
|
|
|
+ String bg = def.format(gap);
|
|
resultMap.put("gap",bg);
|
|
resultMap.put("gap",bg);
|
|
return new Result(ResultCode.SUCCESS,resultMap);
|
|
return new Result(ResultCode.SUCCESS,resultMap);
|
|
}
|
|
}
|