diff --git a/src/main/java/go/kr/project/carInspectionPenalty/registration/service/impl/CarFfnlgTrgtServiceImpl.java b/src/main/java/go/kr/project/carInspectionPenalty/registration/service/impl/CarFfnlgTrgtServiceImpl.java index eac2e74..2ec2968 100644 --- a/src/main/java/go/kr/project/carInspectionPenalty/registration/service/impl/CarFfnlgTrgtServiceImpl.java +++ b/src/main/java/go/kr/project/carInspectionPenalty/registration/service/impl/CarFfnlgTrgtServiceImpl.java @@ -989,7 +989,7 @@ public class CarFfnlgTrgtServiceImpl extends EgovAbstractServiceImpl implements } catch (Exception e) { log.error("데이터 비교 중 오류 발생 - 차량번호: {}, 전체 롤백 처리", vhclno, e); // 예외 재발생하여 전체 롤백 처리 - throw new MessageException(String.format("데이터 비교 중 오류 발생 - 차량번호: %s, 전체 롤백 처리되었습니다.", vhclno), e); + throw new MessageException(e.getMessage(), e); } compareResults.add(compareResult); diff --git a/src/main/webapp/WEB-INF/views/carInspectionPenalty/registration/list.jsp b/src/main/webapp/WEB-INF/views/carInspectionPenalty/registration/list.jsp index 91039d9..6a3d3fd 100644 --- a/src/main/webapp/WEB-INF/views/carInspectionPenalty/registration/list.jsp +++ b/src/main/webapp/WEB-INF/views/carInspectionPenalty/registration/list.jsp @@ -815,6 +815,11 @@ // 검색 조건 설정 setSearchCond(); + // 페이징 없이 전체 조회를 위한 파라미터, 백엔드에서 처리해되되나 params 값을 던지기위해 다시한번 처리 + var params = Object.assign({}, SEARCH_COND, { + pagingYn: 'N' // 페이징 비활성화 + }); + // 로딩 메시지 표시 console.log("전체 데이터 API 호출 및 비교 중입니다...\n잠시만 기다려주세요."); diff --git a/src/main/webapp/resources/xit/xit-common.js b/src/main/webapp/resources/xit/xit-common.js index 8997443..57a6c42 100644 --- a/src/main/webapp/resources/xit/xit-common.js +++ b/src/main/webapp/resources/xit/xit-common.js @@ -71,6 +71,8 @@ $(document).ajaxError( function( event, jqxhr, settings, exception ){ alert(jqxhr.responseJSON.message); } else if(jqxhr.responseJSON.errorCode === "MESSAGE_EXCEPTION") { alert(jqxhr.responseJSON.message); + } else if(jqxhr.responseJSON.errorCode === "MESSAGE") { + alert(jqxhr.responseJSON.message); } else { alert("에러가 발생했습니다.\n\nERROR CODE : "+jqxhr.responseJSON.errorCode+"\nMESSAGE : "+jqxhr.responseJSON.message); }