미필 주석 145 -> 146일로 일단 변경

main
박성영 1 week ago
parent a25c8ff359
commit b72525e0f6

@ -38,7 +38,7 @@ import java.util.Map;
/** /**
* Controller * Controller
* , PRN * , PRN
* = + 145 * = + 146
*/ */
@Controller @Controller
@RequestMapping("/carInspectionPenalty/registration-om") @RequestMapping("/carInspectionPenalty/registration-om")
@ -297,13 +297,13 @@ public class CarFfnlgTrgtIncmpController {
/** /**
* API / * API /
* = + 145 * = + 146
* @param targetList * @param targetList
* @return * @return
*/ */
@PostMapping("/compareWithApi.ajax") @PostMapping("/compareWithApi.ajax")
@ResponseBody @ResponseBody
@Operation(summary = "API 호출 및 데이터 비교", description = "선택된 목록에 대해 차량 API를 호출하고 기본정보 및 등록원부와 비교합니다. 미필의 경우 부과일자 = 검사유효기간 종료일 + 145일") @Operation(summary = "API 호출 및 데이터 비교", description = "선택된 목록에 대해 차량 API를 호출하고 기본정보 및 등록원부와 비교합니다. 미필의 경우 부과일자 = 검사유효기간 종료일 + 146일")
public ResponseEntity<?> compareWithApi(@RequestBody List<Map<String, String>> targetList) { public ResponseEntity<?> compareWithApi(@RequestBody List<Map<String, String>> targetList) {
log.info("API 호출 및 비교 요청 (미필) - 선택된 데이터 건수: {}", targetList != null ? targetList.size() : 0); log.info("API 호출 및 비교 요청 (미필) - 선택된 데이터 건수: {}", targetList != null ? targetList.size() : 0);
@ -327,13 +327,13 @@ public class CarFfnlgTrgtIncmpController {
/** /**
* API / ( ) * API / ( )
* = + 145 * = + 146
* @param searchParams * @param searchParams
* @return * @return
*/ */
@PostMapping("/compareWithApiAll.ajax") @PostMapping("/compareWithApiAll.ajax")
@ResponseBody @ResponseBody
@Operation(summary = "검색조건 전체 API 호출 및 데이터 비교", description = "검색조건에 해당하는 전체 목록에 대해 차량 API를 호출하고 비교합니다. 미필의 경우 부과일자 = 검사유효기간 종료일 + 145일") @Operation(summary = "검색조건 전체 API 호출 및 데이터 비교", description = "검색조건에 해당하는 전체 목록에 대해 차량 API를 호출하고 비교합니다. 미필의 경우 부과일자 = 검사유효기간 종료일 + 146일")
public ResponseEntity<?> compareWithApiAll(@RequestBody CarFfnlgTrgtIncmpVO searchParams) { public ResponseEntity<?> compareWithApiAll(@RequestBody CarFfnlgTrgtIncmpVO searchParams) {
log.info("전체 API 호출 및 비교 요청 (미필) - 검색 조건: {}", searchParams); log.info("전체 API 호출 및 비교 요청 (미필) - 검색 조건: {}", searchParams);

@ -84,7 +84,7 @@ public interface CarFfnlgTrgtIncmpMapper {
/** /**
* (OM_DAY_CD D) * (OM_DAY_CD D)
* @return (: 145) * @return (: 146)
*/ */
String selectOmDayPlusDay(); String selectOmDayPlusDay();
} }

@ -78,6 +78,6 @@ public class CarFfnlgTrgtIncmpVO extends PagingVO {
private String schPrcsYmdStart; // 검색 시작 처리 일자 private String schPrcsYmdStart; // 검색 시작 처리 일자
private String schPrcsYmdEnd; // 검색 종료 처리 일자 private String schPrcsYmdEnd; // 검색 종료 처리 일자
// 부과일자 계산용 필드 (검사유효기간 종료일 + 145일) // 부과일자 계산용 필드 (검사유효기간 종료일 + 146일)
private String levyCrtrYmd; // 부과기준일자 (API 호출 시 사용) private String levyCrtrYmd; // 부과기준일자 (API 호출 시 사용)
} }

@ -74,7 +74,7 @@ public interface CarFfnlgTrgtIncmpService {
/** /**
* API / * API /
* = + 145 * = + 146
* *
* @param targetList (carFfnlgTrgtIncmpId, vhclno, inspVldPrd ) * @param targetList (carFfnlgTrgtIncmpId, vhclno, inspVldPrd )
* @return (compareResults, totalCount, successCount, failCount) * @return (compareResults, totalCount, successCount, failCount)

@ -6,7 +6,7 @@ import go.kr.project.carInspectionPenalty.registrationOm.model.CarFfnlgTrgtIncmp
* *
* *
* <p> API .</p> * <p> API .</p>
* <p> = + 145</p> * <p> = + 146</p>
*/ */
public interface ComparisonOmService { public interface ComparisonOmService {

@ -397,7 +397,7 @@ public class CarFfnlgTrgtIncmpServiceImpl extends EgovAbstractServiceImpl implem
/** /**
* API / * API /
* = + OM_DAY_CD D (145) * = + OM_DAY_CD D (146)
*/ */
@Override @Override
@Transactional @Transactional
@ -417,12 +417,12 @@ public class CarFfnlgTrgtIncmpServiceImpl extends EgovAbstractServiceImpl implem
// 가산일 조회 (OM_DAY_CD 코드의 D값) // 가산일 조회 (OM_DAY_CD 코드의 D값)
String plusDayStr = mapper.selectOmDayPlusDay(); String plusDayStr = mapper.selectOmDayPlusDay();
int plusDay = 145; // 기본값 int plusDay = 146; // 기본값
if (plusDayStr != null && !plusDayStr.isEmpty()) { if (plusDayStr != null && !plusDayStr.isEmpty()) {
try { try {
plusDay = Integer.parseInt(plusDayStr); plusDay = Integer.parseInt(plusDayStr);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
log.warn("가산일 파싱 실패, 기본값 145 사용: {}", plusDayStr); log.warn("가산일 파싱 실패, 기본값 146 사용: {}", plusDayStr);
} }
} }
log.info("부과일자 가산일: {}일", plusDay); log.info("부과일자 가산일: {}일", plusDay);
@ -815,7 +815,7 @@ public class CarFfnlgTrgtIncmpServiceImpl extends EgovAbstractServiceImpl implem
/** /**
* *
* : "2023-07-12~2025-07-11" -> (2025-07-11) + (145) = 20251203 * : "2023-07-12~2025-07-11" -> (2025-07-11) + (146) = 20251203
*/ */
private String calculateLevyCrtrYmdFromInspVldPrd(String inspVldPrd, int plusDay) { private String calculateLevyCrtrYmdFromInspVldPrd(String inspVldPrd, int plusDay) {
if (inspVldPrd == null || inspVldPrd.isEmpty()) { if (inspVldPrd == null || inspVldPrd.isEmpty()) {

@ -9,7 +9,7 @@ import go.kr.project.api.model.response.NewLedgerResponse;
* (Remark) * (Remark)
* *
* <p> .</p> * <p> .</p>
* <p> = + 145</p> * <p> = + 146</p>
*/ */
public class ComparisonOmRemarkBuilder { public class ComparisonOmRemarkBuilder {
@ -20,7 +20,7 @@ public class ComparisonOmRemarkBuilder {
* @param step4Record Step 4 API ( ) * @param step4Record Step 4 API ( )
* @param ledgerRecord * @param ledgerRecord
* @param inspVldPrdEnd * @param inspVldPrdEnd
* @param levyCrtrYmd ( + 145) * @param levyCrtrYmd ( + 146)
* @return * @return
*/ */
public static String buildProductUseRemark( public static String buildProductUseRemark(
@ -63,7 +63,7 @@ public class ComparisonOmRemarkBuilder {
* @param step4Record Step 4 API ( ) * @param step4Record Step 4 API ( )
* @param ledgerRecord ( ) * @param ledgerRecord ( )
* @param inspVldPrdEnd * @param inspVldPrdEnd
* @param levyCrtrYmd ( + 145) * @param levyCrtrYmd ( + 146)
* @return * @return
*/ */
public static String buildProductUseChangeRemark( public static String buildProductUseChangeRemark(
@ -111,7 +111,7 @@ public class ComparisonOmRemarkBuilder {
* @param step4Record Step 4 API ( = ) * @param step4Record Step 4 API ( = )
* @param ledgerRecord ( ) * @param ledgerRecord ( )
* @param vhclno * @param vhclno
* @param levyCrtrYmd ( + 145) * @param levyCrtrYmd ( + 146)
* @param inspVldPrdStart * @param inspVldPrdStart
* @param inspVldPrdEnd * @param inspVldPrdEnd
* @param daysBetween * @param daysBetween
@ -173,7 +173,7 @@ public class ComparisonOmRemarkBuilder {
* @param step4Record Step 4 API ( ) * @param step4Record Step 4 API ( )
* @param ledgerRecord ( ) * @param ledgerRecord ( )
* @param vhclno * @param vhclno
* @param levyCrtrYmd ( + 145) * @param levyCrtrYmd ( + 146)
* @param inspVldPrdStart * @param inspVldPrdStart
* @param inspVldPrdEnd * @param inspVldPrdEnd
* @param daysBetween * @param daysBetween
@ -229,7 +229,7 @@ public class ComparisonOmRemarkBuilder {
} }
/** /**
* - Case -2 (145 ) * - Case -2 (146 )
* *
* @param sggNm * @param sggNm
* @param legalDong4 4 * @param legalDong4 4

@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
* *
* *
* <p> .</p> * <p> .</p>
* <p> = + 145</p> * <p> = + 146</p>
*/ */
@Slf4j @Slf4j
@Service @Service

@ -15,7 +15,7 @@ import java.time.format.DateTimeFormatter;
* *
* *
* <p> .</p> * <p> .</p>
* <p> = + 145</p> * <p> = + 146</p>
*/ */
@Slf4j @Slf4j
@RequiredArgsConstructor @RequiredArgsConstructor
@ -36,11 +36,11 @@ public abstract class AbstractComparisonOmChecker implements ComparisonOmChecker
/** /**
* *
* levyCrtrYmd = + 145 * levyCrtrYmd = + 146
* *
* @param vhrno * @param vhrno
* @param vin * @param vin
* @param levyCrtrYmd (: + 145) * @param levyCrtrYmd (: + 146)
* @return NewBasicRequest * @return NewBasicRequest
*/ */
protected NewBasicRequest createBasicRequest(String vhrno, String vin, String levyCrtrYmd) { protected NewBasicRequest createBasicRequest(String vhrno, String vin, String levyCrtrYmd) {

@ -23,7 +23,7 @@ import java.util.List;
* 4. - (31 ) () * 4. - (31 ) ()
* *
* <p> , </p> * <p> , </p>
* <p> = + 145</p> * <p> = + 146</p>
*/ */
@Slf4j @Slf4j
@Component @Component
@ -39,7 +39,7 @@ public class OwnerCloseWithin31OmChecker extends AbstractComparisonOmChecker {
@Override @Override
public String check(CarFfnlgTrgtIncmpVO existingData) { public String check(CarFfnlgTrgtIncmpVO existingData) {
String vhclno = existingData.getVhclno(); String vhclno = existingData.getVhclno();
String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 145 String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 146
String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간 String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간
// 검사유효기간에서 시작일과 종료일 추출 // 검사유효기간에서 시작일과 종료일 추출
@ -52,7 +52,7 @@ public class OwnerCloseWithin31OmChecker extends AbstractComparisonOmChecker {
} }
try { try {
// ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+145일) ========== // ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+146일) ==========
log.info("[내사종결-명의이전-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd); log.info("[내사종결-명의이전-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd);
NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd); NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd);

@ -23,7 +23,7 @@ import java.util.List;
* 6. - (31 ) () * 6. - (31 ) ()
* *
* <p> , , 31 </p> * <p> , , 31 </p>
* <p> = + 145</p> * <p> = + 146</p>
*/ */
@Slf4j @Slf4j
@Component @Component
@ -39,7 +39,7 @@ public class OwnerLevyOver31OmChecker extends AbstractComparisonOmChecker {
@Override @Override
public String check(CarFfnlgTrgtIncmpVO existingData) { public String check(CarFfnlgTrgtIncmpVO existingData) {
String vhclno = existingData.getVhclno(); String vhclno = existingData.getVhclno();
String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 145 String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 146
String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간 String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간
// 검사유효기간에서 시작일과 종료일 추출 // 검사유효기간에서 시작일과 종료일 추출
@ -52,7 +52,7 @@ public class OwnerLevyOver31OmChecker extends AbstractComparisonOmChecker {
} }
try { try {
// ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+145일) ========== // ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+146일) ==========
log.info("[날짜수정후부과-명의이전-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd); log.info("[날짜수정후부과-명의이전-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd);
NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd); NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd);

@ -23,7 +23,7 @@ import java.util.List;
* 3. - , 31 () * 3. - , 31 ()
* *
* <p> , 31 </p> * <p> , 31 </p>
* <p> = + 145</p> * <p> = + 146</p>
*/ */
@Slf4j @Slf4j
@Component @Component
@ -39,7 +39,7 @@ public class ProductCloseWithin31OmChecker extends AbstractComparisonOmChecker {
@Override @Override
public String check(CarFfnlgTrgtIncmpVO existingData) { public String check(CarFfnlgTrgtIncmpVO existingData) {
String vhclno = existingData.getVhclno(); String vhclno = existingData.getVhclno();
String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 145 String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 146
String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간 String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간
// 검사유효기간에서 시작일과 종료일 추출 // 검사유효기간에서 시작일과 종료일 추출
@ -52,7 +52,7 @@ public class ProductCloseWithin31OmChecker extends AbstractComparisonOmChecker {
} }
try { try {
// ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+145일) ========== // ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+146일) ==========
log.info("[내사종결-명의이전 상품용-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd); log.info("[내사종결-명의이전 상품용-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd);
NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd); NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd);

@ -23,7 +23,7 @@ import java.util.List;
* 5. - , 31 () * 5. - , 31 ()
* *
* <p> , 31 </p> * <p> , 31 </p>
* <p> = + 145</p> * <p> = + 146</p>
*/ */
@Slf4j @Slf4j
@Component @Component
@ -39,7 +39,7 @@ public class ProductLevyOver31OmChecker extends AbstractComparisonOmChecker {
@Override @Override
public String check(CarFfnlgTrgtIncmpVO existingData) { public String check(CarFfnlgTrgtIncmpVO existingData) {
String vhclno = existingData.getVhclno(); String vhclno = existingData.getVhclno();
String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 145 String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 146
String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간 String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간
// 검사유효기간에서 시작일과 종료일 추출 // 검사유효기간에서 시작일과 종료일 추출
@ -52,7 +52,7 @@ public class ProductLevyOver31OmChecker extends AbstractComparisonOmChecker {
} }
try { try {
// ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+145일) ========== // ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+146일) ==========
log.info("[날짜수정후부과-명의이전 상품용-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd); log.info("[날짜수정후부과-명의이전 상품용-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd);
NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd); NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd);

@ -23,7 +23,7 @@ import java.util.List;
* 2. - () * 2. - ()
* *
* <p>api-1..contains("상품용")</p> * <p>api-1..contains("상품용")</p>
* <p> = + 145</p> * <p> = + 146</p>
*/ */
@Slf4j @Slf4j
@Component @Component
@ -39,7 +39,7 @@ public class ProductUseOmChangeChecker extends AbstractComparisonOmChecker {
@Override @Override
public String check(CarFfnlgTrgtIncmpVO existingData) { public String check(CarFfnlgTrgtIncmpVO existingData) {
String vhclno = existingData.getVhclno(); String vhclno = existingData.getVhclno();
String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 145 String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 146
String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간 String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간
// 검사유효기간에서 시작일과 종료일 추출 // 검사유효기간에서 시작일과 종료일 추출
@ -52,7 +52,7 @@ public class ProductUseOmChangeChecker extends AbstractComparisonOmChecker {
} }
try { try {
// ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+145일) ========== // ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+146일) ==========
log.info("[상품용-변경등록-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd); log.info("[상품용-변경등록-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd);
NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd); NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd);

@ -23,7 +23,7 @@ import java.util.List;
* 1. () * 1. ()
* *
* <p>api-1..contains("상품용")</p> * <p>api-1..contains("상품용")</p>
* <p> = + 145</p> * <p> = + 146</p>
*/ */
@Slf4j @Slf4j
@Component @Component
@ -39,7 +39,7 @@ public class ProductUseOmChecker extends AbstractComparisonOmChecker {
@Override @Override
public String check(CarFfnlgTrgtIncmpVO existingData) { public String check(CarFfnlgTrgtIncmpVO existingData) {
String vhclno = existingData.getVhclno(); String vhclno = existingData.getVhclno();
String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 145 String levyCrtrYmd = existingData.getLevyCrtrYmd(); // 미필: 검사유효기간 종료일 + 146
String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간 String inspVldPrd = existingData.getInspVldPrd(); // 검사유효기간
// 검사유효기간에서 시작일과 종료일 추출 // 검사유효기간에서 시작일과 종료일 추출
@ -52,7 +52,7 @@ public class ProductUseOmChecker extends AbstractComparisonOmChecker {
} }
try { try {
// ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+145일) ========== // ========== Step 1: 자동차기본정보 조회 (차량번호, 부과일자=검사유효기간 종료일+146일) ==========
log.info("[상품용-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd); log.info("[상품용-미필] Step 1: 자동차기본정보 조회 - 차량번호: {}, 부과일자: {}", vhclno, levyCrtrYmd);
NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd); NewBasicRequest step1Request = createBasicRequest(vhclno, null, levyCrtrYmd);

@ -22,7 +22,7 @@ import java.time.LocalDate;
* 7. () * 7. ()
* *
* <p>DAYCNT </p> * <p>DAYCNT </p>
* <p> = + 145</p> * <p> = + 146</p>
*/ */
@Slf4j @Slf4j
@Component @Component
@ -72,7 +72,7 @@ public class TransferOmChecker extends AbstractComparisonOmChecker {
transferType = "이첩-2"; transferType = "이첩-2";
log.info("[이첩-2-미필] 부과기준일 = 검사유효기간 종료일({}) + 115일 = {}", inspVldPrdEnd, levyCrtrYmd); log.info("[이첩-2-미필] 부과기준일 = 검사유효기간 종료일({}) + 115일 = {}", inspVldPrdEnd, levyCrtrYmd);
} else { } else {
// 이첩-1: 부과기준일 = 부과일자 (검사유효기간 종료일 + 145일) // 이첩-1: 부과기준일 = 부과일자 (검사유효기간 종료일 + 146일)
levyCrtrYmd = existingData.getLevyCrtrYmd(); levyCrtrYmd = existingData.getLevyCrtrYmd();
transferType = "이첩-1"; transferType = "이첩-1";
log.info("[이첩-1-미필] 부과기준일 = 부과일자 = {}", levyCrtrYmd); log.info("[이첩-1-미필] 부과기준일 = 부과일자 = {}", levyCrtrYmd);

Loading…
Cancel
Save