|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
package cokr.xit.fims.epst.web;
|
|
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
@ -10,8 +10,6 @@ import javax.annotation.Resource;
|
|
|
|
|
import org.apache.poi.ss.usermodel.CellStyle;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.code.CommonCode;
|
|
|
|
|
import cokr.xit.base.file.xls.XLSWriter;
|
|
|
|
|
import cokr.xit.base.file.xls.XLSWriter.CellDef;
|
|
|
|
@ -47,15 +45,16 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
public static final String
|
|
|
|
|
epostGuidanceDocumentMain = "/010/main.do" // 전자우편 안내문 메인
|
|
|
|
|
, getEpostGuidanceDocumentList = "/010/list.do" // 전자우편 안내문 목록 조회
|
|
|
|
|
, removeEpostGuidanceDocument = "/010/remove.do" // 전자우편 안내문 삭제
|
|
|
|
|
, getEpostGuidanceDocumentInfo = "/020/info.do" // 전자우편 안내문 상세 정보 조회
|
|
|
|
|
, createEpostGuidanceDocument = "/020/create.do" // 전자우편 안내문 등록
|
|
|
|
|
, updateEpostGuidanceDocument = "/020/update.do" // 전자우편 안내문 수정
|
|
|
|
|
, removeEpostGuidanceDocument = "/010/remove.do" // 전자우편 안내문 삭제
|
|
|
|
|
, epostSendingStatusMain = "/030/main.do" // 전자우편 우편발송 메인
|
|
|
|
|
, getEpostSendingStatusList = "/030/list.do" // 전자우편 발송 목록 조회
|
|
|
|
|
, getEpostSendingStatusInfo = "/040/info.do" // 전자우편 발송 상세 정보 조회
|
|
|
|
|
, updateEpostSendingProcessStatus = "/030/updateSttsCd.do" // 전자우편 발송 처리상태코드 수정
|
|
|
|
|
, removeEpostSendingStatus = "/030/remove.do" // 전자우편 발송 삭제
|
|
|
|
|
, epostReceiptRegistrationMain = "/030/main.do" // 전자우편 우편발송 메인
|
|
|
|
|
, getEpostReceiptRegistrationList = "/030/list.do" // 전자우편 우편발송 목록 조회
|
|
|
|
|
, updateEpostSendingProcessStatus = "/030/updateSttsCd.do" // 전자우편 우편발송 처리상태코드 수정
|
|
|
|
|
, removeEpostSendingStatus = "/030/remove.do" // 전자우편 우편발송 삭제
|
|
|
|
|
, getEpostReceiptRegistrationDetailInfo = "/040/info.do" // 전자우편 발송 상세 정보 조회
|
|
|
|
|
, getEpostReceiptRegistrationDetailList = "/040/list.do" // 전자우편 발송 상세 정보 조회
|
|
|
|
|
, epostReceiptResultMain = "/050/main.do" // 전자우편 접수 결과 메인
|
|
|
|
|
, getEpostReceiptResultList = "/050/list.do" // 전자우편 접수 결과 목록 조회
|
|
|
|
|
, getEpostReceiptResultSumAmount = "/050/sumAmt.do" // 전자우편 접수 결과 합계 금액 조회
|
|
|
|
@ -78,7 +77,6 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
@Resource(name="epostRcptRsltService")
|
|
|
|
|
private EpostRcptRsltService epostRcptRsltService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name="stngBean")
|
|
|
|
|
private StngBean stngBean;
|
|
|
|
|
|
|
|
|
@ -125,7 +123,7 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
|
|
String dateTime = dateFormat.format(System.currentTimeMillis());
|
|
|
|
|
|
|
|
|
|
ArrayList<CellDef> cellDefs = fromJson(req.getCellDefs(), new TypeReference<ArrayList<CellDef>>() {});
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter()
|
|
|
|
|
.setFilename("우편통합안내문" + "_목록_" + dateTime + ".xlsx")
|
|
|
|
@ -137,19 +135,20 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<DataObject> list = epostGdccService.getEpostGdccList(req.setFetchSize(0));
|
|
|
|
|
|
|
|
|
|
CellDef.setValues(cellDefs, Map.ofEntries(
|
|
|
|
|
Map.entry("업무구분", xlsx.style("TASK_SE_NM", center))
|
|
|
|
|
, Map.entry("발송구분", xlsx.style("SNDNG_SE_NM", center))
|
|
|
|
|
, Map.entry("사용여부", xlsx.style("USE_YN_NM", center))
|
|
|
|
|
, Map.entry("최종사용일시", xlsx.format(o -> xlsx.str2date(o.get("LAST_USE_DT"))).style(dateDT))
|
|
|
|
|
, Map.entry("제목", "TTL_NM")
|
|
|
|
|
, Map.entry("문구내용", "WORDS_CN")
|
|
|
|
|
, Map.entry("등록일시", xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT))
|
|
|
|
|
, Map.entry("등록사용자", xlsx.style("RGTR_NM", center))
|
|
|
|
|
, Map.entry("수정일시", xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT))
|
|
|
|
|
, Map.entry("수정사용자", xlsx.style("MDFR_NM", center))
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
Map<String,Object> valueMap = new HashMap<String,Object>();
|
|
|
|
|
|
|
|
|
|
valueMap.put("업무구분", xlsx.style("TASK_SE_NM", center));
|
|
|
|
|
valueMap.put("발송구분", xlsx.style("SNDNG_SE_NM", center));
|
|
|
|
|
valueMap.put("사용여부", xlsx.style("USE_YN_NM", center));
|
|
|
|
|
valueMap.put("최종사용일시", xlsx.format(o -> xlsx.str2date(o.get("LAST_USE_DT"))).style(dateDT));
|
|
|
|
|
valueMap.put("제목", "TTL_NM");
|
|
|
|
|
valueMap.put("문구내용", "WORDS_CN");
|
|
|
|
|
valueMap.put("등록일시", xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT));
|
|
|
|
|
valueMap.put("등록사용자", xlsx.style("RGTR_NM", center));
|
|
|
|
|
valueMap.put("수정일시", xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT));
|
|
|
|
|
valueMap.put("수정사용자", xlsx.style("MDFR_NM", center));
|
|
|
|
|
|
|
|
|
|
CellDef.setValues(cellDefs, valueMap);
|
|
|
|
|
|
|
|
|
|
xlsx.cell(0, 0)
|
|
|
|
|
.value("우편통합 안내문", center)
|
|
|
|
@ -261,7 +260,7 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
/**전자우편 접수 등록 관리 메인화면(fims/epst/epst02030-main)을 연다.
|
|
|
|
|
* @return /fims/epst/epst02030-main
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView epostSendingStatusMain() {
|
|
|
|
|
public ModelAndView epostReceiptRegistrationMain() {
|
|
|
|
|
ModelAndView mav = new ModelAndView("fims/epst/epst02030-main");
|
|
|
|
|
|
|
|
|
|
// 사용자 정보
|
|
|
|
@ -295,7 +294,7 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "epostRcptRegTotal": 조회 결과 찾은 전체 전자우편 접수 등록 수
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView getEpostSendingStatusList(EpostQuery req) {
|
|
|
|
|
public ModelAndView getEpostReceiptRegistrationList(EpostQuery req) {
|
|
|
|
|
if (!"xls".equals(req.getDownload())) {
|
|
|
|
|
List<?> result = epostRcptRegService.getEpostRcptRegList(setFetchSize(req));
|
|
|
|
|
return setCollectionInfo(new ModelAndView("jsonView"), result, "epostRcptReg");
|
|
|
|
@ -304,7 +303,7 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
|
|
String dateTime = dateFormat.format(System.currentTimeMillis());
|
|
|
|
|
|
|
|
|
|
ArrayList<CellDef> cellDefs = fromJson(req.getCellDefs(), new TypeReference<ArrayList<CellDef>>() {});
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter()
|
|
|
|
|
.setFilename("우편통합우편발송" + "_목록_" + dateTime + ".xlsx")
|
|
|
|
@ -318,18 +317,18 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<DataObject> list = epostRcptRegService.getEpostRcptRegList(req.setFetchSize(0));
|
|
|
|
|
|
|
|
|
|
CellDef.setValues(cellDefs, Map.ofEntries(
|
|
|
|
|
Map.entry("발송일자", xlsx.format(o -> xlsx.str2date(o.get("SEND_DATE"))).style(dateYMD))
|
|
|
|
|
, Map.entry("발송내역", xlsx.style("JOB_CD", center))
|
|
|
|
|
, Map.entry("취급구분", xlsx.style("DIV_KB_NM", center))
|
|
|
|
|
, Map.entry("접수일자", xlsx.format(o -> xlsx.str2date(o.get("RCEPT_YMD"))).style(dateYMD))
|
|
|
|
|
, Map.entry("자료키", xlsx.style("CON_KEY", center))
|
|
|
|
|
, Map.entry("발송건수", xlsx.style("RECEV_CNT", numeric))
|
|
|
|
|
, Map.entry("우편처리상태", xlsx.style("POST_PRCS_STTS_NM", center))
|
|
|
|
|
, Map.entry("등록일시", xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT))
|
|
|
|
|
, Map.entry("등록사용자", xlsx.style("RGTR_NM", center))
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
Map<String,Object> valueMap = new HashMap<String,Object>();
|
|
|
|
|
valueMap.put("발송일자", xlsx.format(o -> xlsx.str2date(o.get("SEND_DATE"))).style(dateYMD));
|
|
|
|
|
valueMap.put("발송내역", xlsx.style("JOB_CD", center));
|
|
|
|
|
valueMap.put("취급구분", xlsx.style("DIV_KB_NM", center));
|
|
|
|
|
valueMap.put("접수일자", xlsx.format(o -> xlsx.str2date(o.get("RCEPT_YMD"))).style(dateYMD));
|
|
|
|
|
valueMap.put("자료키", xlsx.style("CON_KEY", center));
|
|
|
|
|
valueMap.put("발송건수", xlsx.style("RECEV_CNT", numeric));
|
|
|
|
|
valueMap.put("우편처리상태", xlsx.style("POST_PRCS_STTS_NM", center));
|
|
|
|
|
valueMap.put("등록일시", xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT));
|
|
|
|
|
valueMap.put("등록사용자", xlsx.style("RGTR_NM", center));
|
|
|
|
|
|
|
|
|
|
CellDef.setValues(cellDefs, valueMap);
|
|
|
|
|
|
|
|
|
|
xlsx.cell(0, 0)
|
|
|
|
|
.value("우편통합 우편발송", center)
|
|
|
|
@ -351,28 +350,40 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "epostRcptReg": 전자우편 접수 등록 정보
|
|
|
|
|
* }</pre>
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView getEpostSendingStatusInfo(EpostQuery req) {
|
|
|
|
|
// 엑셀 저장이 아니라면.. 검색
|
|
|
|
|
if (!"xls".equals(req.getDownload())) {
|
|
|
|
|
List<DataObject> epostSndngSttsInfo = epostRcptRegService.getEpostSndngSttsInfo(req);
|
|
|
|
|
|
|
|
|
|
boolean json = jsonResponse();
|
|
|
|
|
public ModelAndView getEpostReceiptRegistrationDetailInfo(EpostQuery req) {
|
|
|
|
|
//
|
|
|
|
|
ModelAndView mav = getEpostReceiptRegistrationDetailList(req);
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/epst/epst02040-info");
|
|
|
|
|
mav.setViewName("fims/epst/epst02040-info");
|
|
|
|
|
|
|
|
|
|
return mav
|
|
|
|
|
.addObject("pageName", "epst02040") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
|
|
|
|
|
.addObject("infoPrefix", "epostRcptRegDtl") // prefix
|
|
|
|
|
.addObject("callPurpose", req.getCallPurpose()) // 호출 용도
|
|
|
|
|
.addObject("sggCd", req.getSggCd()) // 시군구 코드(SGG_CD)
|
|
|
|
|
.addObject("taskSeCd", req.getTaskSeCd()) // 업무 구분 코드(TASK_SE_CD)
|
|
|
|
|
.addObject("epostSndngSttsInfo", json ? epostSndngSttsInfo : toJson(epostSndngSttsInfo))
|
|
|
|
|
.addObject("mainQuery", toJson(req)) // 검색 조건
|
|
|
|
|
.addObject("epostRcptRegDtlList", toJson(mav.getModel().get("epostRcptRegDtlList"))) // 자료
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**전자우편 발송 상세 정보(info)를 반환한다.
|
|
|
|
|
* @param req 부과제외 대장 조회 조건
|
|
|
|
|
* @return fims/epst/epst02040-info 또는 jsonView
|
|
|
|
|
* <pre>{
|
|
|
|
|
* "epostRcptReg": 전자우편 접수 등록 정보
|
|
|
|
|
* }</pre>
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView getEpostReceiptRegistrationDetailList(EpostQuery req) {
|
|
|
|
|
// 엑셀 저장이 아니라면.. 검색
|
|
|
|
|
if (!"xls".equals(req.getDownload())) {
|
|
|
|
|
List<?> result = epostRcptRegService.getEpostRcptRegDtlList(setFetchSize(req));
|
|
|
|
|
return setCollectionInfo(new ModelAndView("jsonView"), result, "epostRcptRegDtl");
|
|
|
|
|
} else {
|
|
|
|
|
// 현재 날짜 구하기
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
|
|
String dateTime = dateFormat.format(System.currentTimeMillis());
|
|
|
|
|
|
|
|
|
|
ArrayList<CellDef> cellDefs = fromJson(req.getCellDefs(), new TypeReference<ArrayList<CellDef>>() {});
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter()
|
|
|
|
|
.setFilename("우편통합발송상세" + "_목록_" + dateTime + ".xlsx")
|
|
|
|
@ -382,25 +393,25 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
CellStyle center = xlsx.cellStyle(Styler.CENTER); // 가운데 정렬
|
|
|
|
|
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간
|
|
|
|
|
|
|
|
|
|
List<DataObject> list = epostRcptRegService.getEpostSndngSttsInfo(req.setFetchSize(0));
|
|
|
|
|
|
|
|
|
|
CellDef.setValues(cellDefs, Map.ofEntries(
|
|
|
|
|
Map.entry("등록일시", xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT))
|
|
|
|
|
, Map.entry("등기번호", xlsx.style("RGST_NMBR", center))
|
|
|
|
|
, Map.entry("우편번호", xlsx.style("RECEV_CAR_OWNER_ZIPCODE", center))
|
|
|
|
|
, Map.entry("수취인명", "RECEV_CAR_OWNER_NM")
|
|
|
|
|
, Map.entry("배달일시", xlsx.format(o -> xlsx.str2datetime(o.get("DELIV_YMD_TM"))).style(dateDT))
|
|
|
|
|
, Map.entry("배달결과", xlsx.style("DELIVRSLTCD_NM", center))
|
|
|
|
|
, Map.entry("수령인명", "SUBRECPRSNNM")
|
|
|
|
|
, Map.entry("수령인관계", xlsx.style("RELRECPRSNCDNM", center))
|
|
|
|
|
, Map.entry("미배달사유", "NONDELIVREASNCDNM")
|
|
|
|
|
, Map.entry("주소", "RECEV_CAR_OWNER_ADDR")
|
|
|
|
|
, Map.entry("상세주소", "RECEV_CAR_OWNER_DETAILADDR")
|
|
|
|
|
, Map.entry("등록사용자", xlsx.style("RGTR_NM", center))
|
|
|
|
|
, Map.entry("수정일시", xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT))
|
|
|
|
|
, Map.entry("수정사용자", xlsx.style("MDFR_NM", center))
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
List<DataObject> list = epostRcptRegService.getEpostRcptRegDtlList(req.setFetchSize(0));
|
|
|
|
|
|
|
|
|
|
Map<String,Object> valueMap = new HashMap<String,Object>();
|
|
|
|
|
valueMap.put("등록일시", xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT));
|
|
|
|
|
valueMap.put("등기번호", xlsx.style("RGST_NMBR", center));
|
|
|
|
|
valueMap.put("우편번호", xlsx.style("RECEV_CAR_OWNER_ZIPCODE", center));
|
|
|
|
|
valueMap.put("수취인명", "RECEV_CAR_OWNER_NM");
|
|
|
|
|
valueMap.put("배달일시", xlsx.format(o -> xlsx.str2datetime(o.get("DELIV_YMD_TM"))).style(dateDT));
|
|
|
|
|
valueMap.put("배달결과", xlsx.style("DELIVRSLTCD_NM", center));
|
|
|
|
|
valueMap.put("수령인명", "SUBRECPRSNNM");
|
|
|
|
|
valueMap.put("수령인관계", xlsx.style("RELRECPRSNCDNM", center));
|
|
|
|
|
valueMap.put("미배달사유", "NONDELIVREASNCDNM");
|
|
|
|
|
valueMap.put("주소", "RECEV_CAR_OWNER_ADDR");
|
|
|
|
|
valueMap.put("상세주소", "RECEV_CAR_OWNER_DETAILADDR");
|
|
|
|
|
valueMap.put("등록사용자", xlsx.style("RGTR_NM", center));
|
|
|
|
|
valueMap.put("수정일시", xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT));
|
|
|
|
|
valueMap.put("수정사용자", xlsx.style("MDFR_NM", center));
|
|
|
|
|
|
|
|
|
|
CellDef.setValues(cellDefs, valueMap);
|
|
|
|
|
|
|
|
|
|
xlsx.cell(0, 0)
|
|
|
|
|
.value("우편통합 발송상세", center)
|
|
|
|
@ -513,7 +524,7 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
|
|
String dateTime = dateFormat.format(System.currentTimeMillis());
|
|
|
|
|
|
|
|
|
|
ArrayList<CellDef> cellDefs = fromJson(req.getCellDefs(), new TypeReference<ArrayList<CellDef>>() {});
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter()
|
|
|
|
|
.setFilename("우편통합접수결과" + "_목록_" + dateTime + ".xlsx")
|
|
|
|
@ -527,21 +538,21 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<DataObject> list = epostRcptRsltService.getEpostRcptRsltList(req.setFetchSize(0));
|
|
|
|
|
|
|
|
|
|
CellDef.setValues(cellDefs, Map.ofEntries(
|
|
|
|
|
Map.entry("발송자료키", xlsx.style("RELETCDATA", center))
|
|
|
|
|
, Map.entry("우편물코드", xlsx.style("JOB_CD", center))
|
|
|
|
|
, Map.entry("우편물종류", xlsx.style("JOB_CD3_NM", center))
|
|
|
|
|
, Map.entry("발송일자", xlsx.format(o -> xlsx.str2date(o.get("EXTRI_REGYMD"))).style(dateYMD))
|
|
|
|
|
, Map.entry("접수일자", xlsx.format(o -> xlsx.str2date(o.get("RCEPT_YMD"))).style(dateYMD))
|
|
|
|
|
, Map.entry("취급구분", xlsx.style("DIV_KB_NM", center))
|
|
|
|
|
, Map.entry("발송건수", xlsx.style("RCEPT_CNT", numeric))
|
|
|
|
|
, Map.entry("결제금액", xlsx.style("RCEPT_AMT", numeric))
|
|
|
|
|
, Map.entry("제작수수료", xlsx.style("USEFEE_AMT", numeric))
|
|
|
|
|
, Map.entry("우편요금", xlsx.style("TOTPOST_PRC", numeric))
|
|
|
|
|
, Map.entry("등록일시", xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT))
|
|
|
|
|
, Map.entry("등록사용자", xlsx.style("RGTR_NM", center))
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
Map<String,Object> valueMap = new HashMap<String,Object>();
|
|
|
|
|
valueMap.put("발송자료키", xlsx.style("RELETCDATA", center));
|
|
|
|
|
valueMap.put("우편물코드", xlsx.style("JOB_CD", center));
|
|
|
|
|
valueMap.put("우편물종류", xlsx.style("JOB_CD3_NM", center));
|
|
|
|
|
valueMap.put("발송일자", xlsx.format(o -> xlsx.str2date(o.get("EXTRI_REGYMD"))).style(dateYMD));
|
|
|
|
|
valueMap.put("접수일자", xlsx.format(o -> xlsx.str2date(o.get("RCEPT_YMD"))).style(dateYMD));
|
|
|
|
|
valueMap.put("취급구분", xlsx.style("DIV_KB_NM", center));
|
|
|
|
|
valueMap.put("발송건수", xlsx.style("RCEPT_CNT", numeric));
|
|
|
|
|
valueMap.put("결제금액", xlsx.style("RCEPT_AMT", numeric));
|
|
|
|
|
valueMap.put("제작수수료", xlsx.style("USEFEE_AMT", numeric));
|
|
|
|
|
valueMap.put("우편요금", xlsx.style("TOTPOST_PRC", numeric));
|
|
|
|
|
valueMap.put("등록일시", xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT));
|
|
|
|
|
valueMap.put("등록사용자", xlsx.style("RGTR_NM", center));
|
|
|
|
|
|
|
|
|
|
CellDef.setValues(cellDefs, valueMap);
|
|
|
|
|
|
|
|
|
|
xlsx.cell(0, 0)
|
|
|
|
|
.value("우편통합 접수결과", center)
|
|
|
|
|