API 거래 uuid(TRANSACTION_UUID) 앞 prefix에 GroupInstId 추가

This commit is contained in:
curry772
2026-07-27 10:41:59 +09:00
parent 1b37fc5e1b
commit 70c636d719
@@ -51,6 +51,7 @@ public class DJBApiAdapterController implements HttpAdapterServiceKey {
@Autowired
DJBApiAdapterService service;
EAIServerManager eaiServerManager;
/**
* DJErp OAuth 조기 적용을 위한 Controller
*
@@ -89,7 +90,13 @@ public class DJBApiAdapterController implements HttpAdapterServiceKey {
ResponseEntity<String> responseEntity = null;
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.put(INBOUND_REQUESTED_TIME, receivedTimeStr);