| | |
| | | queryWrapper.select("mac", "name").in("mac", macs); |
| | | List<Device> devices = deviceMapper.selectList(queryWrapper); |
| | | |
| | | |
| | | //所选时间 |
| | | List<String> times = (List<String>) params.remove("times"); |
| | | //因子code |
| | |
| | | for (String start : times) { |
| | | if ("hour".equals(type)) { |
| | | end = DateUtils.getDateAddDay(start, 1); |
| | | timeUnits = "hourly"; |
| | | String yearAndMonth = DateUtils.dateToDateString(DateUtils.getDate(start, DateUtils.yyyy_MM_dd_EN), DateUtils.yyyyMM_EN); |
| | | timeUnits = "hourly_" + yearAndMonth; |
| | | dateFormat = "%Y-%m-%d %H"; |
| | | } else if ("day".equals(type)) { |
| | | end = DateUtils.getDateAddMonth(start, 1); |