于紫祥_1901
2020-08-12 f718fb9c06fa75b65870a3f5ef2fea10054009aa
src/main/java/com/moral/service/impl/MonitorPointServiceImpl.java
@@ -796,5 +796,31 @@
        return params;
    }
    @Override
    public JSONObject getMacList(int monitPointId) {
        JSONObject params = new JSONObject();
        MonitorPoint monitorPoint = monitorPointMapper.getMonitorPointById(monitPointId);
        //获取厂界所有设备
        List<Device> deviceList = deviceService.getDeviceById2(monitPointId);
        params.put("longitudeCompany",monitorPoint.getLongitude());
        params.put("latitudeCompany",monitorPoint.getLatitude());
        params.put("latitudeCompany",monitorPoint.getLatitude());
        params.put("monitPointId",monitPointId);
        params.put("deviceList",deviceList);
        return params;
    }
    @Override
    public List<MonitorPoint> getMonitorPointListByAccountId(int id) {
        return monitorPointMapper.getMonitorPointListByAccountId(id);
    }
    @Override
    public MonitorPoint byIdGetMonitorPoint(int id) {
        return monitorPointMapper.byIdGetMonitorPoint(id);
    }
}