HS04 컬럼(apifullpath)추가 개발.
This commit is contained in:
@@ -589,6 +589,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
|
||||
|
||||
@@ -50,6 +50,8 @@ public class ApiInterfaceUI {
|
||||
private List<StdMessageItemUI> standardMessageItems;
|
||||
private List<StdMessageItemUI> inboundResponseStandardMessageItems ;
|
||||
|
||||
private String apiFullPath;
|
||||
|
||||
//ASYNC-SYNC 용
|
||||
private String inboundResponseHttpMethod;
|
||||
private String inboundResponseRestPath;
|
||||
|
||||
Reference in New Issue
Block a user