| | |
| | | page.getRecords().get(j).setType(0); |
| | | } |
| | | } |
| | | |
| | | //判断设备是否在线 |
| | | String Heartbeat = page.getRecords().get(j).getHeartbeat(); |
| | | if (Heartbeat != null){ |
| | | long st = sim.parse(Heartbeat).getTime(); |
| | | long en = sim.parse(end).getTime(); |
| | | if ((en - st) >= (60 * 60 * 24 * 1000)){ |
| | | page.getRecords().get(j).setOnlineStatus("0"); |
| | | }else{ |
| | | page.getRecords().get(j).setOnlineStatus("1"); |
| | | } |
| | | }else{ |
| | | page.getRecords().get(j).setOnlineStatus("0"); |
| | | } |
| | | } |
| | | |
| | | |
| | | return R.data(page); |
| | | } |
| | |
| | | return R.data(map); |
| | | } |
| | | |
| | | /** |
| | | * 监控台统计 |
| | | * @author arsn 2021-5-6 |
| | | * @return |
| | | */ |
| | | @PostMapping("/SeleCs") |
| | | public R SeleCs() { |
| | | return R.data(equipmentService.selEqTypeSum()); |
| | | } |
| | | |
| | | } |