|
|
|
|
@ -82,6 +82,7 @@ public class TransferOmChecker extends AbstractComparisonOmChecker {
|
|
|
|
|
String step1RprsOwnrNm = step1Record.getRprsOwnrNm(); // 검사일 기준 소유자명
|
|
|
|
|
String step1RprsvOwnrIdecno = step1Record.getRprsvOwnrIdecno(); // 검사일 기준 소유자 회원번호
|
|
|
|
|
String step1UsgsrhldStdgCd = step1Record.getUsgsrhldStdgCd(); // 1단계 사용본거지법정동코드
|
|
|
|
|
String step1Vin = step1Record.getVin(); // 1단계 차대번호
|
|
|
|
|
|
|
|
|
|
// 소유자명에 "상품용" 포함 여부 체크
|
|
|
|
|
if (step1RprsOwnrNm != null && step1RprsOwnrNm.contains("상품용")) {
|
|
|
|
|
@ -96,13 +97,13 @@ public class TransferOmChecker extends AbstractComparisonOmChecker {
|
|
|
|
|
LocalDate step2Date = inspVldPrdEndDate.minusDays(90);
|
|
|
|
|
String step2Ymd = step2Date.format(DATE_FORMATTER);
|
|
|
|
|
|
|
|
|
|
log.info("[이첩-미필] 2단계 API 호출 - 차량번호: {}, 부과일자: {}", vhclno, step2Ymd);
|
|
|
|
|
NewBasicRequest step2Request = createBasicRequest(vhclno, null, step2Ymd);
|
|
|
|
|
log.info("[이첩-미필] 2단계 API 호출 - 차대번호: {}, 부과일자: {}", step1Vin, step2Ymd);
|
|
|
|
|
NewBasicRequest step2Request = createBasicRequest(null, step1Vin, step2Ymd);
|
|
|
|
|
NewBasicResponse step2Response = apiService.getBasicInfo(step2Request);
|
|
|
|
|
bassMatterLogService.updateCarFfnlgTrgtIdByTxIdNewTx(step2Response, existingData.getCarFfnlgTrgtIncmpId());
|
|
|
|
|
|
|
|
|
|
if (step2Response == null || step2Response.getRecord() == null || step2Response.getRecord().isEmpty()) {
|
|
|
|
|
log.warn("[이첩-미필] 2단계 응답 없음 - 차량번호: {}", vhclno);
|
|
|
|
|
log.warn("[이첩-미필] 2단계 응답 없음 - 차대번호: {}", step1Vin);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -118,16 +119,16 @@ public class TransferOmChecker extends AbstractComparisonOmChecker {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 3단계: 자동차기본정보(차량번호, 부과일자=오늘)
|
|
|
|
|
// 3단계: 자동차기본정보(차대번호, 부과일자=오늘)
|
|
|
|
|
String step3Ymd = LocalDate.now().format(DATE_FORMATTER);
|
|
|
|
|
|
|
|
|
|
log.info("[이첩-미필] 3단계 API 호출 - 차량번호: {}, 부과일자: {}", vhclno, step3Ymd);
|
|
|
|
|
NewBasicRequest step3Request = createBasicRequest(vhclno, null, step3Ymd);
|
|
|
|
|
log.info("[이첩-미필] 3단계 API 호출 - 차대번호: {}, 부과일자: {}", step1Vin, step3Ymd);
|
|
|
|
|
NewBasicRequest step3Request = createBasicRequest(null, step1Vin, step3Ymd);
|
|
|
|
|
NewBasicResponse step3Response = apiService.getBasicInfo(step3Request);
|
|
|
|
|
bassMatterLogService.updateCarFfnlgTrgtIdByTxIdNewTx(step3Response, existingData.getCarFfnlgTrgtIncmpId());
|
|
|
|
|
|
|
|
|
|
if (step3Response == null || step3Response.getRecord() == null || step3Response.getRecord().isEmpty()) {
|
|
|
|
|
log.warn("[이첩-미필] 3단계 응답 없음 - 차량번호: {}", vhclno);
|
|
|
|
|
log.warn("[이첩-미필] 3단계 응답 없음 - 차대번호: {}", step1Vin);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|