소나큐브 버그 수정

main
이범준 7 months ago
parent 1e31e0eec9
commit 09c864030e

@ -12,6 +12,7 @@ import java.util.regex.Matcher;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.apache.commons.io.FilenameUtils; import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.StringUtils;
import cokr.xit.base.code.CommonCode; import cokr.xit.base.code.CommonCode;
import cokr.xit.fims.cmmn.CodeConverter; import cokr.xit.fims.cmmn.CodeConverter;
@ -313,6 +314,16 @@ abstract public class LayoutParser {
if(!itemValue.equals("")) { if(!itemValue.equals("")) {
//소수부 0제거 //소수부 0제거
if(itemValue.contains(".")) { 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+$", ""); itemValue = itemValue.replaceAll("0+$", "");
if(itemValue.endsWith(".")){ if(itemValue.endsWith(".")){
itemValue = itemValue + "0"; itemValue = itemValue + "0";

Loading…
Cancel
Save