From 155dcdf0f83cb7cae48127030d666cf00228f246 Mon Sep 17 00:00:00 2001 From: kjh Date: Tue, 19 Dec 2023 19:00:10 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B5=90=ED=86=B5=EC=8B=9C=EC=84=A4?= =?UTF-8?q?=EC=9A=B4=EC=98=81=EC=B2=98=EB=8A=94=20=EB=A7=88=EA=B0=90?= =?UTF-8?q?=EC=9D=BC=EC=8B=9C=EB=A5=BC=20=EB=B0=9C=EC=86=A1=EC=9D=BC?= =?UTF-8?q?=EC=9E=90=20+=2030=EC=9D=BC=EB=A1=9C=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 납부기한을 독촉장 기존 납부기한을 유지한다고 함 --- .../xit/biz/sisul/service/BizSisulService.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java b/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java index 0ebafc9..1071cd5 100644 --- a/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java +++ b/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java @@ -4,6 +4,10 @@ import static egovframework.com.cmm.util.EgovDateUtil.formatDate; import java.io.IOException; import java.io.InputStream; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; @@ -375,6 +379,17 @@ public class BizSisulService extends AbstractService implements IBizSisulService //최초 1회 CNTC master 생성 // if(StringUtils.isNotEmpty(dto.getUnitySndngMastrId()) && mst == 0){ // unitySndngMastrId = dto.getUnitySndngMastrId(); + + // 교통시설운영처는 마감일시 = 발송일자 + 30일 + String closDt = ""; + if(ApiConstants.SignguCode.TRAFFIC.getCode().equals(fileReq.getSignguCode())) { + DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss"); + LocalDateTime dateTime = LocalDateTime.parse(dto.getSndngDt(), formatter).plusDays(30); + closDt = dateTime.format(formatter).substring(0,8) + "235959"; + } else { + closDt = dto.getNapPd() + "235959"; + } + if(mst == 0){ fileReq.setUnitySndngMastrId(unitySndngMastrId); mapper.insertCntcSndngMst( @@ -382,7 +397,7 @@ public class BizSisulService extends AbstractService implements IBizSisulService .unitySndngMastrId(dto.getUnitySndngMastrId()) .tmplatId(dto.getTmplatId()) .sndngDt(dto.getSndngDt()) - .closDt(dto.getNapPd() + "235959") + .closDt(closDt) .sndngCo(excelCnt) .sndngProcessSttus(ApiConstants.SndngProcessStatus.ACCEPT.getCode()) .register(register)