HS04 컬럼(apifullpath)추가 개발.
This commit is contained in:
@@ -588,6 +588,31 @@ public class ApiInterfaceService extends OnlBaseService {
|
||||
// 비표준에서 표준으로 가는 경우 표준으로 전환하기 위한 정보 이므로 내부로 갈 때만 처리
|
||||
|
||||
String eaiServiceName = vo.getEaiSvcName();
|
||||
|
||||
// 25.11.25 HS04 APIFULLPATH 추가.
|
||||
List<AdapterUI> adapters = adapterGroup.getAdapters();
|
||||
|
||||
for (AdapterUI adapter : adapters) {
|
||||
|
||||
// propGroup NULL 체크
|
||||
if(adapter.getAdapterPropGroup() == null) continue;
|
||||
|
||||
List<AdapterPropUI> props = adapter.getAdapterPropGroup().getAdapterProps();
|
||||
|
||||
if (props != null) {
|
||||
for (AdapterPropUI prop : props) {
|
||||
if("API_PATH".equals(prop.getPrptyname())) {
|
||||
|
||||
String fullPath = prop.getPrpty2val() + "/" + vo.getInboundRestPath();
|
||||
vo.setApiFullPath(fullPath);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!"RST".equals(adapterGroup.getAdptrcd())) {
|
||||
throw new RuntimeException("인바운드 어댑터가 타입이 REST가 아닙니다. 타입을 확인하세요");
|
||||
|
||||
+1
@@ -148,6 +148,7 @@ public interface ApiInterfaceUIMapper {
|
||||
@Mapping(target = "eaisendrecv", source = "sendRecvType")
|
||||
@Mapping(target = "eaidirection", source = "inOutType")
|
||||
@Mapping(target = "standardMessageItems", source = "standardMessageItems")
|
||||
@Mapping(target = "apifullpath", source = "apiFullPath")
|
||||
StandardMessageInfo toStandardMessageInfo(ApiInterfaceUI vo);
|
||||
|
||||
@AfterMapping
|
||||
|
||||
@@ -49,6 +49,8 @@ public class ApiInterfaceUI {
|
||||
private List<String> headerValues;
|
||||
private List<StdMessageItemUI> standardMessageItems;
|
||||
private List<StdMessageItemUI> inboundResponseStandardMessageItems ;
|
||||
|
||||
private String apiFullPath;
|
||||
|
||||
//ASYNC-SYNC 용
|
||||
private String inboundResponseHttpMethod;
|
||||
|
||||
Reference in New Issue
Block a user