From ffd57bf69830533b414b7014cff84e5e03b641cd Mon Sep 17 00:00:00 2001 From: thkim Date: Mon, 23 Mar 2026 15:12:07 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B2=80=EC=88=98=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=9E=90=20=EC=9C=A0=ED=86=B5=EB=8D=B0=EC=9D=B4=ED=84=B0=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=20=EC=8B=9C,=20=EC=8B=A4=EB=82=B4=20?= =?UTF-8?q?=ED=86=A0=EC=82=AC=EC=8B=9C=ED=97=98=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=EA=B0=80=20=EC=97=86=EC=96=B4=EB=8F=84=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=EB=90=98=EB=8F=84=EB=A1=9D=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../geoinfo/regi/status/RegiController.java | 8 + src/main/java/geoinfo/util/MyUtil.java | 13 +- .../WEB-INF/views/web/manage/createZip.jsp | 236 ++++++++++-------- 3 files changed, 147 insertions(+), 110 deletions(-) diff --git a/src/main/java/geoinfo/regi/status/RegiController.java b/src/main/java/geoinfo/regi/status/RegiController.java index 9e8bd25b..241f12f1 100644 --- a/src/main/java/geoinfo/regi/status/RegiController.java +++ b/src/main/java/geoinfo/regi/status/RegiController.java @@ -1503,6 +1503,14 @@ public class RegiController { } } model.put("triCu_code", triCu_code); + triCu_image1 = MyUtil.removeSpaceAndComma(triCu_image1); + triCu_image2 = MyUtil.removeSpaceAndComma(triCu_image2); + if( triCu_image1.equals("") ) { + //토사 삼축압축 시험 그래프 이미지 없음. 1 + } + if( triCu_image2.equals("") ) { + //토사 삼축압축 시험 그래프 이미지 없음. 2 + } model.put("triCu_image1", triCu_image1); model.put("triCu_image2", triCu_image2); diff --git a/src/main/java/geoinfo/util/MyUtil.java b/src/main/java/geoinfo/util/MyUtil.java index 74fa6e2c..af403b7d 100644 --- a/src/main/java/geoinfo/util/MyUtil.java +++ b/src/main/java/geoinfo/util/MyUtil.java @@ -28,7 +28,7 @@ public final class MyUtil { private static final Logger logger = LoggerFactory.getLogger(MyUtil.class); - public static final String VERSION = "20260206_1430"; + public static final String VERSION = "20260323_1328"; private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss"); @@ -969,5 +969,16 @@ public final class MyUtil { } } + /** + * 공백과 쉼표를 모두 찾아 빈 문자열로 바꾼다. + * @param input + * @return 공백과 쉼표를 없앤 문자열 + */ + public static String removeSpaceAndComma(String input) { + if (input == null) return null; + // [ ,] : 공백(' ') 또는 쉼표(',')를 의미하는 정규식 + return input.replaceAll("[ ,]", ""); + } + } diff --git a/src/main/webapp/WEB-INF/views/web/manage/createZip.jsp b/src/main/webapp/WEB-INF/views/web/manage/createZip.jsp index ef2242e7..8e3ea425 100644 --- a/src/main/webapp/WEB-INF/views/web/manage/createZip.jsp +++ b/src/main/webapp/WEB-INF/views/web/manage/createZip.jsp @@ -16,10 +16,15 @@ <%@page import="java.nio.file.Path"%> <%@page import="java.nio.file.Paths"%> <%@page import="java.util.Date"%> +<%@page import="java.util.UUID"%><%-- UUID 임포트 추가 --%> <%@page import="geoinfo.regi.util.CompressZip"%> <%@page import="egovframework.com.cmm.service.EgovProperties"%> <% + // 1. UUID 생성 (요청 식별용) + String reqUuid = UUID.randomUUID().toString(); + System.out.println("[" + reqUuid + "] createZip.jsp 요청 시작 - 일시: " + new Date().toString()); + String propertyPath = request.getSession().getServletContext().getRealPath("/") + File.separator + "WEB-INF" + File.separator + "clipreport4" + File.separator + "clipreport4.properties"; out.clear(); out = pageContext.pushBody(); @@ -48,9 +53,9 @@ Path directoryPath = Paths.get(fileCreatePathZip+projectCode); try { // 디렉토리 삭제 Files.deleteIfExists(directoryPath); - System.out.println("기존파일이삭제되었습니다."); + System.out.println("[" + reqUuid + "]" + "기존파일이삭제되었습니다."); } catch (DirectoryNotEmptyException e) { - System.out.println("디렉토리가 비어있지 않습니다"); + System.out.println("[" + reqUuid + "]" + "디렉토리가 비어있지 않습니다"); } catch (IOException e) { e.printStackTrace(); } @@ -61,7 +66,7 @@ try { String[] fileNames = new String[3000]; fileNames[0] = "프로젝트정보\\프로젝트정보"; -System.out.println("sampleYn----------"+sampleYn); +System.out.println("[" + reqUuid + "]" + "sampleYn----------"+sampleYn); int sampleCount = Integer.parseInt(String.valueOf(request.getAttribute("sampleCount"))); OOFDocument oof = OOFDocument.newOOF(); oof.addConnectionData("*", "oracle1"); @@ -632,7 +637,7 @@ if(("Y").equals(waterpressure)){ "new Date().toString():[" + new Date().toString() + "]\n" + "\n" + "---------- BUG REPORTING END ----------" + "\n" + ""; - System.out.println(strTxt); + System.out.println("[" + reqUuid + "]" + strTxt); } for(int i=0; i