API 거래 uuid(TRANSACTION_UUID) 앞 prefix에 GroupInstId 추가
This commit is contained in:
@@ -50,7 +50,8 @@ public class DJBApiAdapterController implements HttpAdapterServiceKey {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
DJBApiAdapterService service;
|
DJBApiAdapterService service;
|
||||||
|
|
||||||
|
EAIServerManager eaiServerManager;
|
||||||
/**
|
/**
|
||||||
* DJErp OAuth 조기 적용을 위한 Controller
|
* DJErp OAuth 조기 적용을 위한 Controller
|
||||||
*
|
*
|
||||||
@@ -89,7 +90,13 @@ public class DJBApiAdapterController implements HttpAdapterServiceKey {
|
|||||||
|
|
||||||
ResponseEntity<String> responseEntity = null;
|
ResponseEntity<String> responseEntity = null;
|
||||||
Properties transactionProp = new Properties();
|
Properties transactionProp = new Properties();
|
||||||
String uuid = UUIDGenerator.getUUID().toString().replaceAll("-", "");
|
|
||||||
|
if(eaiServerManager == null)
|
||||||
|
eaiServerManager = EAIServerManager.getInstance();
|
||||||
|
|
||||||
|
String instid = eaiServerManager.getGroupInstId();
|
||||||
|
String uuid = instid+UUIDGenerator.getUUID().toString().replaceAll("-", "");
|
||||||
|
|
||||||
transactionProp.setProperty(TransactionContextKeys.TRANSACTION_UUID, uuid);
|
transactionProp.setProperty(TransactionContextKeys.TRANSACTION_UUID, uuid);
|
||||||
transactionProp.put(INBOUND_REQUESTED_TIME, receivedTimeStr);
|
transactionProp.put(INBOUND_REQUESTED_TIME, receivedTimeStr);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user