Test

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";
            }
        }

 

posted on 2019-08-26 11:31  LynnTan`  阅读(90)  评论(1)    收藏  举报

导航