@ -1,8 +1,10 @@
package go.kr.project.carInspectionPenalty.registration.service.impl ;
import egovframework.util.SessionUtil ;
import go.kr.project.carInspectionPenalty.registration.model.CarFfnlgTrgtVO ;
import go.kr.project.carInspectionPenalty.registration.service.ComparisonService ;
import go.kr.project.carInspectionPenalty.registration.service.impl.delay_checker.* ;
import go.kr.project.login.model.LoginUserVO ;
import lombok.RequiredArgsConstructor ;
import lombok.extern.slf4j.Slf4j ;
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl ;
@ -49,50 +51,54 @@ public class ComparisonServiceImpl extends EgovAbstractServiceImpl implements Co
String vhclno = existingData . getVhclno ( ) ;
log . info ( "========== 비교 로직 시작: {} ==========" , vhclno ) ;
// ========== 세션에서 사용자 정보 조회 ==========
LoginUserVO userInfo = SessionUtil . getLoginUser ( ) ;
String userOrgCd = userInfo ! = null ? userInfo . getOrgCd ( ) : null ;
// ========== 1. 상품용 체크 - api-1번호출.소유자명.contains("상품용") ==========
String productUseResult = productUseChecker . check ( existingData ) ;
String productUseResult = productUseChecker . check ( existingData , userOrgCd );
if ( productUseResult ! = null ) {
log . info ( "========== 비교 로직 종료 (상품용): {} ==========" , vhclno ) ;
return productUseResult ;
}
// ========== 2. 상품용 체크 - api-1번호출.소유자명.contains("상품용-변경등록") ==========
String productUseChangeResult = productUseChnageChecker . check ( existingData );
String productUseChangeResult = productUseChnageChecker . check ( existingData , userOrgCd );
if ( productUseChangeResult ! = null ) {
log . info ( "========== 비교 로직 종료 (상품용-변경등록): {} ==========" , vhclno ) ;
return productUseChangeResult ;
}
// ========== 3. 내사종결 체크 - 명의이전 이전소유자 상품용, 31일 이내 ==========
String investigationClosedByProductResult = productCloseWithin31Checker . check ( existingData );
String investigationClosedByProductResult = productCloseWithin31Checker . check ( existingData , userOrgCd );
if ( investigationClosedByProductResult ! = null ) {
log . info ( "========== 비교 로직 종료 (내사종결 - 명의이전 이전소유자 상품용, 31일 이내): {} ==========" , vhclno ) ;
return investigationClosedByProductResult ;
}
// ========== 4. 내사종결 체크 - 명의이전, 31일 이내 ==========
String investigationClosedByOwnerChangeResult = ownerCloseWithin31Checker . check ( existingData );
String investigationClosedByOwnerChangeResult = ownerCloseWithin31Checker . check ( existingData , userOrgCd );
if ( investigationClosedByOwnerChangeResult ! = null ) {
log . info ( "========== 비교 로직 종료 (내사종결 - 명의이전, 31일 이내): {} ==========" , vhclno ) ;
return investigationClosedByOwnerChangeResult ;
}
// ========== 5. 날짜 수정 후 부과 체크 - 명의이전 이전소유자 상품용, 31일 초과 ==========
String dateModifiedLevyByProductResult = productLevyOver31Checker . check ( existingData );
String dateModifiedLevyByProductResult = productLevyOver31Checker . check ( existingData , userOrgCd );
if ( dateModifiedLevyByProductResult ! = null ) {
log . info ( "========== 비교 로직 종료 (날짜 수정 후 부과 - 명의이전 이전소유자, 31일 초과): {} ==========" , vhclno ) ;
return dateModifiedLevyByProductResult ;
}
// ========== 6. 날짜 수정 후 부과 체크 - 명의이전, 31일 초과 ==========
String dateModifiedLevyByOwnerChangeOverResult = ownerLevyOver31Checker . check ( existingData );
String dateModifiedLevyByOwnerChangeOverResult = ownerLevyOver31Checker . check ( existingData , userOrgCd );
if ( dateModifiedLevyByOwnerChangeOverResult ! = null ) {
log . info ( "========== 비교 로직 종료 (날짜 수정 후 부과 - 명의이전, 31일 초과): {} ==========" , vhclno ) ;
return dateModifiedLevyByOwnerChangeOverResult ;
}
// ========== 7. 이첩 체크 ==========
String transferResult = transferCase115DayChecker . check ( existingData );
String transferResult = transferCase115DayChecker . check ( existingData , userOrgCd );
if ( transferResult ! = null ) {
log . info ( "========== 비교 로직 종료 (이첩): {} ==========" , vhclno ) ;
return transferResult ;