Merge remote-tracking branch 'origin/jenkins_with_weblogic' of C:/KJB_DEV/eapim-bundle/bundles/260108/eapim-admin_incremental_2025-12-15.bundle into jenkins_with_weblogic

This commit is contained in:
Rinjae
2026-01-08 14:26:03 +09:00
5 changed files with 26 additions and 5 deletions
@@ -619,11 +619,13 @@ public class ApiInterfaceService extends OnlBaseService {
String fullPath = inboundHttpMethod + "|" + prop.getPrpty2val() + "/" + vo.getInboundRestPath();
vo.setApiFullPath(fullPath);
// HS04 AndEaiSvcNameNot : 업데이트일 때 자신의 fullpath 는 제외함
standardMessageInfoQueryService.existsByApiFullPathAndEaiSvcNameNot(vo.getApiFullPath(), eaiServiceName);
break;
}
}
}
}
// HTTP 어댑터도 등록 가능하도록 수정.
@@ -21,6 +21,15 @@ public class StandardMessageInfoQueryServiceForApi extends AbstractDataService<S
public void deleteByEaiSvcName(String eaiSvcName){
repository.deleteByEaisvcname(eaiSvcName);
}
public void existsByApiFullPathAndEaiSvcNameNot(String apiFullPath, String eaiServiceName) {
boolean isExist = repository.existsByApifullpathAndEaisvcnameNot(apiFullPath, eaiServiceName);
if(isExist) {
throw new RuntimeException("API FUll PATH 가 중복되었습니다 : " + apiFullPath);
}
}
}
@@ -10,4 +10,6 @@ public interface StandardMessageInfoRepositoryForApi extends BaseRepository<Stan
Optional<StandardMessageInfo> findByEaisvcname(String eaiSvcName);
void deleteByEaisvcname(String eaiSvcName);
boolean existsByApifullpathAndEaisvcnameNot(String fullPath, String eaiServiceName);
}