fo bo 머지작업 - 오류수정

This commit is contained in:
jazz
2025-11-28 17:03:25 +09:00
parent a5cf6f509b
commit 672e97f7ee
19 changed files with 81 additions and 47 deletions

View File

@@ -2,10 +2,13 @@ package com.wb.domainserver.util.dataaccess;
import org.apache.commons.collections4.map.ListOrderedMap;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class DataMap extends ListOrderedMap<Object, Object> {
private static final long serialVersionUID = 6723434363565852261L;
private DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
/**
* key 에 대하여 Camel Case 변환하여 super.put
* (ListOrderedMap) 을 호출한다.
@@ -19,6 +22,10 @@ public class DataMap extends ListOrderedMap<Object, Object> {
*/
@Override
public Object put(Object key, Object value) {
/*일시 자료형인경우 00분00초 정보를 변환이 안되어 추가*/
if(value instanceof LocalDateTime){
value = formatter.format((LocalDateTime)value);
}
return super.put(CamelUtil.convert2CamelCase((String) key), value);
}