相对于直接双层for循环,速度起飞
Map<String,Map<String,String>> map2= resultList.stream().collect(
Collectors.toMap(s->getKeyStr(s),s->s));
dataList.forEach(c->{
if(map2.get(getKey(c))!=null){
c.put("debitStartSum",map2.get(getKey(c)).get("debitStartSum"));
});
public String getKeyStr(Map<String,String>s){
return String.valueOf(s.get("sys_object_id"))+","+String.valueOf(s.get("account"))+","
+String.valueOf(s.get("currency_type"))+","+String.valueOf(s.get("sb_id"));
}