1. 요청/응답값이 async 가 아니면 'S' 로 변경되도록 수정.
2. Trantype에 따라 시물레이션 값 넣어주도록 수정, 화면에서 simYn 확인 후 활성화. 3. 엑셀 다운로드 버튼 추가 후 주석처리, 필요시 주석해제해서 사용. 4. 엑셀 다운로드 시 syncType 및 async 어댑터 값을 제대로 넘겨주도록 수정. 5. 엑셀 IMPORT 시 syncType 및 async 어댑터 값을 제대로 넘겨주도록 수정.
This commit is contained in:
@@ -709,6 +709,8 @@ public class ApiInterfaceService extends OnlBaseService {
|
||||
sheet.setColumnWidth(ci++, 200 * 30);
|
||||
sheet.setColumnWidth(ci++, 300 * 30);
|
||||
sheet.setColumnWidth(ci++, 200 * 30);
|
||||
sheet.setColumnWidth(ci++, 200 * 30);
|
||||
sheet.setColumnWidth(ci++, 300 * 30);
|
||||
sheet.setColumnWidth(ci, 300 * 30);
|
||||
|
||||
int rowNum = 0;
|
||||
@@ -730,6 +732,8 @@ public class ApiInterfaceService extends OnlBaseService {
|
||||
createCell(row, cellIndex++, textStyle, apiInterfaceUI.getEaiSvcDesc());
|
||||
createCell(row, cellIndex++, headerStyle, "변환여부(Y/N)");
|
||||
createCell(row, cellIndex++, textStyle, apiInterfaceUI.getTransformYn());
|
||||
createCell(row, cellIndex++, headerStyle, "Sync/Async 타입");
|
||||
createCell(row, cellIndex++, textStyle, apiInterfaceUI.getSyncAsyncType());
|
||||
|
||||
rowNum = addTitle(sheet, ++rowNum, titleStyle, "어댑터 설정");
|
||||
row = sheet.createRow(rowNum++);
|
||||
@@ -738,8 +742,23 @@ public class ApiInterfaceService extends OnlBaseService {
|
||||
createCell(row, cellIndex++, headerStyle, "인바운드 어댑터");
|
||||
createCell(row, cellIndex++, textStyle, apiInterfaceUI.getFromAdapter());
|
||||
createCell(row, cellIndex++, headerStyle, "아웃바운드 어댑터");
|
||||
createCell(row, cellIndex, textStyle, apiInterfaceUI.getToAdapter());
|
||||
|
||||
createCell(row, cellIndex++, textStyle, apiInterfaceUI.getToAdapter());
|
||||
|
||||
//SYNC TYPE 에 따라 추가정보 생성
|
||||
String syncAsyncType = apiInterfaceUI.getSyncAsyncType();
|
||||
|
||||
if (syncAsyncType.equals("asyncSync") || syncAsyncType.equals("syncAsync")) {
|
||||
|
||||
if (apiInterfaceUI.getSyncAsyncType().equals("asyncSync")) {
|
||||
createCell(row, cellIndex++, headerStyle, "INBOUND (ASYNC) 응답 어댑터");
|
||||
createCell(row, cellIndex, textStyle, apiInterfaceUI.getFromResponseAdapter());
|
||||
} else {
|
||||
createCell(row, cellIndex++, headerStyle, "OUTBOUND (ASYNC) 응답 어댑터");
|
||||
createCell(row, cellIndex, textStyle, apiInterfaceUI.getToResponseAdapter());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
rowNum = addTitle(sheet, ++rowNum, titleStyle, "REST 설정");
|
||||
row = sheet.createRow(rowNum++);
|
||||
row.setHeightInPoints(height); // 행 높이를 20 포인트로 설정
|
||||
@@ -747,14 +766,30 @@ public class ApiInterfaceService extends OnlBaseService {
|
||||
createCell(row, cellIndex++, headerStyle, "수신 메소드");
|
||||
createCell(row, cellIndex++, textStyle, apiInterfaceUI.getInboundHttpMethod());
|
||||
createCell(row, cellIndex++, headerStyle, "수신 PATH(URL)");
|
||||
createCell(row, cellIndex, textStyle, apiInterfaceUI.getInboundRestPath());
|
||||
createCell(row, cellIndex++, textStyle, apiInterfaceUI.getInboundRestPath());
|
||||
|
||||
if(apiInterfaceUI.getSyncAsyncType().equals("asyncSync")) {
|
||||
createCell(row, cellIndex++, headerStyle, "응답 송신 메소드");
|
||||
createCell(row, cellIndex++, textStyle, apiInterfaceUI.getInboundResponseHttpMethod());
|
||||
createCell(row, cellIndex++, headerStyle, "응답 송신 REST PATH(URL)");
|
||||
createCell(row, cellIndex, textStyle, apiInterfaceUI.getInboundResponseRestPath());
|
||||
}
|
||||
|
||||
row = sheet.createRow(rowNum++);
|
||||
row.setHeightInPoints(height); // 행 높이를 20 포인트로 설정
|
||||
cellIndex = 0; // 초기 셀 인덱스
|
||||
createCell(row, cellIndex++, headerStyle, "송신 메소드");
|
||||
createCell(row, cellIndex++, textStyle, apiInterfaceUI.getOutboundHttpMethod());
|
||||
createCell(row, cellIndex++, headerStyle, "송신 PATH(URL)");
|
||||
createCell(row, cellIndex, textStyle, apiInterfaceUI.getOutboundRestPath());
|
||||
createCell(row, cellIndex++, textStyle, apiInterfaceUI.getOutboundRestPath());
|
||||
|
||||
if(apiInterfaceUI.getSyncAsyncType().equals("syncAsync")) {
|
||||
createCell(row, cellIndex++, headerStyle, "응답 수신 메소드");
|
||||
createCell(row, cellIndex++, textStyle, apiInterfaceUI.getOutboundResponseHttpMethod());
|
||||
createCell(row, cellIndex++, headerStyle, "송신 REST PATH(URL)");
|
||||
createCell(row, cellIndex, textStyle, apiInterfaceUI.getOutboundResponseRestPath());
|
||||
}
|
||||
|
||||
|
||||
if ("Y".equals(apiInterfaceUI.getTransformYn())) {
|
||||
rowNum = addTitle(sheet, ++rowNum, titleStyle, "변환 설정");
|
||||
@@ -808,9 +843,27 @@ public class ApiInterfaceService extends OnlBaseService {
|
||||
|
||||
String interfaceDesc = PoiUtils.getCellValue(sheet, 2, 1);
|
||||
String transformYn = PoiUtils.getCellValue(sheet, 2, 3);
|
||||
String syncAsyncType = PoiUtils.getCellValue(sheet, 2, 5);
|
||||
|
||||
String inboundAdapterGroupName = PoiUtils.getCellValue(sheet, 5, 1);
|
||||
String outboundAdapterGroupName = PoiUtils.getCellValue(sheet, 5, 3);
|
||||
String inboundResponseHttpMethod = "";
|
||||
String inboundResponseRestPath = "";
|
||||
String fromResponseAdapter = "";
|
||||
|
||||
String outboundResponseHttpMethod = "";
|
||||
String outboundResponseRestPath = "";
|
||||
String toResponseAdapter = "";
|
||||
|
||||
if (syncAsyncType.equals("asyncSync")) {
|
||||
inboundResponseHttpMethod = PoiUtils.getCellValue(sheet, 8, 5);
|
||||
inboundResponseRestPath = PoiUtils.getCellValue(sheet, 8, 7);
|
||||
fromResponseAdapter = PoiUtils.getCellValue(sheet, 5, 5);
|
||||
} else if (syncAsyncType.equals("syncAsync")) {
|
||||
outboundResponseHttpMethod = PoiUtils.getCellValue(sheet, 9, 5);
|
||||
outboundResponseRestPath = PoiUtils.getCellValue(sheet, 9, 7);
|
||||
toResponseAdapter = PoiUtils.getCellValue(sheet, 5, 5);
|
||||
}
|
||||
|
||||
String inboundHttpMethod = PoiUtils.getCellValue(sheet, 8, 1);
|
||||
String inboundRestPath = PoiUtils.getCellValue(sheet, 8, 3);
|
||||
@@ -824,6 +877,7 @@ public class ApiInterfaceService extends OnlBaseService {
|
||||
apiInterfaceUI.setEaiSvcName(elinkServiceId);
|
||||
apiInterfaceUI.setEaiSvcDesc(interfaceDesc);
|
||||
apiInterfaceUI.setTransformYn(transformYn);
|
||||
apiInterfaceUI.setSyncAsyncType(syncAsyncType);
|
||||
|
||||
apiInterfaceUI.setFromAdapter(inboundAdapterGroupName);
|
||||
apiInterfaceUI.setToAdapter(outboundAdapterGroupName);
|
||||
@@ -832,6 +886,14 @@ public class ApiInterfaceService extends OnlBaseService {
|
||||
apiInterfaceUI.setInboundRestPath(inboundRestPath);
|
||||
apiInterfaceUI.setOutboundHttpMethod(outboundHttpMethod);
|
||||
apiInterfaceUI.setOutboundRestPath(outboundRestPath);
|
||||
|
||||
apiInterfaceUI.setInboundResponseHttpMethod(inboundResponseHttpMethod);
|
||||
apiInterfaceUI.setInboundResponseRestPath(inboundResponseRestPath);
|
||||
apiInterfaceUI.setFromResponseAdapter(fromResponseAdapter);
|
||||
|
||||
apiInterfaceUI.setOutboundResponseHttpMethod(outboundResponseHttpMethod);
|
||||
apiInterfaceUI.setOutboundResponseRestPath(outboundResponseRestPath);
|
||||
apiInterfaceUI.setToResponseAdapter(toResponseAdapter);
|
||||
|
||||
apiInterfaceUI.setIsHeaderRouting(false);
|
||||
|
||||
|
||||
+5
-1
@@ -110,6 +110,10 @@ public interface ApiInterfaceUIMapper {
|
||||
syncAsyncType = "asyncSync";
|
||||
}
|
||||
vo.setSyncAsyncType(syncAsyncType);
|
||||
|
||||
// 가상응답 여부
|
||||
String simYn = "T".equals(eaiMessageEntity.getTrantype()) ? "Y" : "N";
|
||||
vo.setSimYn(simYn);
|
||||
|
||||
vo.setToAdapter(requestEntity.getPsvsysadptrbzwkgroupname());
|
||||
vo.setToutVal(requestEntity.getToutval());
|
||||
@@ -193,4 +197,4 @@ public interface ApiInterfaceUIMapper {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user