표준 전문의 BIZ_DATA(개별부) path를 mapping config properties 파일 설정으로 변경

- standard-message-mapping-config-djb.properties 참고
- 배열 형태의 경우, path를 정상적으로 적용 못하는 문제 우회
This commit is contained in:
curry772
2026-06-12 08:55:42 +09:00
parent 2354af516c
commit 23eaf725b6
4 changed files with 11 additions and 5 deletions
@@ -292,10 +292,10 @@ public class StandardMessageUtil {
} }
} }
} else { } else {
if (curItem.getType() == StandardType.BIZDATA) { // if (curItem.getType() == StandardType.BIZDATA) {
message.setBizDataPath(getFullPath(parentPath, curItem.getName())); // message.setBizDataPath(getFullPath(parentPath, curItem.getName()));
logger.debug("@@@ BIZ DATA PATH = {}", message.getBizDataPath()); // logger.debug("@@@ BIZ DATA PATH = {}", message.getBizDataPath());
} // }
if (curItem.getDataType() == StandardDataType.LL_NUMBER) { if (curItem.getDataType() == StandardDataType.LL_NUMBER) {
message.setLlDataPath(getFullPath(parentPath, curItem.getName())); message.setLlDataPath(getFullPath(parentPath, curItem.getName()));
@@ -334,6 +334,8 @@ reader.FLAT=com.eactive.eai.message.parser.FlatReader
} }
if(logger.isDebug()) logger.debug("mapperClass : {}", mapper.getClass().getCanonicalName()); if(logger.isDebug()) logger.debug("mapperClass : {}", mapper.getClass().getCanonicalName());
standardMessage.setBizDataPath(mapper.getPath(InterfaceMapper.BIZ_DATA));
String versionMapperClass = config.getProperty(VERSION_MAPPER); String versionMapperClass = config.getProperty(VERSION_MAPPER);
if(StringUtils.isEmpty(versionMapperClass)) { if(StringUtils.isEmpty(versionMapperClass)) {
versionMapperClass = "com.eactive.eai.message.mapper.DefaultMessageMapper"; versionMapperClass = "com.eactive.eai.message.mapper.DefaultMessageMapper";
@@ -18,7 +18,7 @@ public class DefaultInterfaceMapper implements InterfaceMapper {
itemPathMap = map; itemPathMap = map;
} }
protected String getPath(String key) { public String getPath(String key) {
String path = itemPathMap.get(key); String path = itemPathMap.get(key);
if(StringUtils.isBlank(path)) { if(StringUtils.isBlank(path)) {
logger.debug("message-mapping not defined key = {}", key); logger.debug("message-mapping not defined key = {}", key);
@@ -34,7 +34,11 @@ public interface InterfaceMapper extends Serializable {
String RESPONSE_TYPE = "RESPONSE_TYPE"; String RESPONSE_TYPE = "RESPONSE_TYPE";
String SYNC_ASYNC_TYPE = "SYNC_ASYNC_TYPE"; String SYNC_ASYNC_TYPE = "SYNC_ASYNC_TYPE";
String BIZ_DATA = "BIZ_DATA";
public void initPathMap(HashMap<String, String> map); public void initPathMap(HashMap<String, String> map);
public String getPath(String key);
//------------------------------------------------------------ //------------------------------------------------------------
// 표준전문과 Mapping 되는 항목을 모두 정의해야 함. // 표준전문과 Mapping 되는 항목을 모두 정의해야 함.
//------------------------------------------------------------ //------------------------------------------------------------