| | |
| | | } |
| | | List listData = new ArrayList(); |
| | | try { |
| | | // if (isRechargeList) { |
| | | // listData = SqLite_DB_Utile.getInit(MyActivity.this).selector(RechargeBean.class).where("date", ">=", beginTime).and("date", "<=", endTime).findAll(); |
| | | // } else { |
| | | // listData = SqLite_DB_Utile.getInit(MyActivity.this).selector(UserCardBean.class).where("date", ">=", beginTime).and("date", "<=", endTime).findAll(); |
| | | // } |
| | | if (isRechargeList) { |
| | | listData = baseDao.rechargeDao().findByTime(beginTime, endTime); |
| | | } else { |
| | | listData = baseDao.userCardDao().findByTime(beginTime, endTime); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | return; |
| | | } |
| | | if (isRechargeList) { |
| | | title = new String[]{"村号", "用户名", "户号", "充值日期", "充值金额(元)", "剩余金额(元)"}; |
| | | title = new String[]{"设备序列号", "用户名", "身份证号", "充值日期", "充值金额(元)", "剩余金额(元)"}; |
| | | fileName = file.toString() + "/" + ExcelUtil.outRechargePathName; |
| | | } else { |
| | | title = new String[]{"村号", "用户名", "户号", "注册日期", "电话", "水权内水量", "亩数", "状态"}; |
| | | title = new String[]{"设备序列号", "用户名", "身份证号", "注册日期", "电话"}; |
| | | fileName = file.toString() + "/" + ExcelUtil.outUserPathName; |
| | | } |
| | | ExcelUtil.initExcel(fileName, title); |