From ab10886bf624e4ed160bde646f862054428acb92 Mon Sep 17 00:00:00 2001 From: Kurt92 Date: Fri, 17 Oct 2025 16:24:21 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=EA=B3=B5=EA=B3=B5=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20=ED=91=9C=EC=A4=80=EC=9D=84=20=EC=9C=84=ED=95=B4=20?= =?UTF-8?q?=EC=97=94=ED=8B=B0=ED=8B=B0=20=EC=BB=AC=EB=9F=BC=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD.=20=ED=95=B4=EB=8B=B9=20=EB=B3=80=EA=B2=BD=EC=9D=84?= =?UTF-8?q?=20=EC=9C=84=ED=95=B4=20new=EB=A1=9C=20=EC=BB=AC=EB=9F=BC?= =?UTF-8?q?=EB=A7=8C=20=EB=B0=94=EA=BE=BC=20=EB=8F=99=EC=9D=BC=ED=95=9C=20?= =?UTF-8?q?=EC=97=94=ED=8B=B0=ED=8B=B0=EB=A5=BC=20=EB=A7=8C=EB=93=A4?= =?UTF-8?q?=EC=97=88=EA=B3=A0,=20=EA=B7=B8=EB=A0=88=EB=93=A4=20=EB=B9=8C?= =?UTF-8?q?=EB=93=9C=EC=8B=9C=20=ED=95=B4=EB=8B=B9=20=EC=97=94=ED=8B=B0?= =?UTF-8?q?=ED=8B=B0=EB=B9=88=EC=9D=84=20=EA=B0=88=EC=95=84=EB=81=BC?= =?UTF-8?q?=EB=8A=94=20=EB=B0=A9=EC=8B=9D=EC=9C=BC=EB=A1=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 112 ++++++-- .../worker/scheduler/epost/dto/EPostDto.java | 2 - .../repository/EPostQueryDslRepository.java | 8 - .../epost/service/EPostSendService.java | 4 - .../scheduler/epost/service/EPostService.java | 8 +- .../worker/scheduler/smg/dto/SinmungoDto.java | 1 + .../scheduler/smg/service/DbPolling.java | 2 +- .../worker/scheduler/tax/dto/TaxSunapDto.java | 2 - .../tax/schedule/TaxSunapScheduler.java | 2 - .../tax/service/TaxSunapService.java | 1 - .../com/worker/domain/entity/CpAnswer.java | 0 .../com/worker/domain/entity/CpBdong.java | 0 .../com/worker/domain/entity/CpCancel.java | 0 .../com/worker/domain/entity/CpGojiPrt.java | 0 .../worker/domain/entity/CpGojiSendHist.java | 0 .../com/worker/domain/entity/CpGojit.java | 0 .../com/worker/domain/entity/CpImagesize.java | 0 .../com/worker/domain/entity/CpInstruct.java | 0 .../domain/entity/CpInstructAnswer.java | 0 .../domain/entity/CpInstructAnswerId.java | 0 .../com/worker/domain/entity/CpMain.java | 0 .../com/worker/domain/entity/CpMainEtc1.java | 0 .../com/worker/domain/entity/CpMatch.java | 0 .../com/worker/domain/entity/CpSetinfo.java | 0 .../com/worker/domain/entity/CpSetinfoId.java | 0 .../com/worker/domain/entity/CpSgg.java | 0 .../com/worker/domain/entity/CpUser.java | 0 .../com/worker/domain/entity/CpViolation.java | 0 .../worker/domain/entity/CpViolationId.java | 0 .../domain/entity/EpostDelivResult.java | 0 .../worker/domain/entity/EpostMakeResult.java | 0 .../domain/entity/EpostMakeResultId.java | 0 .../domain/entity/EpostRceptResult.java | 0 .../worker/domain/entity/EpostRgstNmbr.java | 0 .../domain/entity/EpostSenderDetail.java | 0 .../domain/entity/EpostSenderDetailId.java | 0 .../worker/domain/entity/EpostSenderReg.java | 0 .../domain/entity/TbCntcSndngDetail.java | 0 .../domain/entity/TbCntcSndngResult.java | 0 .../domain/entity/TbCntcSndngResultId.java | 0 .../worker/domain/entity_new/CpAnswer.java | 117 ++++++++ .../com/worker/domain/entity_new/CpBdong.java | 28 ++ .../worker/domain/entity_new/CpCancel.java | 50 ++++ .../worker/domain/entity_new/CpGojiPrt.java | 267 ++++++++++++++++++ .../domain/entity_new/CpGojiSendHist.java | 70 +++++ .../com/worker/domain/entity_new/CpGojit.java | 110 ++++++++ .../worker/domain/entity_new/CpImagesize.java | 57 ++++ .../worker/domain/entity_new/CpInstruct.java | 50 ++++ .../domain/entity_new/CpInstructAnswer.java | 40 +++ .../domain/entity_new/CpInstructAnswerId.java | 23 ++ .../com/worker/domain/entity_new/CpMain.java | 206 ++++++++++++++ .../domain/repo/cp/CpAnswerRepository.java | 0 .../domain/repo/cp/CpBdongRepository.java | 0 .../domain/repo/cp/CpCancelRepository.java | 0 .../repo/cp/CpEPostMakeResultRepository.java | 0 .../domain/repo/cp/CpEPostRgstNmbr.java | 0 .../cp/CpEPostSenderDetailRepository.java | 0 .../repo/cp/CpEPostSenderRegRepository.java | 0 .../repo/cp/CpEpostDelivResultRepository.java | 0 .../repo/cp/CpEpostRceptResultRepository.java | 0 .../domain/repo/cp/CpGojiPrtRepository.java | 0 .../repo/cp/CpGojiSendHistRepository.java | 0 .../domain/repo/cp/CpGojitRepository.java | 0 .../domain/repo/cp/CpImagesizeRepository.java | 0 .../domain/repo/cp/CpMainEtc1Repository.java | 0 .../domain/repo/cp/CpMainRepository.java | 0 .../domain/repo/cp/CpMatchRepository.java | 0 .../domain/repo/cp/CpSetinfoRepository.java | 0 .../domain/repo/cp/CpSggRepository.java | 0 .../domain/repo/cp/CpUserRepository.java | 0 .../domain/repo/cp/CpViolationRepository.java | 0 .../domain/repo/ep/EpAnswerRepository.java | 0 .../domain/repo/ep/EpBdongRepository.java | 0 .../repo/ep/EpEPostMakeResultRepository.java | 0 .../domain/repo/ep/EpEPostRgstNmbr.java | 0 .../ep/EpEPostSenderDetailRepository.java | 0 .../repo/ep/EpEPostSenderRegRepository.java | 0 .../repo/ep/EpEpostDelivResultRepository.java | 0 .../repo/ep/EpEpostRceptResultRepository.java | 0 .../domain/repo/ep/EpGojiPrtRepository.java | 0 .../repo/ep/EpGojiSendHistRepository.java | 0 .../domain/repo/ep/EpGojitRepository.java | 0 .../domain/repo/ep/EpImagesizeRepository.java | 0 .../domain/repo/ep/EpMainEtc1Repository.java | 0 .../domain/repo/ep/EpMainRepository.java | 0 .../domain/repo/ep/EpMatchRepository.java | 0 .../domain/repo/ep/EpSetinfoRepository.java | 0 .../domain/repo/ep/EpSggRepository.java | 0 .../domain/repo/ep/EpUserRepository.java | 0 .../domain/repo/ep/EpViolationRepository.java | 0 .../repo_new/cp/CpAnswerRepository.java | 13 + .../domain/repo_new/cp/CpBdongRepository.java | 13 + .../repo_new/cp/CpCancelRepository.java | 7 + .../cp/CpEPostMakeResultRepository.java | 10 + .../domain/repo_new/cp/CpEPostRgstNmbr.java | 8 + .../cp/CpEPostSenderDetailRepository.java | 7 + .../cp/CpEPostSenderRegRepository.java | 7 + .../cp/CpEpostDelivResultRepository.java | 7 + .../cp/CpEpostRceptResultRepository.java | 7 + .../repo_new/cp/CpGojiPrtRepository.java | 7 + .../repo_new/cp/CpGojiSendHistRepository.java | 7 + .../domain/repo_new/cp/CpGojitRepository.java | 7 + .../repo_new/cp/CpImagesizeRepository.java | 7 + .../repo_new/cp/CpMainEtc1Repository.java | 7 + .../domain/repo_new/cp/CpMainRepository.java | 11 + .../domain/repo_new/cp/CpMatchRepository.java | 8 + .../repo_new/cp/CpSetinfoRepository.java | 12 + .../domain/repo_new/cp/CpSggRepository.java | 8 + .../domain/repo_new/cp/CpUserRepository.java | 7 + .../repo_new/cp/CpViolationRepository.java | 9 + .../repo_new/ep/EpAnswerRepository.java | 12 + .../domain/repo_new/ep/EpBdongRepository.java | 11 + .../ep/EpEPostMakeResultRepository.java | 10 + .../domain/repo_new/ep/EpEPostRgstNmbr.java | 8 + .../ep/EpEPostSenderDetailRepository.java | 7 + .../ep/EpEPostSenderRegRepository.java | 7 + .../ep/EpEpostDelivResultRepository.java | 7 + .../ep/EpEpostRceptResultRepository.java | 7 + .../repo_new/ep/EpGojiPrtRepository.java | 7 + .../repo_new/ep/EpGojiSendHistRepository.java | 7 + .../domain/repo_new/ep/EpGojitRepository.java | 7 + .../repo_new/ep/EpImagesizeRepository.java | 7 + .../repo_new/ep/EpMainEtc1Repository.java | 7 + .../domain/repo_new/ep/EpMainRepository.java | 11 + .../domain/repo_new/ep/EpMatchRepository.java | 8 + .../repo_new/ep/EpSetinfoRepository.java | 12 + .../domain/repo_new/ep/EpSggRepository.java | 8 + .../domain/repo_new/ep/EpUserRepository.java | 7 + .../repo_new/ep/EpViolationRepository.java | 10 + 129 files changed, 1437 insertions(+), 52 deletions(-) rename src/{main/java => schemas}/com/worker/domain/entity/CpAnswer.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpBdong.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpCancel.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpGojiPrt.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpGojiSendHist.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpGojit.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpImagesize.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpInstruct.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpInstructAnswer.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpInstructAnswerId.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpMain.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpMainEtc1.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpMatch.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpSetinfo.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpSetinfoId.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpSgg.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpUser.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpViolation.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/CpViolationId.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/EpostDelivResult.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/EpostMakeResult.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/EpostMakeResultId.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/EpostRceptResult.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/EpostRgstNmbr.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/EpostSenderDetail.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/EpostSenderDetailId.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/EpostSenderReg.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/TbCntcSndngDetail.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/TbCntcSndngResult.java (100%) rename src/{main/java => schemas}/com/worker/domain/entity/TbCntcSndngResultId.java (100%) create mode 100644 src/schemas/com/worker/domain/entity_new/CpAnswer.java create mode 100644 src/schemas/com/worker/domain/entity_new/CpBdong.java create mode 100644 src/schemas/com/worker/domain/entity_new/CpCancel.java create mode 100644 src/schemas/com/worker/domain/entity_new/CpGojiPrt.java create mode 100644 src/schemas/com/worker/domain/entity_new/CpGojiSendHist.java create mode 100644 src/schemas/com/worker/domain/entity_new/CpGojit.java create mode 100644 src/schemas/com/worker/domain/entity_new/CpImagesize.java create mode 100644 src/schemas/com/worker/domain/entity_new/CpInstruct.java create mode 100644 src/schemas/com/worker/domain/entity_new/CpInstructAnswer.java create mode 100644 src/schemas/com/worker/domain/entity_new/CpInstructAnswerId.java create mode 100644 src/schemas/com/worker/domain/entity_new/CpMain.java rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpAnswerRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpBdongRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpCancelRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpEPostMakeResultRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpEPostRgstNmbr.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpEPostSenderDetailRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpEPostSenderRegRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpEpostDelivResultRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpEpostRceptResultRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpGojiPrtRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpGojiSendHistRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpGojitRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpImagesizeRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpMainEtc1Repository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpMainRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpMatchRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpSetinfoRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpSggRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpUserRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/cp/CpViolationRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpAnswerRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpBdongRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpEPostMakeResultRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpEPostRgstNmbr.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpEPostSenderDetailRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpEPostSenderRegRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpEpostDelivResultRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpEpostRceptResultRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpGojiPrtRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpGojiSendHistRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpGojitRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpImagesizeRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpMainEtc1Repository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpMainRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpMatchRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpSetinfoRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpSggRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpUserRepository.java (100%) rename src/{main/java => schemas}/com/worker/domain/repo/ep/EpViolationRepository.java (100%) create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpAnswerRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpBdongRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpCancelRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpEPostMakeResultRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpEPostRgstNmbr.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpEPostSenderDetailRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpEPostSenderRegRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpEpostDelivResultRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpEpostRceptResultRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpGojiPrtRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpGojiSendHistRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpGojitRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpImagesizeRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpMainEtc1Repository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpMainRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpMatchRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpSetinfoRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpSggRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpUserRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/cp/CpViolationRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpAnswerRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpBdongRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpEPostMakeResultRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpEPostRgstNmbr.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpEPostSenderDetailRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpEPostSenderRegRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpEpostDelivResultRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpEpostRceptResultRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpGojiPrtRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpGojiSendHistRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpGojitRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpImagesizeRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpMainEtc1Repository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpMainRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpMatchRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpSetinfoRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpSggRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpUserRepository.java create mode 100644 src/schemas/com/worker/domain/repo_new/ep/EpViolationRepository.java diff --git a/build.gradle b/build.gradle index 69ddcce..65ddd5e 100644 --- a/build.gradle +++ b/build.gradle @@ -23,6 +23,65 @@ repositories { mavenCentral() } +/** + * ====== 빌드타임 스위칭 ====== + * 사용법: + * - OLD 스키마(기본): ./gradlew clean build + * - NEW 스키마: ./gradlew clean build -PcpSchema=new + * + * 디렉터리 구조(패키지는 반드시 동일해야 함): + * - schemas/com/worker/domain/entity ← OLD 엔티티들 (package com.worker.domain.entity;) + * - schemas/com/worker/domain/entity_new ← NEW 엔티티들 (package com.worker.domain.entity;) + */ +def schema = (project.findProperty("cpSchema") ?: "old") // 'old' | 'new' +def isNew = schema == "new" + +sourceSets { + main { + java { + // 공통 코드 + setSrcDirs(["src/main/java", "src/schemas"]) + if (isNew) { + // old제외 + exclude "com/worker/domain/entity/**" + exclude "com/worker/domain/repo/**" + } else { + // new제외 + exclude "com/worker/domain/entity_new/**" + exclude "com/worker/domain/repo_new/**" + } + } + resources { + setSrcDirs(["src/main/resources"]) + } + } +} + +apply plugin: 'idea' + +//idea { +// module { +// // Gradle 컴파일은 이미 old만 포함이지만, +// // IDE가 엔티티 경로를 소스 루트로 잡지 않게 명시적으로 제외 +// excludeDirs += file('src/schemas/com/worker/domain/entity_new') +// excludeDirs += file('src/schemas/com/worker/domain/repo_new') +//// excludeDirs += file('src/schemas/com/worker/domain/entity') +//// excludeDirs += file('src/schemas/com/worker/domain/repo') +// +// // (선택) 아예 IDE 소스루트를 old로만 제한하고 싶다면 아래처럼 지정도 가능 +// // sourceDirs = [ +// // file('src/main/java'), +// // file('src/schemas/com/worker/domain/entity'), +// // file('src/schemas/com/worker/domain/repo') +// // ] as Set +// } +//} + + +/** + * ====== 의존성 ====== + * (중복/불필요 항목 정리) + */ dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-quartz' @@ -32,44 +91,45 @@ dependencies { implementation 'org.springframework.session:spring-session-core' compileOnly 'org.projectlombok:lombok' + annotationProcessor 'org.projectlombok:lombok' + developmentOnly 'org.springframework.boot:spring-boot-devtools' + + // DB 드라이버 (필요한 것만 남기세요) runtimeOnly 'com.mysql:mysql-connector-j' - runtimeOnly 'com.oracle.database.jdbc:ojdbc11' runtimeOnly 'org.mariadb.jdbc:mariadb-java-client' - annotationProcessor 'org.projectlombok:lombok' + runtimeOnly 'com.oracle.database.jdbc:ojdbc11' + testImplementation 'org.springframework.boot:spring-boot-starter-test' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' - - - - // === QueryDsl start === - - // == 스프링 부트 3.0 이상 == + // === QueryDSL (Spring Boot 3.x / Jakarta) === implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta' - annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta" - annotationProcessor "jakarta.annotation:jakarta.annotation-api" - annotationProcessor "jakarta.persistence:jakarta.persistence-api" - - compileOnly 'org.projectlombok:lombok' - annotationProcessor 'org.projectlombok:lombok' - runtimeOnly 'com.mysql:mysql-connector-j' - - // == 스프링 부트 3.0 미만 == -// implementation 'com.querydsl:querydsl-jpa' -// annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jpa" -// -// annotationProcessor "jakarta.annotation:jakarta.annotation-api" -// annotationProcessor "jakarta.persistence:jakarta.persistence-api" - - // === QueryDsl end === + annotationProcessor 'com.querydsl:querydsl-apt:5.0.0:jakarta' + annotationProcessor 'jakarta.annotation:jakarta.annotation-api' + annotationProcessor 'jakarta.persistence:jakarta.persistence-api' // sftp implementation 'com.jcraft:jsch:0.1.55' - - } tasks.named('test') { useJUnitPlatform() } + +/** + * ====== QueryDSL 생성 경로 설정 및 포함 ====== + * Q클래스는 여기에 생성됨: + * build/generated/sources/annotationProcessor/java/main + * 소스셋에 포함시켜 IDE/컴파일러가 인식하도록 추가. + */ +tasks.withType(JavaCompile).configureEach { + options.annotationProcessorGeneratedSourcesDirectory = file("$buildDir/generated/sources/annotationProcessor/java/main") +} + +sourceSets.main.java.srcDir("$buildDir/generated/sources/annotationProcessor/java/main") + +// clean 시 생성된 Q소스도 함께 정리 +tasks.clean.doFirst { + delete("$buildDir/generated/sources/annotationProcessor/java/main") +} diff --git a/src/main/java/com/worker/scheduler/epost/dto/EPostDto.java b/src/main/java/com/worker/scheduler/epost/dto/EPostDto.java index 5075650..da8b014 100644 --- a/src/main/java/com/worker/scheduler/epost/dto/EPostDto.java +++ b/src/main/java/com/worker/scheduler/epost/dto/EPostDto.java @@ -1,11 +1,9 @@ package com.worker.scheduler.epost.dto; import com.worker.domain.entity.CpSetinfo; -import jakarta.persistence.Column; import lombok.*; import java.util.List; -import java.util.Optional; public class EPostDto { diff --git a/src/main/java/com/worker/scheduler/epost/repository/EPostQueryDslRepository.java b/src/main/java/com/worker/scheduler/epost/repository/EPostQueryDslRepository.java index 826c6da..b815c67 100644 --- a/src/main/java/com/worker/scheduler/epost/repository/EPostQueryDslRepository.java +++ b/src/main/java/com/worker/scheduler/epost/repository/EPostQueryDslRepository.java @@ -1,7 +1,6 @@ package com.worker.scheduler.epost.repository; import com.querydsl.core.types.Projections; -import com.querydsl.core.types.dsl.Expressions; import com.querydsl.jpa.impl.JPAQueryFactory; import com.worker.domain.entity.CpGojiSendHist; import com.worker.domain.entity.EpostRgstNmbr; @@ -11,20 +10,13 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Repository; import java.util.*; -import java.util.function.Function; -import java.util.stream.Collectors; import static com.worker.domain.entity.QCpGojiPrt.cpGojiPrt; import static com.worker.domain.entity.QCpGojiSendHist.cpGojiSendHist; import static com.worker.domain.entity.QCpGojit.cpGojit; -import static com.worker.domain.entity.QCpInstruct.cpInstruct; -import static com.worker.domain.entity.QCpInstructAnswer.cpInstructAnswer; import static com.worker.domain.entity.QEpostDelivResult.epostDelivResult; -import static com.worker.domain.entity.QEpostRgstNmbr.epostRgstNmbr; import static com.worker.domain.entity.QEpostSenderDetail.epostSenderDetail; import static com.worker.domain.entity.QEpostSenderReg.epostSenderReg; -import static com.worker.domain.entity.QTbCntcSndngDetail.tbCntcSndngDetail; -import static com.worker.domain.entity.QTbCntcSndngResult.tbCntcSndngResult; @Slf4j diff --git a/src/main/java/com/worker/scheduler/epost/service/EPostSendService.java b/src/main/java/com/worker/scheduler/epost/service/EPostSendService.java index 15b7dbd..08391d2 100644 --- a/src/main/java/com/worker/scheduler/epost/service/EPostSendService.java +++ b/src/main/java/com/worker/scheduler/epost/service/EPostSendService.java @@ -1,14 +1,10 @@ package com.worker.scheduler.epost.service; import com.querydsl.jpa.impl.JPAQueryFactory; -import com.worker.domain.entity.CpGojiPrt; -import com.worker.domain.entity.CpSetinfo; import com.worker.domain.entity.EpostRgstNmbr; -import com.worker.domain.entity.EpostSenderDetail; import com.worker.domain.repo.cp.CpEPostRgstNmbr; import com.worker.domain.repo.ep.EpEPostRgstNmbr; import com.worker.scheduler.epost.dto.EPostDto; -import com.worker.scheduler.epost.repository.EPostQueryDslRepository; import com.worker.scheduler.epost.repository.EPostSendQueryDslRepository; import com.worker.util.common.CommonUtils; import com.worker.util.textFileMacker.TextMaker; diff --git a/src/main/java/com/worker/scheduler/epost/service/EPostService.java b/src/main/java/com/worker/scheduler/epost/service/EPostService.java index 12aaef2..1f43fe1 100644 --- a/src/main/java/com/worker/scheduler/epost/service/EPostService.java +++ b/src/main/java/com/worker/scheduler/epost/service/EPostService.java @@ -1,22 +1,18 @@ package com.worker.scheduler.epost.service; +import com.worker.domain.entity.*; + import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.querydsl.jpa.impl.JPAQueryFactory; -import com.worker.domain.entity.*; import com.worker.domain.repo.cp.*; import com.worker.domain.repo.ep.*; import com.worker.scheduler.epost.dto.EPostDto; import com.worker.scheduler.epost.repository.EPostQueryDslRepository; -import com.worker.util.common.CommonUtils; -import com.worker.util.textFileMacker.TextMaker; -import com.worker.util.zipFileMaker.ZipMaker; -import jakarta.transaction.Transactional; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.core.env.Environment; import org.springframework.stereotype.Service; import java.time.LocalDateTime; diff --git a/src/main/java/com/worker/scheduler/smg/dto/SinmungoDto.java b/src/main/java/com/worker/scheduler/smg/dto/SinmungoDto.java index b64deca..79f1559 100644 --- a/src/main/java/com/worker/scheduler/smg/dto/SinmungoDto.java +++ b/src/main/java/com/worker/scheduler/smg/dto/SinmungoDto.java @@ -1,6 +1,7 @@ package com.worker.scheduler.smg.dto; import com.worker.domain.entity.*; + import jakarta.persistence.Lob; import lombok.*; diff --git a/src/main/java/com/worker/scheduler/smg/service/DbPolling.java b/src/main/java/com/worker/scheduler/smg/service/DbPolling.java index 3e76d2d..325d0aa 100644 --- a/src/main/java/com/worker/scheduler/smg/service/DbPolling.java +++ b/src/main/java/com/worker/scheduler/smg/service/DbPolling.java @@ -1,6 +1,6 @@ package com.worker.scheduler.smg.service; - import com.worker.domain.entity.*; + import com.worker.domain.repo.cp.*; import com.worker.domain.repo.ep.*; import com.worker.scheduler.smg.dto.SinmungoDto; diff --git a/src/main/java/com/worker/scheduler/tax/dto/TaxSunapDto.java b/src/main/java/com/worker/scheduler/tax/dto/TaxSunapDto.java index 76db586..f61f45a 100644 --- a/src/main/java/com/worker/scheduler/tax/dto/TaxSunapDto.java +++ b/src/main/java/com/worker/scheduler/tax/dto/TaxSunapDto.java @@ -3,8 +3,6 @@ package com.worker.scheduler.tax.dto; import com.worker.domain.entity.CpSetinfo; import lombok.*; -import java.util.List; - public class TaxSunapDto { diff --git a/src/main/java/com/worker/scheduler/tax/schedule/TaxSunapScheduler.java b/src/main/java/com/worker/scheduler/tax/schedule/TaxSunapScheduler.java index 0b52cd0..bc52a4d 100644 --- a/src/main/java/com/worker/scheduler/tax/schedule/TaxSunapScheduler.java +++ b/src/main/java/com/worker/scheduler/tax/schedule/TaxSunapScheduler.java @@ -6,11 +6,9 @@ import com.worker.scheduler.tax.dto.TaxSunapDto; import com.worker.scheduler.tax.service.TaxSunapService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.core.env.Environment; import org.springframework.http.MediaType; -import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import org.springframework.web.reactive.function.client.WebClient; import reactor.core.publisher.Mono; diff --git a/src/main/java/com/worker/scheduler/tax/service/TaxSunapService.java b/src/main/java/com/worker/scheduler/tax/service/TaxSunapService.java index cffb4da..badb520 100644 --- a/src/main/java/com/worker/scheduler/tax/service/TaxSunapService.java +++ b/src/main/java/com/worker/scheduler/tax/service/TaxSunapService.java @@ -13,7 +13,6 @@ import org.springframework.stereotype.Service; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.List; -import java.util.Optional; import java.util.UUID; @Service diff --git a/src/main/java/com/worker/domain/entity/CpAnswer.java b/src/schemas/com/worker/domain/entity/CpAnswer.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpAnswer.java rename to src/schemas/com/worker/domain/entity/CpAnswer.java diff --git a/src/main/java/com/worker/domain/entity/CpBdong.java b/src/schemas/com/worker/domain/entity/CpBdong.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpBdong.java rename to src/schemas/com/worker/domain/entity/CpBdong.java diff --git a/src/main/java/com/worker/domain/entity/CpCancel.java b/src/schemas/com/worker/domain/entity/CpCancel.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpCancel.java rename to src/schemas/com/worker/domain/entity/CpCancel.java diff --git a/src/main/java/com/worker/domain/entity/CpGojiPrt.java b/src/schemas/com/worker/domain/entity/CpGojiPrt.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpGojiPrt.java rename to src/schemas/com/worker/domain/entity/CpGojiPrt.java diff --git a/src/main/java/com/worker/domain/entity/CpGojiSendHist.java b/src/schemas/com/worker/domain/entity/CpGojiSendHist.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpGojiSendHist.java rename to src/schemas/com/worker/domain/entity/CpGojiSendHist.java diff --git a/src/main/java/com/worker/domain/entity/CpGojit.java b/src/schemas/com/worker/domain/entity/CpGojit.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpGojit.java rename to src/schemas/com/worker/domain/entity/CpGojit.java diff --git a/src/main/java/com/worker/domain/entity/CpImagesize.java b/src/schemas/com/worker/domain/entity/CpImagesize.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpImagesize.java rename to src/schemas/com/worker/domain/entity/CpImagesize.java diff --git a/src/main/java/com/worker/domain/entity/CpInstruct.java b/src/schemas/com/worker/domain/entity/CpInstruct.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpInstruct.java rename to src/schemas/com/worker/domain/entity/CpInstruct.java diff --git a/src/main/java/com/worker/domain/entity/CpInstructAnswer.java b/src/schemas/com/worker/domain/entity/CpInstructAnswer.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpInstructAnswer.java rename to src/schemas/com/worker/domain/entity/CpInstructAnswer.java diff --git a/src/main/java/com/worker/domain/entity/CpInstructAnswerId.java b/src/schemas/com/worker/domain/entity/CpInstructAnswerId.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpInstructAnswerId.java rename to src/schemas/com/worker/domain/entity/CpInstructAnswerId.java diff --git a/src/main/java/com/worker/domain/entity/CpMain.java b/src/schemas/com/worker/domain/entity/CpMain.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpMain.java rename to src/schemas/com/worker/domain/entity/CpMain.java diff --git a/src/main/java/com/worker/domain/entity/CpMainEtc1.java b/src/schemas/com/worker/domain/entity/CpMainEtc1.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpMainEtc1.java rename to src/schemas/com/worker/domain/entity/CpMainEtc1.java diff --git a/src/main/java/com/worker/domain/entity/CpMatch.java b/src/schemas/com/worker/domain/entity/CpMatch.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpMatch.java rename to src/schemas/com/worker/domain/entity/CpMatch.java diff --git a/src/main/java/com/worker/domain/entity/CpSetinfo.java b/src/schemas/com/worker/domain/entity/CpSetinfo.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpSetinfo.java rename to src/schemas/com/worker/domain/entity/CpSetinfo.java diff --git a/src/main/java/com/worker/domain/entity/CpSetinfoId.java b/src/schemas/com/worker/domain/entity/CpSetinfoId.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpSetinfoId.java rename to src/schemas/com/worker/domain/entity/CpSetinfoId.java diff --git a/src/main/java/com/worker/domain/entity/CpSgg.java b/src/schemas/com/worker/domain/entity/CpSgg.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpSgg.java rename to src/schemas/com/worker/domain/entity/CpSgg.java diff --git a/src/main/java/com/worker/domain/entity/CpUser.java b/src/schemas/com/worker/domain/entity/CpUser.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpUser.java rename to src/schemas/com/worker/domain/entity/CpUser.java diff --git a/src/main/java/com/worker/domain/entity/CpViolation.java b/src/schemas/com/worker/domain/entity/CpViolation.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpViolation.java rename to src/schemas/com/worker/domain/entity/CpViolation.java diff --git a/src/main/java/com/worker/domain/entity/CpViolationId.java b/src/schemas/com/worker/domain/entity/CpViolationId.java similarity index 100% rename from src/main/java/com/worker/domain/entity/CpViolationId.java rename to src/schemas/com/worker/domain/entity/CpViolationId.java diff --git a/src/main/java/com/worker/domain/entity/EpostDelivResult.java b/src/schemas/com/worker/domain/entity/EpostDelivResult.java similarity index 100% rename from src/main/java/com/worker/domain/entity/EpostDelivResult.java rename to src/schemas/com/worker/domain/entity/EpostDelivResult.java diff --git a/src/main/java/com/worker/domain/entity/EpostMakeResult.java b/src/schemas/com/worker/domain/entity/EpostMakeResult.java similarity index 100% rename from src/main/java/com/worker/domain/entity/EpostMakeResult.java rename to src/schemas/com/worker/domain/entity/EpostMakeResult.java diff --git a/src/main/java/com/worker/domain/entity/EpostMakeResultId.java b/src/schemas/com/worker/domain/entity/EpostMakeResultId.java similarity index 100% rename from src/main/java/com/worker/domain/entity/EpostMakeResultId.java rename to src/schemas/com/worker/domain/entity/EpostMakeResultId.java diff --git a/src/main/java/com/worker/domain/entity/EpostRceptResult.java b/src/schemas/com/worker/domain/entity/EpostRceptResult.java similarity index 100% rename from src/main/java/com/worker/domain/entity/EpostRceptResult.java rename to src/schemas/com/worker/domain/entity/EpostRceptResult.java diff --git a/src/main/java/com/worker/domain/entity/EpostRgstNmbr.java b/src/schemas/com/worker/domain/entity/EpostRgstNmbr.java similarity index 100% rename from src/main/java/com/worker/domain/entity/EpostRgstNmbr.java rename to src/schemas/com/worker/domain/entity/EpostRgstNmbr.java diff --git a/src/main/java/com/worker/domain/entity/EpostSenderDetail.java b/src/schemas/com/worker/domain/entity/EpostSenderDetail.java similarity index 100% rename from src/main/java/com/worker/domain/entity/EpostSenderDetail.java rename to src/schemas/com/worker/domain/entity/EpostSenderDetail.java diff --git a/src/main/java/com/worker/domain/entity/EpostSenderDetailId.java b/src/schemas/com/worker/domain/entity/EpostSenderDetailId.java similarity index 100% rename from src/main/java/com/worker/domain/entity/EpostSenderDetailId.java rename to src/schemas/com/worker/domain/entity/EpostSenderDetailId.java diff --git a/src/main/java/com/worker/domain/entity/EpostSenderReg.java b/src/schemas/com/worker/domain/entity/EpostSenderReg.java similarity index 100% rename from src/main/java/com/worker/domain/entity/EpostSenderReg.java rename to src/schemas/com/worker/domain/entity/EpostSenderReg.java diff --git a/src/main/java/com/worker/domain/entity/TbCntcSndngDetail.java b/src/schemas/com/worker/domain/entity/TbCntcSndngDetail.java similarity index 100% rename from src/main/java/com/worker/domain/entity/TbCntcSndngDetail.java rename to src/schemas/com/worker/domain/entity/TbCntcSndngDetail.java diff --git a/src/main/java/com/worker/domain/entity/TbCntcSndngResult.java b/src/schemas/com/worker/domain/entity/TbCntcSndngResult.java similarity index 100% rename from src/main/java/com/worker/domain/entity/TbCntcSndngResult.java rename to src/schemas/com/worker/domain/entity/TbCntcSndngResult.java diff --git a/src/main/java/com/worker/domain/entity/TbCntcSndngResultId.java b/src/schemas/com/worker/domain/entity/TbCntcSndngResultId.java similarity index 100% rename from src/main/java/com/worker/domain/entity/TbCntcSndngResultId.java rename to src/schemas/com/worker/domain/entity/TbCntcSndngResultId.java diff --git a/src/schemas/com/worker/domain/entity_new/CpAnswer.java b/src/schemas/com/worker/domain/entity_new/CpAnswer.java new file mode 100644 index 0000000..9081d1e --- /dev/null +++ b/src/schemas/com/worker/domain/entity_new/CpAnswer.java @@ -0,0 +1,117 @@ +package com.worker.domain.entity; + +import jakarta.persistence.*; +import lombok.*; +import org.hibernate.annotations.Comment; + +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; + +@Entity +@Table(name = "tb_answer") +@Getter +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class CpAnswer { + + @Id + @Column(name = "crdn_id", length = 16) + @Comment("단속 ID") + private String asMmcode; + + @Column(name = "sgg_cd", length = 5) + @Comment("시군구코드") + private String asSggcode; + + @Column(name = "rcpt_se", length = 3) + @Comment("접수구분") + private String asIngb; + + @Column(name = "rcpt_ymd", length = 8) + @Comment("접수일자") + private String asJsdate; + + @Column(name = "cvlcpt_rcpt_no", length = 30) + @Comment("민원 접수 번호") + private String asJsno; + + @Column(name = "ans_rcpt_no", length = 30) + @Comment("답변 접수 번호") + private String asJsnoM; + + @Column(name = "list_no", length = 15) + @Comment("목록번호") + private String asBbsNo; + + @Column(name = "ans_exply_ymd", length = 16) + @Comment("답변만료일자") + private String asLimitDt; + + @Column(name = "dcl", length = 50) + @Comment("신고자") + private String asUser; + + @Column(name = "cnpl", length = 20) + @Comment("연락처") + private String asTel; + + @Column(name = "mobl_no", length = 20) + @Comment("모바일 번호") + private String asCell; + + @Column(name = "eml", length = 50) + @Comment("이메일") + private String asEmail; + + @Column(name = "prcs_stts", length = 1) + @Comment("처리상태") + private String asState; + + @Column(name = "ans_se", length = 1) + @Comment("답변구분") + private String asPostCd; + + @Column(name = "ans_ymd", length = 14) + @Comment("답변일자") + private String asPostDt; + + @Column(name = "mdfcn_dt", length = 14) + @Comment("수정일시") + private String asStateDt; + + @Column(name = "ans_cn", length = 1000) + @Comment("답변내용") + private String asText; + + @Column(name = "prcs_chpr", length = 5) + @Comment("처리 담당자") + private Integer asReuser; + + @Column(name = "prk_vltn_se", length = 1) + @Comment("주차 침해 구분") + private String asInline; + + @Column(name = "systm_code", length = 8) + @Comment("신고 시스템 코드") + private String asSysGubunC; + + @Column(name = "trnp_clm_cd", length = 7) + @Comment("전파항목코드") + private String asPetiAncCodeV; + + @Column(name = "dclr_data_cd", length = 30) + @Comment("신고자료코드") + private String asPetiNoC; + + + public void changeState(String newState) { + this.asState = newState; + } + + public void changePostDtNow() { + DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMddHHmmss"); + this.asPostDt = LocalDateTime.now().format(dtf); + } + +} diff --git a/src/schemas/com/worker/domain/entity_new/CpBdong.java b/src/schemas/com/worker/domain/entity_new/CpBdong.java new file mode 100644 index 0000000..d6b1abc --- /dev/null +++ b/src/schemas/com/worker/domain/entity_new/CpBdong.java @@ -0,0 +1,28 @@ +package com.worker.domain.entity; + +import jakarta.persistence.*; +import lombok.Getter; +import org.hibernate.annotations.Comment; + +@Entity +@Table(name = "tb_stdg") +@Getter +public class CpBdong { + + @Id + @Column(name = "stdg_cd", length = 10) + @Comment("법정동코드") + private String bdCode; + + @Column(name = "sggnm", length = 40) + @Comment("시군구명") + private String bdSggname; + + @Column(name = "stdgnm", length = 40) + @Comment("법정동명") + private String bdDongname; + + @Column(name = "use_yn", length = 1) + @Comment("사용여부") + private String bdEnable; +} diff --git a/src/schemas/com/worker/domain/entity_new/CpCancel.java b/src/schemas/com/worker/domain/entity_new/CpCancel.java new file mode 100644 index 0000000..f1e8fd3 --- /dev/null +++ b/src/schemas/com/worker/domain/entity_new/CpCancel.java @@ -0,0 +1,50 @@ +package com.worker.domain.entity; + +import jakarta.persistence.*; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.Comment; + +@Entity +@Table(name = "tb_nrcg") +@Getter +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class CpCancel { + + @Id + @Column(name = "nrcg_id") + @Comment("불인정 ID") + private Long ccCode; + + @Column(name = "sggcd", length = 5) + @Comment("시군구코드") + private String ccSggcode; + + @Column(name = "crdn_id", length = 16) + @Comment("단속 ID") + private String ccMmcode; + + @Column(name = "nrcg_ymd", length = 8) + @Comment("불인정일자") + private String ccDate; + + @Column(name = "nrcg_rsn", length = 3) + @Comment("불인정사유") + private String ccCause; + + @Column(name = "excptnmttr", length = 100) + @Comment("특이사항") + private String ccEtc; + + @Column(name = "nrcg_dt", length = 14) + @Comment("불인정일시") + private String ccIndt; + + @Column(name = "prcs_pic") + @Comment("처리 담당자") + private Integer ccInuser; +} diff --git a/src/schemas/com/worker/domain/entity_new/CpGojiPrt.java b/src/schemas/com/worker/domain/entity_new/CpGojiPrt.java new file mode 100644 index 0000000..9977778 --- /dev/null +++ b/src/schemas/com/worker/domain/entity_new/CpGojiPrt.java @@ -0,0 +1,267 @@ +package com.worker.domain.entity; + +import jakarta.persistence.*; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.Comment; + +@Entity +@Getter +@NoArgsConstructor +@AllArgsConstructor +@Builder +@Table(name = "tb_infrm_dtl") +public class CpGojiPrt { + + @Id + @Column(name = "INFRMDTL_ID") + @Comment("고지상세 ID") + private Long gpCode; + + @Column(name = "VLTNCN_CD", length = 2) + @Comment("위반내용 코드") + private String gpLawgb; + + @Column(name = "SNDNG_SE", length = 1) + @Comment("발송구분") + private String gpPrtgb; + + @Column(name = "INFRMLIST_ID") + @Comment("고지목록 ID") + private Long gpTtcode; + + @Column(name = "SVBTC_ID") + @Comment("공시송달 ID") + private Long gpGtcode; + + @Column(name = "SGG_CD", length = 5) + @Comment("시군구코드") + private String gpSggcode; + + @Column(name = "CRDN_ID", length = 16) + @Comment("단속 ID") + private String gpMmcode; + + @Column(name = "VHRNO", length = 100) + @Comment("자동차등록번호") + private String gpMmCarno; + + @Column(name = "VLTN_DT", length = 30) + @Comment("위반일시") + private String gpMmWdatetime; + + @Column(name = "VLTN_PLC", length = 200) + @Comment("위반장소") + private String gpMmSgpos; + + @Column(name = "LEVY_CD", length = 11) + @Comment("부과코드") + private String gpLvyKey; + + @Column(name = "ACNTG_YR", length = 6) + @Comment("회계년도") + private String gpAccYear; + + @Column(name = "LEVY_NO", length = 6) + @Comment("부과번호") + private String gpLvyNo; + + @Column(name = "EPAYNO", length = 19) + @Comment("전자납부번호") + private String gpErcNo; + + @Column(name = "LEVY_YMD", length = 8) + @Comment("부과일자") + private String gpSdate; + + @Column(name = "DUDT_YMD", length = 8) + @Comment("납기일자") + private String gpEdate; + + @Column(name = "MNTX") + @Comment("본세") + private Integer gpKeumT; + + @Column(name = "ADDTX") + @Comment("가산세") + private Integer gpKeumA; + + @Column(name = "GRAMT") + @Comment("총금액") + private Integer gpKeumB; + + @Column(name = "TXPR", length = 100) + @Comment("납세자") + private String gpName; + + @Column(name = "RRNO", length = 100) + @Comment("주민등록번호") + private String gpJno; + + @Column(name = "ADDR", length = 100) + @Comment("주소") + private String gpJuso; + + @Column(name = "DTL_ADDR", length = 100) + @Comment("상세주소") + private String gpBunji; + + @Column(name = "ZIP", length = 6) + @Comment("우편번호") + private String gpZip; + + @Column(name = "RGNO", length = 15) + @Comment("등기번호") + private String gpRegistNo; + + @Column(name = "SNDNG_YMD", length = 8) + @Comment("발송일자") + private String gpSendDate; + + @Column(name = "SNDNG_HR", length = 8) + @Comment("발송시간") + private String gpSendTime; + + @Column(name = "SNDBK_RSN", length = 100) + @Comment("반송사유") + private String gpReturnCd; + + @Column(name = "ADDRSE_NM", length = 30) + @Comment("수취인명") + private String gpRecvName; + + @Column(name = "ADDRSE_REL", length = 30) + @Comment("수취인 관계") + private String gpRecvRelt; + + @Column(name = "DATA_STTS", length = 1) + @Comment("자료 상태") + private String gpState; + + @Column(name = "BFR_DATA_STTS", length = 1) + @Comment("이전 자료 상태") + private String gpStateOld; + + @Column(name = "BFR_SNDNG_YMD", length = 8) + @Comment("이전 발송일자") + private String gpSendDateOld; + + @Column(name = "BFR_SNDNG_HR", length = 8) + @Comment("이전 발송시간") + private String gpSendTimeOld; + + @Column(name = "RCVMT_YN", length = 1) + @Comment("수납여부") + private String gpSunap; + + @Column(name = "UPDT_YN", length = 1) + @Comment("갱신 여부") + private String gpAddrUpdate; + + @Column(name = "FRST_MNTX", length = 7) + @Comment("최초본세") + private String gpKeum; + + @Column(name = "MAIL_LINK_CD", length = 30) + @Comment("우편 연계 코드") + private String gpConKey; + + @Column(name = "VRACTNO_1", length = 20) + @Comment("가상계좌번호 1") + private String gpAccountNo1; + + @Column(name = "VRACTNO_2", length = 20) + @Comment("가상계좌번호 2") + private String gpAccountNo2; + + @Column(name = "VRACTNO_3", length = 20) + @Comment("가상계좌번호 3") + private String gpAccountNo3; + + @Column(name = "VRACTNO_4", length = 20) + @Comment("가상계좌번호 4") + private String gpAccountNo4; + + @Column(name = "VRACTNO_5", length = 20) + @Comment("가상계좌번호 5") + private String gpAccountNo5; + + @Column(name = "VRACTNO_6", length = 20) + @Comment("가상계좌번호 6") + private String gpAccountNo6; + + @Column(name = "VRACTNO_7", length = 20) + @Comment("가상계좌번호 7") + private String gpAccountNo7; + + @Column(name = "VRACTNO_8", length = 20) + @Comment("가상계좌번호 8") + private String gpAccountNo8; + + @Column(name = "VRACTNO_9", length = 20) + @Comment("가상계좌번호 9") + private String gpAccountNo9; + + @Column(name = "VRACTNO_10", length = 20) + @Comment("가상계좌번호 10") + private String gpAccountNo10; + + @Column(name = "VRACTNO_11", length = 20) + @Comment("가상계좌번호 11") + private String gpAccountNo11; + + @Column(name = "BANKNM_1", length = 20) + @Comment("은행명1") + private String gpBankNm1; + + @Column(name = "BANKNM_2", length = 20) + @Comment("은행명2") + private String gpBankNm2; + + @Column(name = "BANKNM_3", length = 20) + @Comment("은행명3") + private String gpBankNm3; + + @Column(name = "BANKNM_4", length = 20) + @Comment("은행명4") + private String gpBankNm4; + + @Column(name = "BANKNM_5", length = 20) + @Comment("은행명5") + private String gpBankNm5; + + @Column(name = "BANKNM_6", length = 20) + @Comment("은행명6") + private String gpBankNm6; + + @Column(name = "BANKNM_7", length = 20) + @Comment("은행명7") + private String gpBankNm7; + + @Column(name = "BANKNM_8", length = 20) + @Comment("은행명8") + private String gpBankNm8; + + @Column(name = "BANKNM_9", length = 20) + @Comment("은행명9") + private String gpBankNm9; + + @Column(name = "BANKNM_10", length = 20) + @Comment("은행명10") + private String gpBankNm10; + + @Column(name = "BANKNM_11", length = 20) + @Comment("은행명11") + private String gpBankNm11; + + @Column(name = "TXTN_NO", length = 40) + @Comment("과세번호") + private String gpTaxno; + + + public void changeGpSunapAfterSunap() { + this.gpSunap = "1"; + } +} diff --git a/src/schemas/com/worker/domain/entity_new/CpGojiSendHist.java b/src/schemas/com/worker/domain/entity_new/CpGojiSendHist.java new file mode 100644 index 0000000..46c0d88 --- /dev/null +++ b/src/schemas/com/worker/domain/entity_new/CpGojiSendHist.java @@ -0,0 +1,70 @@ +package com.worker.domain.entity; + +import jakarta.persistence.*; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.Comment; + +@Entity +@Table(name = "tb_infrm_sndng_rcd") +@Getter +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class CpGojiSendHist { + + @Id + @Column(name = "INFRMSNDNGRCD_ID", length = 18) + @Comment("고지발송기록 ID") + private String ghCode; + + @Column(name = "INFRMDTL_ID") + @Comment("고지상세 ID") + private Integer ghGpcode; + + @Column(name = "SGG_CD", length = 5) + @Comment("시군구 코드") + private String ghSggcode; + + @Column(name = "MAIL_LINK_CD", length = 30) + @Comment("우편 연계 코드") + private String ghConKey; + + @Column(name = "RG_NO", length = 13) + @Comment("등기번호") + private String ghRegino; + + @Column(name = "SNDNG_YMD", length = 8) + @Comment("발송일자") + private String ghSendDate; + + @Column(name = "SNDNG_HR", length = 4) + @Comment("발송시간") + private String ghSendTime; + + @Column(name = "SNDBK_SE", length = 100) + @Comment("반송구분") + private String ghReturnCdStr; + + @Column(name = "ADDRSE_NM", length = 70) + @Comment("수취인명") + private String ghRecvName; + + @Column(name = "ADDRSE_REL", length = 100) + @Comment("수취인 관계") + private String ghRecvRelt; + + @Column(name = "DLVR_RSLT_CD", length = 2) + @Comment("배달 결과 코드") + private String ghResultCd; + + @Column(name = "UNDLVR_RSN_CD", length = 2) + @Comment("미배달사유코드") + private String ghReturnCd; + + @Column(name = "RCPN_REL_CD", length = 2) + @Comment("수령인관계코드") + private String ghRecvReltCd; +} diff --git a/src/schemas/com/worker/domain/entity_new/CpGojit.java b/src/schemas/com/worker/domain/entity_new/CpGojit.java new file mode 100644 index 0000000..19c023f --- /dev/null +++ b/src/schemas/com/worker/domain/entity_new/CpGojit.java @@ -0,0 +1,110 @@ +package com.worker.domain.entity; + +import jakarta.persistence.*; +import lombok.*; +import org.hibernate.annotations.Comment; + +@Getter +@NoArgsConstructor +@AllArgsConstructor +@Builder +@Entity +@Table(name = "cp_gojit") +public class CpGojit { + + @Id + @Column(name = "INFRMLIST_ID") + @Comment("고지목록 ID") + private Long tgCode; + + @Column(name = "SGG_CD", length = 5) + @Comment("시군구 코드") + private String tgSggcode; + + @Column(name = "VLTNCN_CD", length = 2) + @Comment("위반내용 코드") + private String tgLawgb; + + @Column(name = "INFRM_SE", length = 1) + @Comment("고지 구분") + private String tgGb; + + @Column(name = "REG_SE", length = 1) + @Comment("등록 구분") + private String tgDlgb; + + @Column(name = "LEVY_EXTR_YMD", length = 8) + @Comment("부과 추출 일자") + private String tgSrcSdate; + + @Column(name = "DUDT_EXTR_YMD", length = 8) + @Comment("납기 추출 일자") + private String tgSrcEdate; + + @Column(name = "LEVY_YMD", length = 8) + @Comment("부과 일자") + private String tgSdate; + + @Column(name = "DUDT_YMD", length = 8) + @Comment("납기 일자") + private String tgEdate; + + @Column(name = "TTL", length = 100) + @Comment("제목") + private String tgTitle; + + @Column(name = "OFDOC_NO", length = 40) + @Comment("공문 번호") + private String tgDocno; + + @Column(name = "EXCPTNMTTR", length = 100) + @Comment("특이사항") + private String tgEtc; + + @Column(name = "LEVY_NOCS") + @Comment("부과 건수") + private Integer tgTotcount; + + @Column(name = "GRAMT") + @Comment("총금액") + private Long tgTotkeum; + + @Column(name = "REG_DT", length = 14) + @Comment("등록 일시") + private String tgIndt; + + @Column(name = "REG_PIC") + @Comment("등록 담당자") + private Integer tgInuser; + + @Column(name = "MAIL_LINK_CD", length = 30) + @Comment("우편 연계 코드") + private String tgConKey; + + @Column(name = "SNDNG_SE", length = 3) + @Comment("발송 구분") + private String tgPostSeCd; + + @Column(name = "SNDBK_YN", length = 1) + @Comment("반송 여부") + private String tgIsResend; + + @Column(name = "GD_PHRS_CD", length = 13) + @Comment("안내 문구 코드") + private String tgNoticeKey; + + @Column(name = "TRSM_TRGT", length = 2) + @Comment("전송 대상") + private String tgPostProcStt; + + + + public void changeTgPostProcStt(String tgPostProcStt) { + this.tgPostProcStt = tgPostProcStt; + } + + public void changeTgCode(Long tgCode) { + this.tgCode = tgCode; + } + +} diff --git a/src/schemas/com/worker/domain/entity_new/CpImagesize.java b/src/schemas/com/worker/domain/entity_new/CpImagesize.java new file mode 100644 index 0000000..21d1507 --- /dev/null +++ b/src/schemas/com/worker/domain/entity_new/CpImagesize.java @@ -0,0 +1,57 @@ +package com.worker.domain.entity; + +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.Comment; + +@Entity +@Table(name = "cp_imagesize") +@Getter +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class CpImagesize { + + @Id + @Column(name = "CRDN_ID", length = 16) + @Comment("단속 ID") + private String isMmcode; + + @Column(name = "IMG_SZ_1") + @Comment("이미지크기1") + private Integer isImage1; + + @Column(name = "IMG_SZ_2") + @Comment("이미지크기2") + private Integer isImage2; + + @Column(name = "IMG_SZ_3") + @Comment("이미지크기3") + private Integer isImage3; + + @Column(name = "IMG_SZ_4") + @Comment("이미지크기4") + private Integer isImage4; + + @Column(name = "VDO_SZ") + @Comment("동영상크기") + private Integer isVideo; + + @Column(name = "OPNNSTTMT_IMG_SZ_1") + @Comment("의견진술이미지크기1") + private Integer isRecall1; + + @Column(name = "OPNNSTTMT_IMG_SZ_2") + @Comment("의견진술이미지크기2") + private Integer isRecall2; + + @Column(name = "OPNNSTTMT_IMG_SZ_3") + @Comment("의견진술이미지크기3") + private Integer isRecall3; +} diff --git a/src/schemas/com/worker/domain/entity_new/CpInstruct.java b/src/schemas/com/worker/domain/entity_new/CpInstruct.java new file mode 100644 index 0000000..a2d0abf --- /dev/null +++ b/src/schemas/com/worker/domain/entity_new/CpInstruct.java @@ -0,0 +1,50 @@ +package com.worker.domain.entity; + +import jakarta.persistence.*; +import lombok.*; +import org.hibernate.annotations.Comment; + + +@Entity +@Table(name = "tb_bfhd_oper") +@Getter +@NoArgsConstructor +@AllArgsConstructor +@Builder +@ToString +public class CpInstruct { + + @Id + @Column(name = "BFHDOPER_ID") + @Comment("사전운영 ID") + private Long itCode; + + @Column(name = "SGG_CD", length = 5) + @Comment("시군구 코드") + private String itSggcode; + + @Column(name = "CRDN_ID", length = 16) + @Comment("단속 ID") + private String itMmcode; + + @Column(name = "BFHD_OPER_YMD", length = 8) + @Comment("사전 운영 일자") + private String itDate; + + @Column(name = "BFHD_OPER_RSN", length = 2) + @Comment("사전 운영 사유") + private String itCause; + + @Column(name = "EXCPTNMTTR", length = 100) + @Comment("특이사항") + private String itEtc; + + @Column(name = "REG_DT", length = 14) + @Comment("등록일시") + private String itIndt; + + @Column(name = "REG_USER_CD") + @Comment("등록 사용자 코드") + private Integer itInuser; +} + diff --git a/src/schemas/com/worker/domain/entity_new/CpInstructAnswer.java b/src/schemas/com/worker/domain/entity_new/CpInstructAnswer.java new file mode 100644 index 0000000..631dc92 --- /dev/null +++ b/src/schemas/com/worker/domain/entity_new/CpInstructAnswer.java @@ -0,0 +1,40 @@ +package com.worker.domain.entity; + +import com.worker.domain.entity.CpInstructAnswerId; +import jakarta.persistence.Column; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.Comment; + +@Entity +@Table(name = "tb_bfhd_oper_ans") +@Getter +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class CpInstructAnswer { + + @EmbeddedId + private CpInstructAnswerId id; + + @Column(name = "BFHD_OPER_KND_NM", length = 50) + @Comment("사전운영 종류명") + private String iaId; + + @Column(name = "BFHD_OPER_ANS_CN", length = 500) + @Comment("사전운영 답변 내용") + private String iaAnswertext; + + @Column(name = "BFHD_OPER_DOC_TTL", length = 100) + @Comment("사전운영 문서 제목") + private String iaMailtitle; + + @Column(name = "BFHD_OPER_DOC_CN", length = 1000) + @Comment("사전운영 문서 내용") + private String iaMailtext; +} \ No newline at end of file diff --git a/src/schemas/com/worker/domain/entity_new/CpInstructAnswerId.java b/src/schemas/com/worker/domain/entity_new/CpInstructAnswerId.java new file mode 100644 index 0000000..8d56249 --- /dev/null +++ b/src/schemas/com/worker/domain/entity_new/CpInstructAnswerId.java @@ -0,0 +1,23 @@ +package com.worker.domain.entity; + +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; +import lombok.*; +import org.hibernate.annotations.Comment; + +@Embeddable +@Getter +@NoArgsConstructor +@AllArgsConstructor +@Builder +@EqualsAndHashCode +public class CpInstructAnswerId { + + @Column(name = "SGG_CD", length = 5) + @Comment("시군구 코드") + private String iaSggcode; + + @Column(name = "BFHD_OPER_KND_CD", length = 3) + @Comment("사전운영 종류 코드") + private String iaCode; +} diff --git a/src/schemas/com/worker/domain/entity_new/CpMain.java b/src/schemas/com/worker/domain/entity_new/CpMain.java new file mode 100644 index 0000000..bf45b73 --- /dev/null +++ b/src/schemas/com/worker/domain/entity_new/CpMain.java @@ -0,0 +1,206 @@ +package com.worker.domain.entity; + +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Getter; +import lombok.NoArgsConstructor; +import org.hibernate.annotations.Comment; + +@Entity +@Table(name = "tb_crdn") +@Getter +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class CpMain { + + @Id + @Column(name = "CRDN_ID", length = 16) + @Comment("단속 ID") + private String mmCode; + + @Column(name = "SGG_CD", length = 5) + @Comment("시군구 코드") + private String mmSggcode; + + @Column(name = "REG_SE", length = 1) + @Comment("등록 구분") + private String mmDlgb; + + @Column(name = "DATA_SRC", length = 1) + @Comment("자료 출처") + private String mmIngb; + + @Column(name = "REG_YMD", length = 8) + @Comment("등록 일자") + private String mmDate; + + @Column(name = "REG_HR", length = 4) + @Comment("등록 시간") + private String mmTime; + + @Column(name = "VLTN_CN_CD", length = 2) + @Comment("위반 내용 코드") + private String mmLawgb; + + @Column(name = "DCL", length = 500) + @Comment("신고자") + private String mmSgnm; + + @Column(name = "DCL_CNPL", length = 100) + @Comment("신고자 연락처") + private String mmSgtel; + + @Column(name = "DCLR_CN", length = 1000) + @Comment("신고 내용") + private String mmSgcont; + + @Column(name = "VLTN_PLC", length = 200) + @Comment("위반 장소") + private String mmSgpos; + + @Column(name = "STDG_CD", length = 10) + @Comment("법정동 코드") + private String mmBdcode; + + @Column(name = "VLTN_PLC_XCRD", length = 20) + @Comment("위반 장소 X좌표") + private String mmGpsX; + + @Column(name = "VLTN_PLC_YCRD", length = 20) + @Comment("위반 장소 Y좌표") + private String mmGpsY; + + @Column(name = "TOWNG_YN", length = 1) + @Comment("견인 여부") + private String mmTrac; + + @Column(name = "CRDN_GD_NO", length = 20) + @Comment("단속 안내 번호") + private String mmSno; + + @Column(name = "PHOTO_BYNG") + @Comment("사진 매수") + private Integer mmImagecnt; + + @Column(name = "VDO_YN", length = 1) + @Comment("동영상 여부") + private String mmImagegb; + + @Column(name = "VHRNO", length = 20) + @Comment("자동차등록번호") + private String mmCarno; + + @Column(name = "VIN", length = 25) + @Comment("차대번호") + private String mmVhmno; + + @Column(name = "VHCL_SE", length = 1) + @Comment("차량구분") + private String mmCargb; + + @Column(name = "CARMDL", length = 1) + @Comment("차종") + private String mmCarkind; + + @Column(name = "OWNR_ID", length = 13) + @Comment("소유자 ID") + private String mmOmcode; + + @Column(name = "BFHD_WRNTC_PBLCNDAY", length = 8) + @Comment("사전통보서 발행일") + private String mmSdate; + + @Column(name = "BFHD_WRNTC_DUDTDAY", length = 8) + @Comment("사전통보서 납기일") + private String mmEdate; + + @Column(name = "LEVY_BFR_AMT") + @Comment("부과 이전 금액") + private Integer mmKeum1; + + @Column(name = "LEVY_AMT") + @Comment("부과 금액") + private Integer mmKeum2; + + @Column(name = "RCVMT_AMT") + @Comment("수납 금액") + private Integer mmSukeum; + + @Column(name = "RDAMT") + @Comment("감액") + private Integer mmMinusKeum; + + @Column(name = "ADTN_AMT") + @Comment("가산금액") + private Integer mmAddKeum; + + @Column(name = "OPNNSTTMT_YN", length = 1) + @Comment("의견진술 여부") + private String mmRecall; + + @Column(name = "RGTR") + @Comment("등록자") + private Integer mmInuser; + + @Column(name = "REG_DT", length = 14) + @Comment("등록 일시") + private String mmIndt; + + @Column(name = "PRCS_STTS", length = 2) + @Comment("처리 상태") + private String mmState; + + @Column(name = "LAST_PRCS_DT", length = 14) + @Comment("최종 처리 일시") + private String mmStateDt; + + @Column(name = "CVR_INQ_YN", length = 1) + @Comment("표지 조회 여부") + private String mmCarcheck; + + @Column(name = "RRG_BFR_CRDN_ID", length = 13) + @Comment("재등록 이전 단속 ID") + private String mmPrecode; + + @Column(name = "EXCPTNMTTR", length = 100) + @Comment("특이사항") + private String mmEtc; + + @Column(name = "VDO_FILENM", length = 30) + @Comment("동영상 파일명") + private String mmVideofilnm; + + @Column(name = "SPCCRDNZONE_YN", length = 1) + @Comment("특별단속구역 여부") + private String mmSafezone; + + @Column(name = "VHCL_NM", length = 4) + @Comment("위반횟수") + private String mmViorcnt; + + @Column(name = "VLTN_NMTM", length = 4) + @Comment("추가 등록시간") + private String mmTime2; + + @Column(name = "ADD_REG_HR", length = 60) + @Comment("차량이름") + private String mmCarname; + + + public void changeMmStateAfterSunap() { + this.mmState = switch (this.mmState) { + case "41" -> "71"; + case "51" -> "72"; + case "52" -> "73"; + case "53" -> "74"; + case "54", "55" -> "75"; + default -> "71"; + }; + } + +} diff --git a/src/main/java/com/worker/domain/repo/cp/CpAnswerRepository.java b/src/schemas/com/worker/domain/repo/cp/CpAnswerRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpAnswerRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpAnswerRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpBdongRepository.java b/src/schemas/com/worker/domain/repo/cp/CpBdongRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpBdongRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpBdongRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpCancelRepository.java b/src/schemas/com/worker/domain/repo/cp/CpCancelRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpCancelRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpCancelRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpEPostMakeResultRepository.java b/src/schemas/com/worker/domain/repo/cp/CpEPostMakeResultRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpEPostMakeResultRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpEPostMakeResultRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpEPostRgstNmbr.java b/src/schemas/com/worker/domain/repo/cp/CpEPostRgstNmbr.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpEPostRgstNmbr.java rename to src/schemas/com/worker/domain/repo/cp/CpEPostRgstNmbr.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpEPostSenderDetailRepository.java b/src/schemas/com/worker/domain/repo/cp/CpEPostSenderDetailRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpEPostSenderDetailRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpEPostSenderDetailRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpEPostSenderRegRepository.java b/src/schemas/com/worker/domain/repo/cp/CpEPostSenderRegRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpEPostSenderRegRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpEPostSenderRegRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpEpostDelivResultRepository.java b/src/schemas/com/worker/domain/repo/cp/CpEpostDelivResultRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpEpostDelivResultRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpEpostDelivResultRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpEpostRceptResultRepository.java b/src/schemas/com/worker/domain/repo/cp/CpEpostRceptResultRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpEpostRceptResultRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpEpostRceptResultRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpGojiPrtRepository.java b/src/schemas/com/worker/domain/repo/cp/CpGojiPrtRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpGojiPrtRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpGojiPrtRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpGojiSendHistRepository.java b/src/schemas/com/worker/domain/repo/cp/CpGojiSendHistRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpGojiSendHistRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpGojiSendHistRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpGojitRepository.java b/src/schemas/com/worker/domain/repo/cp/CpGojitRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpGojitRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpGojitRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpImagesizeRepository.java b/src/schemas/com/worker/domain/repo/cp/CpImagesizeRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpImagesizeRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpImagesizeRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpMainEtc1Repository.java b/src/schemas/com/worker/domain/repo/cp/CpMainEtc1Repository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpMainEtc1Repository.java rename to src/schemas/com/worker/domain/repo/cp/CpMainEtc1Repository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpMainRepository.java b/src/schemas/com/worker/domain/repo/cp/CpMainRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpMainRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpMainRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpMatchRepository.java b/src/schemas/com/worker/domain/repo/cp/CpMatchRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpMatchRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpMatchRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpSetinfoRepository.java b/src/schemas/com/worker/domain/repo/cp/CpSetinfoRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpSetinfoRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpSetinfoRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpSggRepository.java b/src/schemas/com/worker/domain/repo/cp/CpSggRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpSggRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpSggRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpUserRepository.java b/src/schemas/com/worker/domain/repo/cp/CpUserRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpUserRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpUserRepository.java diff --git a/src/main/java/com/worker/domain/repo/cp/CpViolationRepository.java b/src/schemas/com/worker/domain/repo/cp/CpViolationRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/cp/CpViolationRepository.java rename to src/schemas/com/worker/domain/repo/cp/CpViolationRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpAnswerRepository.java b/src/schemas/com/worker/domain/repo/ep/EpAnswerRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpAnswerRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpAnswerRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpBdongRepository.java b/src/schemas/com/worker/domain/repo/ep/EpBdongRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpBdongRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpBdongRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpEPostMakeResultRepository.java b/src/schemas/com/worker/domain/repo/ep/EpEPostMakeResultRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpEPostMakeResultRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpEPostMakeResultRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpEPostRgstNmbr.java b/src/schemas/com/worker/domain/repo/ep/EpEPostRgstNmbr.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpEPostRgstNmbr.java rename to src/schemas/com/worker/domain/repo/ep/EpEPostRgstNmbr.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpEPostSenderDetailRepository.java b/src/schemas/com/worker/domain/repo/ep/EpEPostSenderDetailRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpEPostSenderDetailRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpEPostSenderDetailRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpEPostSenderRegRepository.java b/src/schemas/com/worker/domain/repo/ep/EpEPostSenderRegRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpEPostSenderRegRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpEPostSenderRegRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpEpostDelivResultRepository.java b/src/schemas/com/worker/domain/repo/ep/EpEpostDelivResultRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpEpostDelivResultRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpEpostDelivResultRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpEpostRceptResultRepository.java b/src/schemas/com/worker/domain/repo/ep/EpEpostRceptResultRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpEpostRceptResultRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpEpostRceptResultRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpGojiPrtRepository.java b/src/schemas/com/worker/domain/repo/ep/EpGojiPrtRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpGojiPrtRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpGojiPrtRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpGojiSendHistRepository.java b/src/schemas/com/worker/domain/repo/ep/EpGojiSendHistRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpGojiSendHistRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpGojiSendHistRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpGojitRepository.java b/src/schemas/com/worker/domain/repo/ep/EpGojitRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpGojitRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpGojitRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpImagesizeRepository.java b/src/schemas/com/worker/domain/repo/ep/EpImagesizeRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpImagesizeRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpImagesizeRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpMainEtc1Repository.java b/src/schemas/com/worker/domain/repo/ep/EpMainEtc1Repository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpMainEtc1Repository.java rename to src/schemas/com/worker/domain/repo/ep/EpMainEtc1Repository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpMainRepository.java b/src/schemas/com/worker/domain/repo/ep/EpMainRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpMainRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpMainRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpMatchRepository.java b/src/schemas/com/worker/domain/repo/ep/EpMatchRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpMatchRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpMatchRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpSetinfoRepository.java b/src/schemas/com/worker/domain/repo/ep/EpSetinfoRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpSetinfoRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpSetinfoRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpSggRepository.java b/src/schemas/com/worker/domain/repo/ep/EpSggRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpSggRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpSggRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpUserRepository.java b/src/schemas/com/worker/domain/repo/ep/EpUserRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpUserRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpUserRepository.java diff --git a/src/main/java/com/worker/domain/repo/ep/EpViolationRepository.java b/src/schemas/com/worker/domain/repo/ep/EpViolationRepository.java similarity index 100% rename from src/main/java/com/worker/domain/repo/ep/EpViolationRepository.java rename to src/schemas/com/worker/domain/repo/ep/EpViolationRepository.java diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpAnswerRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpAnswerRepository.java new file mode 100644 index 0000000..c33cc2f --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpAnswerRepository.java @@ -0,0 +1,13 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpAnswer; +import org.springframework.data.jpa.repository.JpaRepository; + +import java.util.List; + +public interface CpAnswerRepository extends JpaRepository { + List findAllByAsState(String number); + + + boolean existsByAsJsnoM(String civilNoC); +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpBdongRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpBdongRepository.java new file mode 100644 index 0000000..974fcc3 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpBdongRepository.java @@ -0,0 +1,13 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpBdong; +import org.springframework.data.jpa.repository.JpaRepository; + +import java.util.List; + +public interface CpBdongRepository extends JpaRepository { + + List findAllByBdCodeStartingWith(String string); + + List findAllByBdSggName(String bdSggName); +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpCancelRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpCancelRepository.java new file mode 100644 index 0000000..ae7a8c9 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpCancelRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpCancel; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpCancelRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpEPostMakeResultRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpEPostMakeResultRepository.java new file mode 100644 index 0000000..fb3d085 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpEPostMakeResultRepository.java @@ -0,0 +1,10 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.EpostMakeResult; +import org.springframework.data.jpa.repository.JpaRepository; + +import java.util.Optional; + +public interface CpEPostMakeResultRepository extends JpaRepository { + Optional findByConKeyAndRgstNmbr(String conKey, String rgstNmbr); +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpEPostRgstNmbr.java b/src/schemas/com/worker/domain/repo_new/cp/CpEPostRgstNmbr.java new file mode 100644 index 0000000..ac27bbc --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpEPostRgstNmbr.java @@ -0,0 +1,8 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.EpostRgstNmbr; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpEPostRgstNmbr extends JpaRepository { + EpostRgstNmbr findByPcursor(String cursor); +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpEPostSenderDetailRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpEPostSenderDetailRepository.java new file mode 100644 index 0000000..7a6a0e8 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpEPostSenderDetailRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.EpostSenderDetail; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpEPostSenderDetailRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpEPostSenderRegRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpEPostSenderRegRepository.java new file mode 100644 index 0000000..773e804 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpEPostSenderRegRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.EpostSenderReg; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpEPostSenderRegRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpEpostDelivResultRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpEpostDelivResultRepository.java new file mode 100644 index 0000000..7491719 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpEpostDelivResultRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.EpostDelivResult; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpEpostDelivResultRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpEpostRceptResultRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpEpostRceptResultRepository.java new file mode 100644 index 0000000..c9a9af5 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpEpostRceptResultRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.EpostRceptResult; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpEpostRceptResultRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpGojiPrtRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpGojiPrtRepository.java new file mode 100644 index 0000000..9c007f6 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpGojiPrtRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpGojiPrt; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpGojiPrtRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpGojiSendHistRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpGojiSendHistRepository.java new file mode 100644 index 0000000..d5cba79 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpGojiSendHistRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpGojiSendHist; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpGojiSendHistRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpGojitRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpGojitRepository.java new file mode 100644 index 0000000..655c2f2 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpGojitRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpGojit; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpGojitRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpImagesizeRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpImagesizeRepository.java new file mode 100644 index 0000000..d052253 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpImagesizeRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpImagesize; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpImagesizeRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpMainEtc1Repository.java b/src/schemas/com/worker/domain/repo_new/cp/CpMainEtc1Repository.java new file mode 100644 index 0000000..050d70a --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpMainEtc1Repository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpMainEtc1; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpMainEtc1Repository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpMainRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpMainRepository.java new file mode 100644 index 0000000..4fc76da --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpMainRepository.java @@ -0,0 +1,11 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpMain; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.stereotype.Repository; + +@Repository +public interface CpMainRepository extends JpaRepository { + + CpMain findTopByMmCodeStartingWithOrderByMmCodeDesc(String prefix); +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpMatchRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpMatchRepository.java new file mode 100644 index 0000000..0d93638 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpMatchRepository.java @@ -0,0 +1,8 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpMatch; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpMatchRepository extends JpaRepository { + CpMatch findByMcMmcode(String mngItemSn6); +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpSetinfoRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpSetinfoRepository.java new file mode 100644 index 0000000..dcef4b2 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpSetinfoRepository.java @@ -0,0 +1,12 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpSetinfo; +import com.worker.domain.entity.CpSetinfoId; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.stereotype.Repository; + +@Repository +public interface CpSetinfoRepository extends JpaRepository { + + +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpSggRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpSggRepository.java new file mode 100644 index 0000000..40d4294 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpSggRepository.java @@ -0,0 +1,8 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpSgg; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpSggRepository extends JpaRepository { + CpSgg findBySgDepCode(String sgDepCode); +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpUserRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpUserRepository.java new file mode 100644 index 0000000..d3bbe40 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpUserRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpUser; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpUserRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/cp/CpViolationRepository.java b/src/schemas/com/worker/domain/repo_new/cp/CpViolationRepository.java new file mode 100644 index 0000000..d795aeb --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/cp/CpViolationRepository.java @@ -0,0 +1,9 @@ +package com.worker.domain.repo_new.cp; + +import com.worker.domain.entity.CpViolation; +import com.worker.domain.entity.CpViolationId; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CpViolationRepository extends JpaRepository { + CpViolation findByIdVlCode(String gpLawGb); +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpAnswerRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpAnswerRepository.java new file mode 100644 index 0000000..3132695 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpAnswerRepository.java @@ -0,0 +1,12 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpAnswer; +import org.springframework.data.jpa.repository.JpaRepository; + +import java.util.List; + +public interface EpAnswerRepository extends JpaRepository { + List findAllByAsState(String number); + + boolean existsByAsJsnoM(String civilNoC); +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpBdongRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpBdongRepository.java new file mode 100644 index 0000000..41d0f26 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpBdongRepository.java @@ -0,0 +1,11 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpBdong; +import org.springframework.data.jpa.repository.JpaRepository; + +import java.util.List; + +public interface EpBdongRepository extends JpaRepository { + List findAllByBdCodeStartingWith(String string); + +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpEPostMakeResultRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpEPostMakeResultRepository.java new file mode 100644 index 0000000..46a130c --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpEPostMakeResultRepository.java @@ -0,0 +1,10 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.EpostMakeResult; +import org.springframework.data.jpa.repository.JpaRepository; + +import java.util.Optional; + +public interface EpEPostMakeResultRepository extends JpaRepository { + Optional findByConKeyAndRgstNmbr(String conKey, String rgstNmbr); +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpEPostRgstNmbr.java b/src/schemas/com/worker/domain/repo_new/ep/EpEPostRgstNmbr.java new file mode 100644 index 0000000..848c5e1 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpEPostRgstNmbr.java @@ -0,0 +1,8 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.EpostRgstNmbr; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpEPostRgstNmbr extends JpaRepository { + EpostRgstNmbr findByPcursor(String number); +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpEPostSenderDetailRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpEPostSenderDetailRepository.java new file mode 100644 index 0000000..cb5be72 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpEPostSenderDetailRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.EpostSenderDetail; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpEPostSenderDetailRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpEPostSenderRegRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpEPostSenderRegRepository.java new file mode 100644 index 0000000..ac4acc3 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpEPostSenderRegRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.EpostSenderReg; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpEPostSenderRegRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpEpostDelivResultRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpEpostDelivResultRepository.java new file mode 100644 index 0000000..d39058c --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpEpostDelivResultRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.EpostDelivResult; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpEpostDelivResultRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpEpostRceptResultRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpEpostRceptResultRepository.java new file mode 100644 index 0000000..c217824 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpEpostRceptResultRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.EpostRceptResult; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpEpostRceptResultRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpGojiPrtRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpGojiPrtRepository.java new file mode 100644 index 0000000..c605cbd --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpGojiPrtRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpGojiPrt; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpGojiPrtRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpGojiSendHistRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpGojiSendHistRepository.java new file mode 100644 index 0000000..1eb7c31 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpGojiSendHistRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpGojiSendHist; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpGojiSendHistRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpGojitRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpGojitRepository.java new file mode 100644 index 0000000..d64e43a --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpGojitRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpGojit; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpGojitRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpImagesizeRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpImagesizeRepository.java new file mode 100644 index 0000000..8bf51af --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpImagesizeRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpImagesize; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpImagesizeRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpMainEtc1Repository.java b/src/schemas/com/worker/domain/repo_new/ep/EpMainEtc1Repository.java new file mode 100644 index 0000000..c30cfd9 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpMainEtc1Repository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpMainEtc1; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpMainEtc1Repository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpMainRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpMainRepository.java new file mode 100644 index 0000000..3ce4603 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpMainRepository.java @@ -0,0 +1,11 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpMain; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.stereotype.Repository; + +@Repository +public interface EpMainRepository extends JpaRepository { + + CpMain findTopByMmCodeStartingWithOrderByMmCodeDesc(String prefix); +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpMatchRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpMatchRepository.java new file mode 100644 index 0000000..4c0c175 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpMatchRepository.java @@ -0,0 +1,8 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpMatch; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpMatchRepository extends JpaRepository { + CpMatch findByMcMmcode(String mngItemSn6); +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpSetinfoRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpSetinfoRepository.java new file mode 100644 index 0000000..282cee6 --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpSetinfoRepository.java @@ -0,0 +1,12 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpSetinfo; +import com.worker.domain.entity.CpSetinfoId; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.stereotype.Repository; + +@Repository +public interface EpSetinfoRepository extends JpaRepository { + + +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpSggRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpSggRepository.java new file mode 100644 index 0000000..794c19e --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpSggRepository.java @@ -0,0 +1,8 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpSgg; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpSggRepository extends JpaRepository { + CpSgg findBySgDepCode(String sgDepCode); +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpUserRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpUserRepository.java new file mode 100644 index 0000000..dc4957c --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpUserRepository.java @@ -0,0 +1,7 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpUser; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpUserRepository extends JpaRepository { +} diff --git a/src/schemas/com/worker/domain/repo_new/ep/EpViolationRepository.java b/src/schemas/com/worker/domain/repo_new/ep/EpViolationRepository.java new file mode 100644 index 0000000..56e949b --- /dev/null +++ b/src/schemas/com/worker/domain/repo_new/ep/EpViolationRepository.java @@ -0,0 +1,10 @@ +package com.worker.domain.repo_new.ep; + +import com.worker.domain.entity.CpViolation; +import com.worker.domain.entity.CpViolationId; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface EpViolationRepository extends JpaRepository { + + CpViolation findByIdVlCode(String gpLawGb); +}