Test
for (Map<String, String> m : readCSVFile) { for(String key:m.keySet()) { System.out.print(key+" "+m.get(key)); } System.out.println(); if(m.get("accountId")!=null && awsAccountId.contains(m.get("accountId"))) { continue; } if(nowAccountId.contains(m.get("accountId"))) { continue; } nowAccountId.add(m.get("accountId")); //写入数据库 Integer importCSVFile = fileMapper.importAWSCSVFile(m); System.out.println("importCSVFile:"+importCSVFile); //判读是否写入成功 if(!(importCSVFile>0)) { return "false"; } }
原文:https://www.cnblogs.com/lynnl/p/11411550.html