/** 导入 */ public void onImp(File file) throws Exception { logger.info("----------BiCardsTask导入开始" + ToolUtil.getStrLastUpdDatetime() + "----------"); BufferedReader br = new BufferedReader(new FileReader(file)); Map<String, Integer> result = biCardsService.imp(br, operId); int lines = result.get("lines"); // 总笔数 int impCnt = result.get("impCnt"); // 导入笔数 int existsCnt = result.get("existsCnt"); // 重复笔数 if (existsCnt > 0) { logger.info("总共" + lines + " 笔,导入" + impCnt + "笔,重复" + existsCnt + "笔。"); } if (impCnt > 0) { if (existsCnt == 0) { logger.info("导入成功!总共" + lines + " 笔,导入" + impCnt + "笔。"); } } logger.info("----------BiCardsTask导入结束" + ToolUtil.getStrLastUpdDatetime() + "----------"); }