Map<String, Object> temp = ((Map<String, Object>) map.get("data"));
// UPDATE에 들어갈 DATA 새로 만들기
Map<String, Object> newData = temp.entrySet().stream()
.filter(entry -> entry.getKey().equals("scn_id") ||
entry.getKey().equals("vhcl_id") ||
entry.getKey().equals("vhcl_knd") ||
entry.getKey().equals("vhcl_stnd") ||
entry.getKey().equals("vhcl_no") ||
entry.getKey().equals("vhcl_als") ||
entry.getKey().equals("drvr_nm") ||
entry.getKey().equals("drvr_hphn_no") ||
entry.getKey().equals("ownd_cmpny_nm") ||
entry.getKey().equals("rmrk"))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
728x90
300x250