diff --git a/src/main/java/cokr/xit/fims/crdn/receive/eqpmnt/LayoutParser.java b/src/main/java/cokr/xit/fims/crdn/receive/eqpmnt/LayoutParser.java index 97a65585..ddcfd105 100644 --- a/src/main/java/cokr/xit/fims/crdn/receive/eqpmnt/LayoutParser.java +++ b/src/main/java/cokr/xit/fims/crdn/receive/eqpmnt/LayoutParser.java @@ -12,6 +12,7 @@ import java.util.regex.Matcher; import java.util.stream.Collectors; import org.apache.commons.io.FilenameUtils; +import org.apache.commons.lang3.StringUtils; import cokr.xit.base.code.CommonCode; import cokr.xit.fims.cmmn.CodeConverter; @@ -313,6 +314,16 @@ abstract public class LayoutParser { if(!itemValue.equals("")) { //소수부 0제거 if(itemValue.contains(".")) { + + boolean end = false; + while(!end) { + String removed = StringUtils.removeEnd(itemValue, "0"); + if(removed.equals(itemValue)) { + itemValue = removed; + end = true; + } + } + itemValue = itemValue.replaceAll("0+$", ""); if(itemValue.endsWith(".")){ itemValue = itemValue + "0";