item1List.stream().map(x -> {标签:map,String,批量,get,00000000,List,&&,vfdat,hsdat From: https://www.cnblogs.com/marie-yl/p/16626621.html
x.put("recordType","default__c");
x.put("detailId",x.get("vbeln")+"-"+x.get("posnr"));
try {
String vfdatstr= (String) x.get("vfdat");
String hsdatstr= (String) x.get("hsdat");
if(vfdatstr!="00000000" && !vfdatstr.equals("00000000") && vfdatstr!="" && vfdatstr!=null){
System.out.println("1:vfdat!=00000000-----"+x.get("vfdat"));
x.remove("vfdat");
x.put("vfdat",dataspell((String) x.get("vfdat")));
}else {
x.remove("vfdat");
}
if(hsdatstr!="00000000" && !hsdatstr.equals("00000000") && hsdatstr!="" && hsdatstr!=null){
System.out.println("1:hsdat!=00000000-----"+x.get("hsdat"));
x.remove("hsdat");
x.put("hsdat",dataspell((String) x.get("hsdat")));
}else {
x.remove("hsdat");
}
} catch (ParseException e) {
e.printStackTrace();
}
return x; }).collect(Collectors.toList());