|
|
|
|
@ -58,6 +58,7 @@ public class OwnerCloseWithin31Checker extends AbstractComparisonChecker {
|
|
|
|
|
NewBasicResponse.Record step1Record = step1Response.getRecord().get(0);
|
|
|
|
|
String vin = step1Record.getVin(); // 차대번호
|
|
|
|
|
String step1OwnerName = step1Record.getRprsOwnrNm(); // 검사일 기준 소유자명
|
|
|
|
|
String step1RprsvOwnrIdecno = step1Record.getRprsvOwnrIdecno(); // 검사일 기준 대표소유자 회원번호
|
|
|
|
|
|
|
|
|
|
log.info("[내사종결-명의이전] Step 1 결과 - 차대번호: {}, 소유자명: {}", vin, step1OwnerName);
|
|
|
|
|
|
|
|
|
|
@ -164,25 +165,23 @@ public class OwnerCloseWithin31Checker extends AbstractComparisonChecker {
|
|
|
|
|
|
|
|
|
|
// ========== Step 4: 자동차기본정보 조회 (차대번호, 부과일자=CHG_YMD -1일) ==========
|
|
|
|
|
LocalDate targetDate = DateUtil.parseDate(targetChgYmd);
|
|
|
|
|
String targetChgYmdMinus1 = targetDate.minusDays(1).format(DATE_FORMATTER);
|
|
|
|
|
log.info("[내사종결-명의이전] Step 4: 자동차기본정보 조회 - 차대번호: {}, 부과일자: {} (원본: {})", vin, targetChgYmdMinus1, targetChgYmd);
|
|
|
|
|
|
|
|
|
|
NewBasicRequest step4Request = createBasicRequest(null, vin, targetChgYmdMinus1);
|
|
|
|
|
NewBasicRequest step4Request = createBasicRequest(null, vin, targetDate.format(DATE_FORMATTER));
|
|
|
|
|
NewBasicResponse step4Response = apiService.getBasicInfo(step4Request);
|
|
|
|
|
bassMatterLogService.updateCarFfnlgTrgtIdByTxIdNewTx(step4Response, existingData.getCarFfnlgTrgtId());
|
|
|
|
|
|
|
|
|
|
if (step4Response == null || step4Response.getRecord() == null || step4Response.getRecord().isEmpty()) {
|
|
|
|
|
log.warn("[내사종결-명의이전] Step 4 응답 없음 - 차대번호: {}, 부과일자: {}", vin, targetChgYmdMinus1);
|
|
|
|
|
log.warn("[내사종결-명의이전] Step 4 응답 없음 - 차대번호: {}, 부과일자: {}", vin, targetDate.format(DATE_FORMATTER));
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NewBasicResponse.Record step4Record = step4Response.getRecord().get(0);
|
|
|
|
|
String step4OwnerName = step4Record.getRprsOwnrNm(); // CHG_YMD 시점의 소유자명
|
|
|
|
|
String step4RprsvOwnrIdecno = step4Record.getRprsvOwnrIdecno(); // 대표소유자 회원번호
|
|
|
|
|
|
|
|
|
|
log.info("[내사종결-명의이전] Step 4 결과 - 소유자명: {}", step4OwnerName);
|
|
|
|
|
|
|
|
|
|
// 명의이전 전 소유자가 상품용 아님
|
|
|
|
|
if (step4OwnerName == null || step4OwnerName.contains("상품용")) {
|
|
|
|
|
if (step4OwnerName == null || step4RprsvOwnrIdecno.contains(step1RprsvOwnrIdecno)) {
|
|
|
|
|
log.debug("[내사종결-명의이전] 명의이전 전 소유자가 상품용 - Step4 소유자명: {}", step4OwnerName);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|