为了账号安全,请及时绑定邮箱和手机立即绑定

为什么我的循环只走一次,只导出同一天同一个的第一次查询的记录,应该是导出同一天同一个人的所有记录

为什么我的循环只走一次,只导出同一天同一个的第一次查询的记录,应该是导出同一天同一个人的所有记录

HUWWW 2019-04-27 23:15:04
private Runnable dodownload() throws IOException {return new Runnable() {@Overridepublic void run() {String basepath = getResourceBasePath();List tfeepaids = getTfeepaidByTime();String timeName = getOneDayForDown();String KjDownResourcePath = "";String id = "";for (Tfeepaid tfeepaid : tfeepaids) {id = tfeepaid.getFcertid();KjDownResourcePath = new File(basepath, "down/" + id + "-" + timeName + ".txt").getAbsolutePath();ensureDirectory(KjDownResourcePath);StringBuffer sb = new StringBuffer();sb.append(tfeepaid.getFlastcommit());sb.append("\t");sb.append("\r\n");// TODO 其他数据据字段的设置20190314try {BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(KjDownResourcePath)));bw.write(sb.toString());bw.flush();bw.close();} catch (IOException e) {e.printStackTrace();}            }         }     }; }
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 346 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信