diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn02Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn02Controller.java index c8fddf94..d2d3fedb 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn02Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn02Controller.java @@ -114,6 +114,8 @@ public class Crdn02Controller extends ApplicationController { .worksheet(0); List headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); CellStyle numeric = xlsx.n_nn0(); + CellStyle dateYMD = xlsx.yyyy_mm_dd(); + CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); xlsx.cell(0, 0) .value("검사자료 목록", XLSWriter.Styler.CENTER) @@ -125,7 +127,7 @@ public class Crdn02Controller extends ApplicationController { BiFunction getValue = (titleNm, nothing) -> { switch(titleNm) { - case "단속일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); + case "단속일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT); case "자료출처": return "CRDN_INPT_SE_NM"; case "차량번호": return "VHRNO"; case "처리상태": return "CRDN_STTS_NM"; diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn03Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn03Controller.java index 362461a7..b45b6cf7 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn03Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn03Controller.java @@ -100,6 +100,8 @@ public class Crdn03Controller extends ApplicationController { .worksheet(0); List headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); CellStyle numeric = xlsx.n_nn0(); + CellStyle dateYMD = xlsx.yyyy_mm_dd(); + CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); xlsx.cell(0, 0) .value("표지정보미확인자료 목록", XLSWriter.Styler.CENTER) @@ -112,7 +114,7 @@ public class Crdn03Controller extends ApplicationController { BiFunction getValue = (titleNm, nothing) -> { switch(titleNm) { case "자료출처": return "CRDN_INPT_SE_NM"; - case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); + case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT); case "차량번호": return "VHRNO"; case "법정동": return "CRDN_STDG_NM"; case "잔액": return xlsx.style("BLNC", numeric); diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java index 6ac91398..b9911319 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java @@ -107,6 +107,8 @@ public class Crdn06Controller extends ApplicationController { .worksheet(0); List headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); CellStyle numeric = xlsx.n_nn0(); + CellStyle dateYMD = xlsx.yyyy_mm_dd(); + CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); xlsx.cell(0, 0) .value("단속자료 목록", XLSWriter.Styler.CENTER) @@ -120,7 +122,7 @@ public class Crdn06Controller extends ApplicationController { switch(titleNm) { case "자료출처": return "CRDN_INPT_SE_NM"; case "차량번호": return "VHRNO"; - case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); + case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT); case "단속장소": return "CRDN_PLC"; case "체납액": return ""; case "사진건수": return "ATCH_FILE_CNT"; @@ -128,7 +130,7 @@ public class Crdn06Controller extends ApplicationController { case "장애차량확인": return "PARKNG_PSBLTY_RSLT_NM"; case "처리상태": return "CRDN_STTS_NM"; case "제외사유": return "LEVY_EXCL_RSN_NM"; - case "제외처리일자": return xlsx.format(o -> xlsx.str2date(o.get("LEVY_EXCL_YMD"))); + case "제외처리일자": return xlsx.format(o -> xlsx.str2date(o.get("LEVY_EXCL_YMD"))).style(dateYMD); case "제외내역": return "LEVY_EXCL_ETC_CN"; } return ""; diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java index 9f879e4d..046f5607 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java @@ -97,6 +97,8 @@ public class Crdn08Controller extends ApplicationController { .worksheet(0); List headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); CellStyle numeric = xlsx.n_nn0(); + CellStyle dateYMD = xlsx.yyyy_mm_dd(); + CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); xlsx.cell(0, 0) .value("면제차량 목록", XLSWriter.Styler.CENTER) @@ -112,15 +114,15 @@ public class Crdn08Controller extends ApplicationController { case "사유": return "EXMPTN_RSN"; case "공문번호": return "DOC_NO"; case "소유주명": return "OWNR_NM"; - case "면제시작일" : return xlsx.format(o -> xlsx.str2date(o.get("EXMPTN_BGNG_YMD"))); - case "면제종료일": return xlsx.format(o -> xlsx.str2date(o.get("EXMPTN_END_YMD"))); + case "면제시작일" : return xlsx.format(o -> xlsx.str2date(o.get("EXMPTN_BGNG_YMD"))).style(dateYMD); + case "면제종료일": return xlsx.format(o -> xlsx.str2date(o.get("EXMPTN_END_YMD"))).style(dateYMD); case "입력자": return "RGTR_NM"; - case "입력일시": return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))); + case "입력일시": return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT); case "수정자": return "MDFR_NM"; - case "수정일시": return xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))); + case "수정일시": return xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT); case "삭제자": return "DLTR_NM"; case "삭제사유": return "DEL_RSN"; - case "삭제일시": return xlsx.format(o -> xlsx.str2datetime(o.get("DEL_DT"))); + case "삭제일시": return xlsx.format(o -> xlsx.str2datetime(o.get("DEL_DT"))).style(dateDT); } return ""; }; diff --git a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java index 4c1c5b3e..0e591da3 100644 --- a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java +++ b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java @@ -117,6 +117,8 @@ public class Cvlc01Controller extends ApplicationController { .worksheet(0); List headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); CellStyle numeric = xlsx.n_nn0(); + CellStyle dateYMD = xlsx.yyyy_mm_dd(); + CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); xlsx.cell(0, 0) .value("민원접수자료 목록", XLSWriter.Styler.CENTER) @@ -134,9 +136,9 @@ public class Cvlc01Controller extends ApplicationController { case "신고자": return "CVLCPT_APLCNT_NM"; case "담당자" : return "CVLCPT_PRCS_PIC_NM"; case "담당자전화번호": return "CVLCPT_PRCS_PIC_TELNO"; - case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))); - case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))); - case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); + case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))).style(dateYMD); + case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))).style(dateDT); + case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT); case "위반내용": return "VLTN_ARTCL"; case "차량번호": return "VHRNO"; case "사진건수": return "ATCH_FILE_CNT"; diff --git a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc02Controller.java b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc02Controller.java index 95ed10c5..e758886e 100644 --- a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc02Controller.java +++ b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc02Controller.java @@ -106,6 +106,8 @@ public class Cvlc02Controller extends ApplicationController { .worksheet(0); List headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); CellStyle numeric = xlsx.n_nn0(); + CellStyle dateYMD = xlsx.yyyy_mm_dd(); + CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); xlsx.cell(0, 0) .value("민원답변대상자료 목록", XLSWriter.Styler.CENTER) @@ -122,9 +124,9 @@ public class Cvlc02Controller extends ApplicationController { case "신고자": return "CVLCPT_APLCNT_NM"; case "담당자" : return "CVLCPT_PRCS_PIC_NM"; case "담당자전화번호": return "CVLCPT_PRCS_PIC_TELNO"; - case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))); - case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))); - case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); + case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))).style(dateYMD); + case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))).style(dateDT); + case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT); case "위반내용": return "VLTN_ARTCL"; case "차량번호": return "VHRNO"; case "서손/계고사유": return "LEVY_EXCL_RSN_NM"; diff --git a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc03Controller.java b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc03Controller.java index baa7ef69..4044e925 100644 --- a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc03Controller.java +++ b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc03Controller.java @@ -97,6 +97,8 @@ public class Cvlc03Controller extends ApplicationController { .worksheet(0); List headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); CellStyle numeric = xlsx.n_nn0(); + CellStyle dateYMD = xlsx.yyyy_mm_dd(); + CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); xlsx.cell(0, 0) .value("민원자료 목록", XLSWriter.Styler.CENTER) @@ -114,9 +116,9 @@ public class Cvlc03Controller extends ApplicationController { case "신고자": return "CVLCPT_APLCNT_NM"; case "담당자" : return "CVLCPT_PRCS_PIC_NM"; case "담당자전화번호": return "CVLCPT_PRCS_PIC_TELNO"; - case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))); - case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))); - case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); + case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))).style(dateYMD); + case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))).style(dateDT); + case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT); case "위반내용": return "VLTN_ARTCL"; case "차량번호": return "VHRNO"; case "사진건수": return "ATCH_FILE_CNT"; diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java index c6973222..d019fc19 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java @@ -189,6 +189,8 @@ public class Sprt01Controller extends ApplicationController { .worksheet(0); List headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); CellStyle numeric = xlsx.n_nn0(); + CellStyle dateYMD = xlsx.yyyy_mm_dd(); + CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); xlsx.cell(0, 0) .value(fileName, XLSWriter.Styler.CENTER) @@ -201,10 +203,10 @@ public class Sprt01Controller extends ApplicationController { case "시군구명": return "SGG_NM"; case "과태료명": return "TASK_SE_NM"; case "단속입력구분": return "CRDN_INPT_SE_NM"; - case "단속일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); + case "단속일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT); case "신고자명": return "CVLCPT_APLCNT_NM"; case "민원접수번호": return "CVLCPT_RCPT_NO"; - case "민원접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))); + case "민원접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))).style(dateYMD); case "민원목록번호": return "CVLCPT_LIST_NO"; case "단속차량번호": return "VHRNO"; case "대체차량번호": return "RPM_SZR_VHRNO"; @@ -214,28 +216,28 @@ public class Sprt01Controller extends ApplicationController { case "납부자번호": return "RTPYR_NO"; case "처리상태": return "CRDN_STTS_NM"; case "제외사유": return "LEVY_EXCL_RSN_NM"; - case "제외일자": return xlsx.format(o -> xlsx.str2date(o.get("LEVY_EXCL_YMD"))); + case "제외일자": return xlsx.format(o -> xlsx.str2date(o.get("LEVY_EXCL_YMD"))).style(dateYMD); case "기타사항": return "ETC_CN"; case "고지번호": return "GOJI_NO"; - case "처리일자": return xlsx.format(o -> xlsx.str2date(o.get("CRDN_STTS_CHG_YMD"))); + case "처리일자": return xlsx.format(o -> xlsx.str2date(o.get("CRDN_STTS_CHG_YMD"))).style(dateYMD); case "단속장소": return "CRDN_PLC"; case "단속구분": return "CRDN_SE_NM"; case "의견진술여부": return "OPNN_SBMSN_YN_NM"; - case "의견진술기한": return xlsx.format(o -> xlsx.str2date(o.get("ADVNTCE_DUDT_YMD"))); + case "의견진술기한": return xlsx.format(o -> xlsx.str2date(o.get("ADVNTCE_DUDT_YMD"))).style(dateYMD); case "견인여부": return "TOWNG_YN_NM"; - case "압류일자": return xlsx.format(o -> xlsx.str2date(o.get("SZR_YMD"))); - case "압류해제일자": return xlsx.format(o -> xlsx.str2date(o.get("SZR_RMV_YMD"))); + case "압류일자": return xlsx.format(o -> xlsx.str2date(o.get("SZR_YMD"))).style(dateYMD); + case "압류해제일자": return xlsx.format(o -> xlsx.str2date(o.get("SZR_RMV_YMD"))).style(dateYMD); case "잔액": return xlsx.style("SUM_AMT", numeric); case "부과금액": return xlsx.style("LEVY_AMT", numeric); case "본세": return xlsx.style("LEVY_PCPTAX", numeric); case "가산금": return xlsx.style("LEVY_ADAMT", numeric); - case "납부기한": return xlsx.format(o -> xlsx.str2date(o.get("DUDT_YMD"))); - case "납기후일자": return xlsx.format(o -> xlsx.str2date(o.get("DUDT_AFTR_YMD"))); + case "납부기한": return xlsx.format(o -> xlsx.str2date(o.get("DUDT_YMD"))).style(dateYMD); + case "납기후일자": return xlsx.format(o -> xlsx.str2date(o.get("DUDT_AFTR_YMD"))).style(dateYMD); case "납기후금액": return xlsx.style("DUDT_AFTR_AMT", numeric); case "가상계좌번호": return "VR_ACTNO"; case "전자납부번호": return "EPAYNO"; case "수납유형": return "PAY_MTHD_SE_NM"; - case "수납일자": return xlsx.format(o -> xlsx.str2date(o.get("RCVMT_YMD"))); + case "수납일자": return xlsx.format(o -> xlsx.str2date(o.get("RCVMT_YMD"))).style(dateYMD); case "수납금액": return xlsx.style("RCVMT_AMT", numeric); case "수납본세": return xlsx.style("RCVMT_PCPTAX", numeric); case "수납가산금": return xlsx.style("RCVMT_ADAMT", numeric);