| | |
| | | return datas; |
| | | } |
| | | |
| | | @Override |
| | | public Double getSensorSumByMacs(String sensorCode, List macs, String time) { |
| | | String timeUnits = time.substring(0, 7).replace("-", ""); |
| | | return historyHourlyMapper.getSensorSumByMacs(sensorCode, macs, time, timeUnits); |
| | | } |
| | | |
| | | @Override |
| | | public Double getSensorAvgByMacs(String sensorCode, List macs, String time) { |
| | | String timeUnits = time.substring(0, 7).replace("-", ""); |
| | | return historyHourlyMapper.getSensorAvgByMacs(sensorCode, macs, time, timeUnits); |
| | | } |
| | | |
| | | /** |
| | | * @Description: 多表查询,传入表名集合,以及条件wrapper,返回数据 |
| | | * @Param: [wrapper, tableNames] |