Compare commits
No commits in common. "e47be823e8fb15e09501fa981c6a625d71bd0cd0" and "ec27c93ee0634e7a91dd2c695d42fc8780c4cc1c" have entirely different histories.
e47be823e8
...
ec27c93ee0
@ -1412,9 +1412,9 @@ public class EstimateService {
|
|||||||
|
|
||||||
String classTypeName = "";
|
String classTypeName = "";
|
||||||
if ("0".equals(roofVol.getClassType())) {
|
if ("0".equals(roofVol.getClassType())) {
|
||||||
classTypeName = new BigDecimal(StringUtils.defaultString(roofVol.getSlope(), "0")).stripTrailingZeros().toPlainString() + "寸";
|
classTypeName = String.format("%.2f", Double.parseDouble(StringUtils.defaultString(roofVol.getSlope(), "0"))) + "寸";
|
||||||
} else {
|
} else {
|
||||||
classTypeName = new BigDecimal(StringUtils.defaultString(roofVol.getAngle(), "0")).stripTrailingZeros().toPlainString() + "º";
|
classTypeName = String.format("%.2f", Double.parseDouble(StringUtils.defaultString(roofVol.getAngle(), "0"))) + "º";
|
||||||
}
|
}
|
||||||
roofVol.setClassTypeName(classTypeName);
|
roofVol.setClassTypeName(classTypeName);
|
||||||
|
|
||||||
@ -1427,9 +1427,9 @@ public class EstimateService {
|
|||||||
for (RoofResponse roof : roofList) {
|
for (RoofResponse roof : roofList) {
|
||||||
String roofClassTypeName = "";
|
String roofClassTypeName = "";
|
||||||
if ("0".equals(roof.getClassType())) {
|
if ("0".equals(roof.getClassType())) {
|
||||||
roofClassTypeName = new BigDecimal(StringUtils.defaultString(roof.getSlope(), "0")).stripTrailingZeros().toPlainString() + "寸";
|
roofClassTypeName = String.format("%.2f", Double.parseDouble(StringUtils.defaultString(roof.getSlope(), "0"))) + "寸";
|
||||||
} else {
|
} else {
|
||||||
roofClassTypeName = new BigDecimal(StringUtils.defaultString(roof.getAngle(), "0")).stripTrailingZeros().toPlainString() + "º";
|
roofClassTypeName = String.format("%.2f", Double.parseDouble(StringUtils.defaultString(roof.getAngle(), "0"))) + "º";
|
||||||
}
|
}
|
||||||
roof.setClassTypeName(roofClassTypeName);
|
roof.setClassTypeName(roofClassTypeName);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user