|
|
|
@ -124,7 +124,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
.setFilename("우편통합 안내문 목록.xlsx")
|
|
|
|
|
.worksheet(0);
|
|
|
|
|
|
|
|
|
|
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간
|
|
|
|
|
CellStyle center = xlsx.cellStyle(Styler.CENTER) // 가운데 정렬
|
|
|
|
|
, dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간
|
|
|
|
|
|
|
|
|
|
String[] excelTitle = req.getExcelTitle();
|
|
|
|
|
List<String> titles = new ArrayList<String>();
|
|
|
|
@ -144,7 +145,7 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
xlsx.cell(0, 0)
|
|
|
|
|
.value("우편통합 안내문", XLSWriter.Styler.CENTER)
|
|
|
|
|
.merge(0, 8)
|
|
|
|
|
.merge(0, 9)
|
|
|
|
|
.cell(3, 0)
|
|
|
|
|
.rowValues(CmmnUtil.mergeListByIndex(titles, headerStylers));
|
|
|
|
|
|
|
|
|
@ -152,15 +153,16 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
BiFunction<String, String, ?> getValue = (titleNm, nothing) -> {
|
|
|
|
|
switch (titleNm) {
|
|
|
|
|
case "업무구분" : return xlsx.style("TASK_SE_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "발송구분" : return xlsx.style("SNDNG_SE_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "사용여부" : return xlsx.style("USE_YN_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "업무구분" : return xlsx.style("TASK_SE_NM", center);
|
|
|
|
|
case "발송구분" : return xlsx.style("SNDNG_SE_NM", center);
|
|
|
|
|
case "사용여부" : return xlsx.style("USE_YN_NM", center);
|
|
|
|
|
case "최종사용일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("LAST_USE_DT"))).style(dateDT);
|
|
|
|
|
case "제목" : return xlsx.style("TTL_NM", XLSWriter.Styler.LEFT);
|
|
|
|
|
case "제목" : return "TTL_NM";
|
|
|
|
|
case "문구내용" : return "WORDS_CN";
|
|
|
|
|
case "등록일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT);
|
|
|
|
|
case "등록사용자" : return xlsx.style("RGTR_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "등록사용자" : return xlsx.style("RGTR_NM", center);
|
|
|
|
|
case "수정일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT);
|
|
|
|
|
case "수정사용자" : return xlsx.style("MDFR_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "수정사용자" : return xlsx.style("MDFR_NM", center);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return "";
|
|
|
|
@ -309,7 +311,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
.setFilename("우편통합 우편발송 목록.xlsx")
|
|
|
|
|
.worksheet(0);
|
|
|
|
|
|
|
|
|
|
CellStyle numeric = xlsx.n_nn0() // 숫자 3자리 콤마(,)
|
|
|
|
|
CellStyle center = xlsx.cellStyle(Styler.CENTER) // 가운데 정렬
|
|
|
|
|
, numeric = xlsx.n_nn0() // 숫자 3자리 콤마(,)
|
|
|
|
|
, dateYMD = xlsx.yyyy_mm_dd() // 연월일
|
|
|
|
|
, dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간
|
|
|
|
|
|
|
|
|
@ -340,14 +343,14 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
BiFunction<String, String, ?> getValue = (titleNm, nothing) -> {
|
|
|
|
|
switch (titleNm) {
|
|
|
|
|
case "발송일자" : return xlsx.format(o -> xlsx.str2date(o.get("SEND_DATE"))).style(dateYMD);
|
|
|
|
|
case "발송내역" : return xlsx.style("JOB_CD", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "취급구분" : return xlsx.style("DIV_KB_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "발송내역" : return xlsx.style("JOB_CD", center);
|
|
|
|
|
case "취급구분" : return xlsx.style("DIV_KB_NM", center);
|
|
|
|
|
case "접수일자" : return xlsx.format(o -> xlsx.str2date(o.get("RCEPT_YMD"))).style(dateYMD);
|
|
|
|
|
case "자료키" : return xlsx.style("CON_KEY", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "자료키" : return xlsx.style("CON_KEY", center);
|
|
|
|
|
case "발송건수" : return xlsx.style("RECEV_CNT", numeric);
|
|
|
|
|
case "우편처리상태" : return xlsx.style("POST_PRCS_STTS_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "우편처리상태" : return xlsx.style("POST_PRCS_STTS_NM", center);
|
|
|
|
|
case "등록일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT);
|
|
|
|
|
case "등록사용자" : return xlsx.style("RGTR_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "등록사용자" : return xlsx.style("RGTR_NM", center);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return "";
|
|
|
|
@ -389,7 +392,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
.setFilename("우편통합 발송상세 정보.xlsx")
|
|
|
|
|
.worksheet(0);
|
|
|
|
|
|
|
|
|
|
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간
|
|
|
|
|
CellStyle center = xlsx.cellStyle(Styler.CENTER) // 가운데 정렬
|
|
|
|
|
, dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간
|
|
|
|
|
|
|
|
|
|
String[] excelTitle = req.getExcelTitle();
|
|
|
|
|
List<String> titles = new ArrayList<String>();
|
|
|
|
@ -418,19 +422,19 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
BiFunction<String, String, ?> getValue = (titleNm, nothing) -> {
|
|
|
|
|
switch (titleNm) {
|
|
|
|
|
case "등록일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT);
|
|
|
|
|
case "등기번호" : return xlsx.style("RGST_NMBR", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "우편번호" : return xlsx.style("RECEV_CAR_OWNER_ZIPCODE", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "수취인명" : return xlsx.style("RECEV_CAR_OWNER_NM", XLSWriter.Styler.LEFT);
|
|
|
|
|
case "등기번호" : return xlsx.style("RGST_NMBR", center);
|
|
|
|
|
case "우편번호" : return xlsx.style("RECEV_CAR_OWNER_ZIPCODE", center);
|
|
|
|
|
case "수취인명" : return "RECEV_CAR_OWNER_NM";
|
|
|
|
|
case "배달일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("DELIV_YMD_TM"))).style(dateDT);
|
|
|
|
|
case "배달결과" : return xlsx.style("DELIVRSLTCD_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "수령인명" : return xlsx.style("SUBRECPRSNNM", XLSWriter.Styler.LEFT);
|
|
|
|
|
case "수령인관계" : return xlsx.style("RELRECPRSNCDNM", XLSWriter.Styler.LEFT);
|
|
|
|
|
case "미배달사유" : return xlsx.style("NONDELIVREASNCDNM", XLSWriter.Styler.LEFT);
|
|
|
|
|
case "주소" : return xlsx.style("RECEV_CAR_OWNER_ADDR", XLSWriter.Styler.LEFT);
|
|
|
|
|
case "상세주소" : return xlsx.style("RECEV_CAR_OWNER_DETAILADDR", XLSWriter.Styler.LEFT);
|
|
|
|
|
case "등록사용자" : return xlsx.style("RGTR_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "배달결과" : return xlsx.style("DELIVRSLTCD_NM", center);
|
|
|
|
|
case "수령인명" : return "SUBRECPRSNNM";
|
|
|
|
|
case "수령인관계" : return "RELRECPRSNCDNM";
|
|
|
|
|
case "미배달사유" : return "NONDELIVREASNCDNM";
|
|
|
|
|
case "주소" : return "RECEV_CAR_OWNER_ADDR";
|
|
|
|
|
case "상세주소" : return "RECEV_CAR_OWNER_DETAILADDR";
|
|
|
|
|
case "등록사용자" : return xlsx.style("RGTR_NM", center);
|
|
|
|
|
case "수정일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT);
|
|
|
|
|
case "수정사용자" : return xlsx.style("MDFR_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "수정사용자" : return xlsx.style("MDFR_NM", center);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return "";
|
|
|
|
@ -543,7 +547,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
.setFilename("우편통합 접수결과 목록.xlsx")
|
|
|
|
|
.worksheet(0);
|
|
|
|
|
|
|
|
|
|
CellStyle numeric = xlsx.n_nn0() // 숫자 3자리 콤마(,)
|
|
|
|
|
CellStyle center = xlsx.cellStyle(Styler.CENTER) // 가운데 정렬
|
|
|
|
|
, numeric = xlsx.n_nn0() // 숫자 3자리 콤마(,)
|
|
|
|
|
, dateYMD = xlsx.yyyy_mm_dd() // 연월일
|
|
|
|
|
, dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간
|
|
|
|
|
|
|
|
|
@ -573,18 +578,18 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
BiFunction<String, String, ?> getValue = (titleNm, nothing) -> {
|
|
|
|
|
switch (titleNm) {
|
|
|
|
|
case "발송자료키" : return xlsx.style("RELETCDATA", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "우편물코드" : return xlsx.style("JOB_CD", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "우편물종류" : return xlsx.style("JOB_CD3_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "발송자료키" : return xlsx.style("RELETCDATA", center);
|
|
|
|
|
case "우편물코드" : return xlsx.style("JOB_CD", center);
|
|
|
|
|
case "우편물종류" : return xlsx.style("JOB_CD3_NM", center);
|
|
|
|
|
case "발송일자" : return xlsx.format(r -> xlsx.str2date(r.get("EXTRI_REGYMD"))).style(dateYMD);
|
|
|
|
|
case "접수일자" : return xlsx.format(r -> xlsx.str2date(r.get("RCEPT_YMD"))).style(dateYMD);
|
|
|
|
|
case "취급구분" : return xlsx.style("DIV_KB_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "취급구분" : return xlsx.style("DIV_KB_NM", center);
|
|
|
|
|
case "발송건수" : return xlsx.style("RCEPT_CNT", numeric);
|
|
|
|
|
case "결제금액" : return xlsx.style("RCEPT_AMT", numeric);
|
|
|
|
|
case "제작수수료" : return xlsx.style("USEFEE_AMT", numeric);
|
|
|
|
|
case "우편요금" : return xlsx.style("TOTPOST_PRC", numeric);
|
|
|
|
|
case "등록일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT);
|
|
|
|
|
case "등록사용자" : return xlsx.style("RGTR_NM", XLSWriter.Styler.CENTER);
|
|
|
|
|
case "등록사용자" : return xlsx.style("RGTR_NM", center);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return "";
|
|
|
|
|