feat: 교통시설운영처는 마감일시를 발송일자 + 30일로 설정

- 납부기한을 독촉장 기존 납부기한을 유지한다고 함
dev
kjh 11 months ago
parent d1a1fcf756
commit 155dcdf0f8

@ -4,6 +4,10 @@ import static egovframework.com.cmm.util.EgovDateUtil.formatDate;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; 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.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Iterator; import java.util.Iterator;
@ -375,6 +379,17 @@ public class BizSisulService extends AbstractService implements IBizSisulService
//최초 1회 CNTC master 생성 //최초 1회 CNTC master 생성
// if(StringUtils.isNotEmpty(dto.getUnitySndngMastrId()) && mst == 0){ // if(StringUtils.isNotEmpty(dto.getUnitySndngMastrId()) && mst == 0){
// unitySndngMastrId = dto.getUnitySndngMastrId(); // 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){ if(mst == 0){
fileReq.setUnitySndngMastrId(unitySndngMastrId); fileReq.setUnitySndngMastrId(unitySndngMastrId);
mapper.insertCntcSndngMst( mapper.insertCntcSndngMst(
@ -382,7 +397,7 @@ public class BizSisulService extends AbstractService implements IBizSisulService
.unitySndngMastrId(dto.getUnitySndngMastrId()) .unitySndngMastrId(dto.getUnitySndngMastrId())
.tmplatId(dto.getTmplatId()) .tmplatId(dto.getTmplatId())
.sndngDt(dto.getSndngDt()) .sndngDt(dto.getSndngDt())
.closDt(dto.getNapPd() + "235959") .closDt(closDt)
.sndngCo(excelCnt) .sndngCo(excelCnt)
.sndngProcessSttus(ApiConstants.SndngProcessStatus.ACCEPT.getCode()) .sndngProcessSttus(ApiConstants.SndngProcessStatus.ACCEPT.getCode())
.register(register) .register(register)

Loading…
Cancel
Save