| | |
| | | StaProtocol staProtocol = entry.getValue(); |
| | | vo.setSiteId(String.valueOf(entry.getKey())); // 站点编号 |
| | | vo.setWorkNo(staProtocol.getWorkNo()); // 工作号 |
| | | vo.setSiteStatus(SiteStatusType.process(staProtocol)); // 状态 |
| | | String faultDescription = staProtocol.getFaultDescription(); |
| | | vo.setSiteStatus(Cools.isEmpty(faultDescription) ? SiteStatusType.process(staProtocol) : SiteStatusType.SITE_ERROR); // 状态 |
| | | vo.setNearbySta(staProtocol.getNearbySta()); //RGV位置 |
| | | vos.add(vo); |
| | | } |
| | |
| | | |
| | | vo.setCanining(basDevp.getCanining()); // 能入 |
| | | vo.setCanouting(basDevp.getCanouting()); // 能出 |
| | | vo.setError(staProtocol.getFaultDescription()); |
| | | |
| | | return R.ok().add(vo); |
| | | } |