|
|
@ -188,43 +188,44 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
.setFilename(fileName+".xlsx")
|
|
|
|
.setFilename(fileName+".xlsx")
|
|
|
|
.worksheet(0);
|
|
|
|
.worksheet(0);
|
|
|
|
List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx);
|
|
|
|
List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx);
|
|
|
|
|
|
|
|
CellStyle center = xlsx.cellStyle(Styler.CENTER);
|
|
|
|
CellStyle numeric = xlsx.n_nn0();
|
|
|
|
CellStyle numeric = xlsx.n_nn0();
|
|
|
|
CellStyle dateYMD = xlsx.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = xlsx.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
|
|
|
|
|
|
|
|
xlsx.cell(0, 0)
|
|
|
|
xlsx.cell(0, 0)
|
|
|
|
.value(fileName, XLSWriter.Styler.CENTER)
|
|
|
|
.value(fileName, center)
|
|
|
|
.merge(0, titles.size()-1)
|
|
|
|
.merge(0, titles.size()-1)
|
|
|
|
.cell(3, 0)
|
|
|
|
.cell(3, 0)
|
|
|
|
.rowValues(CmmnUtil.mergeListByIndex(titles, headerStylers));
|
|
|
|
.rowValues(CmmnUtil.mergeListByIndex(titles, headerStylers));
|
|
|
|
|
|
|
|
|
|
|
|
BiFunction<String, String, ?> getValue = (titleNm, nothing) -> {
|
|
|
|
BiFunction<String, String, ?> getValue = (titleNm, nothing) -> {
|
|
|
|
switch(titleNm) {
|
|
|
|
switch(titleNm) {
|
|
|
|
case "시군구명" : return xlsx.style("SGG_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "시군구명" : return xlsx.style("SGG_NM", center);
|
|
|
|
case "과태료명" : return xlsx.style("TASK_SE_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "과태료명" : return xlsx.style("TASK_SE_NM", center);
|
|
|
|
case "단속입력구분" : return xlsx.style("CRDN_INPT_SE_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "단속입력구분" : return xlsx.style("CRDN_INPT_SE_NM", center);
|
|
|
|
case "단속일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT);
|
|
|
|
case "단속일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT);
|
|
|
|
case "신고자명" : return xlsx.style("CVLCPT_APLCNT_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "신고자명" : return xlsx.style("CVLCPT_APLCNT_NM", center);
|
|
|
|
case "민원접수번호" : return xlsx.style("CVLCPT_RCPT_NO", XLSWriter.Styler.CENTER);
|
|
|
|
case "민원접수번호" : return xlsx.style("CVLCPT_RCPT_NO", center);
|
|
|
|
case "민원접수일자" : return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))).style(dateYMD);
|
|
|
|
case "민원접수일자" : return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))).style(dateYMD);
|
|
|
|
case "민원목록번호" : return xlsx.style("CVLCPT_LIST_NO", XLSWriter.Styler.CENTER);
|
|
|
|
case "민원목록번호" : return xlsx.style("CVLCPT_LIST_NO", center);
|
|
|
|
case "단속차량번호" : return "VHRNO";
|
|
|
|
case "단속차량번호" : return "VHRNO";
|
|
|
|
case "대체차량번호" : return "RPM_SZR_VHRNO";
|
|
|
|
case "대체차량번호" : return "RPM_SZR_VHRNO";
|
|
|
|
case "사진건수" : return xlsx.style("ATCH_FILE_CNT", XLSWriter.Styler.CENTER);
|
|
|
|
case "사진건수" : return xlsx.style("ATCH_FILE_CNT", center);
|
|
|
|
case "차량확인" : return xlsx.style("PARKNG_PSBLTY_RSLT_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "차량확인" : return xlsx.style("PARKNG_PSBLTY_RSLT_NM", center);
|
|
|
|
case "납부자명" : return xlsx.style("RTPYR_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "납부자명" : return xlsx.style("RTPYR_NM", center);
|
|
|
|
case "납부자번호" : return xlsx.style("RTPYR_NO", XLSWriter.Styler.CENTER);
|
|
|
|
case "납부자번호" : return xlsx.style("RTPYR_NO", center);
|
|
|
|
case "처리상태" : return xlsx.style("CRDN_STTS_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "처리상태" : return xlsx.style("CRDN_STTS_NM", center);
|
|
|
|
case "제외사유" : return "LEVY_EXCL_RSN_NM";
|
|
|
|
case "제외사유" : return "LEVY_EXCL_RSN_NM";
|
|
|
|
case "제외일자" : return xlsx.format(o -> xlsx.str2date(o.get("LEVY_EXCL_YMD"))).style(dateYMD);
|
|
|
|
case "제외일자" : return xlsx.format(o -> xlsx.str2date(o.get("LEVY_EXCL_YMD"))).style(dateYMD);
|
|
|
|
case "기타사항" : return "ETC_CN";
|
|
|
|
case "기타사항" : return "ETC_CN";
|
|
|
|
case "고지번호" : return xlsx.style("GOJI_NO", XLSWriter.Styler.CENTER);
|
|
|
|
case "고지번호" : return xlsx.style("GOJI_NO", center);
|
|
|
|
case "처리일자" : return xlsx.format(o -> xlsx.str2date(o.get("CRDN_STTS_CHG_YMD"))).style(dateYMD);
|
|
|
|
case "처리일자" : return xlsx.format(o -> xlsx.str2date(o.get("CRDN_STTS_CHG_YMD"))).style(dateYMD);
|
|
|
|
case "단속장소" : return "CRDN_PLC";
|
|
|
|
case "단속장소" : return "CRDN_PLC";
|
|
|
|
case "단속구분" : return xlsx.style("CRDN_SE_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "단속구분" : return xlsx.style("CRDN_SE_NM", center);
|
|
|
|
case "의견진술여부" : return xlsx.style("OPNN_SBMSN_YN_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "의견진술여부" : return xlsx.style("OPNN_SBMSN_YN_NM", center);
|
|
|
|
case "의견진술기한" : return xlsx.format(o -> xlsx.str2date(o.get("ADVNTCE_DUDT_YMD"))).style(dateYMD);
|
|
|
|
case "의견진술기한" : return xlsx.format(o -> xlsx.str2date(o.get("ADVNTCE_DUDT_YMD"))).style(dateYMD);
|
|
|
|
case "견인여부" : return xlsx.style("TOWNG_YN_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "견인여부" : return xlsx.style("TOWNG_YN_NM", center);
|
|
|
|
case "압류일자" : return xlsx.format(o -> xlsx.str2date(o.get("SZR_YMD"))).style(dateYMD);
|
|
|
|
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.format(o -> xlsx.str2date(o.get("SZR_RMV_YMD"))).style(dateYMD);
|
|
|
|
case "잔액" : return xlsx.style("SUM_AMT", numeric);
|
|
|
|
case "잔액" : return xlsx.style("SUM_AMT", numeric);
|
|
|
@ -234,16 +235,16 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
case "납부기한" : return xlsx.format(o -> xlsx.str2date(o.get("DUDT_YMD"))).style(dateYMD);
|
|
|
|
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.format(o -> xlsx.str2date(o.get("DUDT_AFTR_YMD"))).style(dateYMD);
|
|
|
|
case "납기후금액" : return xlsx.style("DUDT_AFTR_AMT", numeric);
|
|
|
|
case "납기후금액" : return xlsx.style("DUDT_AFTR_AMT", numeric);
|
|
|
|
case "가상계좌번호" : return xlsx.style("VR_ACTNO", XLSWriter.Styler.CENTER);
|
|
|
|
case "가상계좌번호" : return xlsx.style("VR_ACTNO", center);
|
|
|
|
case "전자납부번호" : return xlsx.style("EPAYNO", XLSWriter.Styler.CENTER);
|
|
|
|
case "전자납부번호" : return xlsx.style("EPAYNO", center);
|
|
|
|
case "수납유형" : return xlsx.style("PAY_MTHD_SE_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "수납유형" : return xlsx.style("PAY_MTHD_SE_NM", center);
|
|
|
|
case "수납일자" : return xlsx.format(o -> xlsx.str2date(o.get("RCVMT_YMD"))).style(dateYMD);
|
|
|
|
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_AMT", numeric);
|
|
|
|
case "수납본세" : return xlsx.style("RCVMT_PCPTAX", numeric);
|
|
|
|
case "수납본세" : return xlsx.style("RCVMT_PCPTAX", numeric);
|
|
|
|
case "수납가산금" : return xlsx.style("RCVMT_ADAMT", numeric);
|
|
|
|
case "수납가산금" : return xlsx.style("RCVMT_ADAMT", numeric);
|
|
|
|
case "단속등록구분" : return xlsx.style("CRDN_REG_SE_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "단속등록구분" : return xlsx.style("CRDN_REG_SE_NM", center);
|
|
|
|
case "납부자주소" : return "RTPYR_FULL_ADDR";
|
|
|
|
case "납부자주소" : return "RTPYR_FULL_ADDR";
|
|
|
|
case "거주상태" : return xlsx.style("RTPYR_STTS_NM", XLSWriter.Styler.CENTER);
|
|
|
|
case "거주상태" : return xlsx.style("RTPYR_STTS_NM", center);
|
|
|
|
|
|
|
|
|
|
|
|
case "차량번호": return "VHRNO";
|
|
|
|
case "차량번호": return "VHRNO";
|
|
|
|
case "성명": return "RTPYR_NM";
|
|
|
|
case "성명": return "RTPYR_NM";
|
|
|
|