|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return  deviceMapper.countByTimes(start, end, format); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public List<Device> getDevicesByMonitorPointId(Integer monitorPointId) { | 
|---|
|  |  |  | Device device = new Device(); | 
|---|
|  |  |  | device.setMonitorPointId(monitorPointId); | 
|---|
|  |  |  | device.setIsDelete(Constants.IS_DELETE_FALSE); | 
|---|
|  |  |  | return deviceMapper.select(device); | 
|---|
|  |  |  | List<Device> devices = deviceMapper.select(device); | 
|---|
|  |  |  | for (Device device2 : devices) { | 
|---|
|  |  |  | DeviceProperty deviceProperty = devicePropertyMapper.selectByPrimaryKey(device2.getId()); | 
|---|
|  |  |  | device2.setDeviceProperty(deviceProperty); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return devices; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|