|
|
|
|
@ -1,10 +1,15 @@
|
|
|
|
|
package cokr.xit.interfaces.sntris.service.bean;
|
|
|
|
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
import org.springframework.core.io.ClassPathResource;
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.docs.xls.XLSWriter;
|
|
|
|
|
import cokr.xit.foundation.Downloadable;
|
|
|
|
|
import cokr.xit.foundation.component.AbstractBean;
|
|
|
|
|
import cokr.xit.interfaces.sntris.StatusCodeWSDTO;
|
|
|
|
|
import cokr.xit.interfaces.sntris.buga.Bu04BugaWSDTO;
|
|
|
|
|
@ -37,6 +42,39 @@ public class SntrisBean extends AbstractBean {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Downloadable getDownloadable(Iterable<Bu18WebPreNoticeDTO> prenotices) {
|
|
|
|
|
try (InputStream template = new ClassPathResource("template/seoul-ntris-prenotice.xlsx").getInputStream();) {
|
|
|
|
|
return new XLSWriter().worksheet(0).cell(2, 9)
|
|
|
|
|
.values(prenotices, prenotice -> List.of(new Object[] {
|
|
|
|
|
prenotice.getNapId(),
|
|
|
|
|
prenotice.getNapNm(),
|
|
|
|
|
prenotice.getJukbalTarget(),
|
|
|
|
|
prenotice.getTaxAmt(),
|
|
|
|
|
prenotice.getSendYmd(),
|
|
|
|
|
prenotice.getSubmitYmd(),
|
|
|
|
|
prenotice.getJukbalDtlAddr(),
|
|
|
|
|
prenotice.getJukbalYmdHs(),
|
|
|
|
|
prenotice.getNapMobilNo(),
|
|
|
|
|
prenotice.getNapTelNo(),
|
|
|
|
|
prenotice.getLastWorkId(),
|
|
|
|
|
prenotice.getJukbalTelNo(),
|
|
|
|
|
prenotice.getBigo(),
|
|
|
|
|
prenotice.getNapDzipCd(),
|
|
|
|
|
prenotice.getNapDzipAddr(),
|
|
|
|
|
prenotice.getNapDdtlAddr(),
|
|
|
|
|
prenotice.getNapDrefAddr(),
|
|
|
|
|
prenotice.getNapZipCd(),
|
|
|
|
|
prenotice.getNapZipAddr(),
|
|
|
|
|
prenotice.getNapDtlAddr()
|
|
|
|
|
}))
|
|
|
|
|
.autoWidth()
|
|
|
|
|
.getDownloadable()
|
|
|
|
|
.setFilename("서울시-세외수입-수기등록.xlsx");
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
throw runtimeException(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Ye22NoticeInfoDTO[] getPreNoticeList(Ye22InputDTO input) {
|
|
|
|
|
try {
|
|
|
|
|
return fileOfferWS.webGwaseInfo007(input);
|
|
|
|
|
|