[1480]사의 각도 설정을 "각도"로 했을 때 발생하는 문제 - 출력물
This commit is contained in:
parent
911eb5ee25
commit
cd39f8e81d
@ -1412,9 +1412,9 @@ public class EstimateService {
|
||||
|
||||
String classTypeName = "";
|
||||
if ("0".equals(roofVol.getClassType())) {
|
||||
classTypeName = String.format("%.2f", Double.parseDouble(StringUtils.defaultString(roofVol.getSlope(), "0"))) + "寸";
|
||||
classTypeName = new BigDecimal(StringUtils.defaultString(roofVol.getSlope(), "0")).stripTrailingZeros().toPlainString() + "寸";
|
||||
} else {
|
||||
classTypeName = String.format("%.2f", Double.parseDouble(StringUtils.defaultString(roofVol.getAngle(), "0"))) + "º";
|
||||
classTypeName = new BigDecimal(StringUtils.defaultString(roofVol.getAngle(), "0")).stripTrailingZeros().toPlainString() + "º";
|
||||
}
|
||||
roofVol.setClassTypeName(classTypeName);
|
||||
|
||||
@ -1427,9 +1427,9 @@ public class EstimateService {
|
||||
for (RoofResponse roof : roofList) {
|
||||
String roofClassTypeName = "";
|
||||
if ("0".equals(roof.getClassType())) {
|
||||
roofClassTypeName = String.format("%.2f", Double.parseDouble(StringUtils.defaultString(roof.getSlope(), "0"))) + "寸";
|
||||
roofClassTypeName = new BigDecimal(StringUtils.defaultString(roof.getSlope(), "0")).stripTrailingZeros().toPlainString() + "寸";
|
||||
} else {
|
||||
roofClassTypeName = String.format("%.2f", Double.parseDouble(StringUtils.defaultString(roof.getAngle(), "0"))) + "º";
|
||||
roofClassTypeName = new BigDecimal(StringUtils.defaultString(roof.getAngle(), "0")).stripTrailingZeros().toPlainString() + "º";
|
||||
}
|
||||
roof.setClassTypeName(roofClassTypeName);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user