| | |
| | | @Override |
| | | public List<Device> getDevicesByMonitorPointId(Integer monitorPointId) { |
| | | QueryWrapper<Device> wrapper = new QueryWrapper(); |
| | | wrapper.eq("monitor_point_id",monitorPointId); |
| | | wrapper.eq("monitor_point_id", monitorPointId); |
| | | wrapper.eq("is_delete", Constants.NOT_DELETE); |
| | | return deviceMapper.selectList(wrapper); |
| | | } |
| | |
| | | public List<Map<String, Object>> getTrendChartData(Map<String, Object> params) { |
| | | Object type = params.get("type"); |
| | | //设备mac |
| | | String[] macs = params.remove("macs").toString().split(","); |
| | | List<String> macs = (List<String>) params.remove("macs"); |
| | | //所选时间 |
| | | String[] times = params.remove("times").toString().split(","); |
| | | List<String> times = (List<String>) params.remove("times"); |
| | | //因子code |
| | | String sensorCode = params.get("sensorCode").toString(); |
| | | String end; |