| | |
| | | List<String> list = new ArrayList<>(); |
| | | for (SuYuan700 su : suList) { |
| | | List<String> sub = new ArrayList<>(); |
| | | sub.add(DateUtils.getYyyyMmDdHh(su.getCreateTime())); |
| | | if (null != su.getAddr1()) |
| | | sub.add(su.getAddr1() + ",概率:" + (su.getOdds1() * 100) + "%,X:" + su.getX1() + ",Y:" + su.getY1()); |
| | | if (null != su.getAddr2()) |
| | |
| | | String name = "AI-" + (i < 10 ? "0" : "") + i; |
| | | double rjz = mapper.selectDayAvg(yyyymmdd + "%", name); |
| | | double lj = mapper.selectAccumulate(start, end, name); |
| | | double lastLj = mapper.selectYearAccumulate(lastYear, name); |
| | | double lastLj = mapper.selectYearAccumulate(lastYear + "%", name); |
| | | double ljtb = CalculateUtils.round2((lj - lastLj) / lastLj * 100); |
| | | MonitorPointPosition point = commonService.select3dCheckPointByName(name); |
| | | String id = point.getId().substring(0, point.getId().lastIndexOf("_") + 1) + "0"; |
| | | List<SuYuan700> suList = mapper.selectSuYuanByTime(id, yyyy_mm_dd + " 00:00:00", yyyy_mm_dd + " 23:00:00"); |
| | | String ys = getYs(suList); |
| | | |
| | | list.add(new DayExcel("" + rjz, "" + lj, "" + ljtb, ys, "", "", "")); |
| | | list.add(new DayExcel("" + rjz, "" + lj, ljtb + "%", ys, "", "", "")); |
| | | } |
| | | |
| | | String filePath = createExcel("day", yesterday, list); |