| | |
| | | for (PwrdevAlarm p : list) { |
| | | p.setAlarmName(AlarmDaoFactory.getAllAlarmName(p.getAlmType())); |
| | | if (p.getAlmIndex() != 0) { |
| | | p.setAlarmName(p.getAlarmName().replace("N", "第" + p.getAlmIndex() + "路")); |
| | | p.setAlarmName(p.getAlarmName().replace("N", p.getAlmIndex() + "")); |
| | | } |
| | | } |
| | | // PageInfo pageInfo=new PageInfo(list); |
| | |
| | | for (PwrdevAlarmHistory p : list) { |
| | | p.setAlarmName(AlarmDaoFactory.getAllAlarmName(p.getAlmType())); |
| | | if (p.getAlmIndex() != 0) { |
| | | p.setAlarmName(p.getAlarmName().replace("N", "第" + p.getAlmIndex() + "路")); |
| | | p.setAlarmName(p.getAlarmName().replace("N", p.getAlmIndex() + "")); |
| | | } |
| | | } |
| | | PageInfo pageInfo = new PageInfo(list); |
| | |
| | | //先验证 |
| | | int flag = decryptInterface(param.getInterfaceNumber()); |
| | | if (flag == 1) { |
| | | List<PwrdevAcdcdata> powerRts = pwrdevAcdcdataMapper.getPowerRealtime(param.getPowerDeviceIds()); |
| | | List<Fbs9100State> fbs9100States = fbs9100StateMapper.getRealtime(param.getDeviceIds()); |
| | | List<BattRtdata> battRtDatas = battRtdataMapper.getRealtime(param.getStationIds()); |
| | | List<BattRtstate> battRtstates = battRtstateMapper.getRealtime(param.getBattgroupIds()); |
| | | //判断param.getPowerDeviceIds()是否为空,不为空则查询 |
| | | List<PwrdevAcdcdata> powerRts = new ArrayList<>(); |
| | | if (param.getPowerDeviceIds() != null && param.getPowerDeviceIds().size() > 0) { |
| | | powerRts = pwrdevAcdcdataMapper.getPowerRealtime(param.getPowerDeviceIds()); |
| | | } |
| | | List<Fbs9100State> fbs9100States = new ArrayList<>(); |
| | | if (param.getDeviceIds() != null && param.getDeviceIds().size() > 0) { |
| | | fbs9100States = fbs9100StateMapper.getRealtime(param.getDeviceIds()); |
| | | } |
| | | List<BattRtdata> battRtDatas = new ArrayList<>(); |
| | | if (param.getStationIds() != null && param.getStationIds().size() > 0) { |
| | | battRtDatas = battRtdataMapper.getRealtime(param.getStationIds()); |
| | | } |
| | | List<BattRtstate> battRtstates = new ArrayList<>(); |
| | | if (param.getBattgroupIds() != null && param.getBattgroupIds().size() > 0) { |
| | | battRtstates = battRtstateMapper.getRealtime(param.getBattgroupIds()); |
| | | } |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("powerRts", powerRts); |
| | | map.put("fbs9100States", fbs9100States); |
| | |
| | | for (PwrdevAlarm p : powerAlarmList) { |
| | | p.setAlarmName(AlarmDaoFactory.getAllAlarmName(p.getAlmType())); |
| | | if (p.getAlmIndex() != 0) { |
| | | p.setAlarmName(p.getAlarmName().replace("N", "第" + p.getAlmIndex() + "路")); |
| | | p.setAlarmName(p.getAlarmName().replace("N", p.getAlmIndex() + "")); |
| | | } |
| | | } |
| | | |
| | |
| | | for (PwrdevAlarm p : powerAlarmList) { |
| | | p.setAlarmName(AlarmDaoFactory.getAllAlarmName(p.getAlmType())); |
| | | if (p.getAlmIndex() != 0) { |
| | | p.setAlarmName(p.getAlarmName().replace("N", "第" + p.getAlmIndex() + "路")); |
| | | p.setAlarmName(p.getAlarmName().replace("N", p.getAlmIndex() + "")); |
| | | } |
| | | } |
| | | map.put("powerAlarmList",powerAlarmList); |
| | |
| | | int flag = decryptInterface(interfaceNumber); |
| | | if (flag == 1) { |
| | | boolean bl = fbs9100SetparamService.sendCmdToFBS9100Dev2(opCmd, testCmd != null ? testCmd : 0, devId, battGroupNum); |
| | | Fbs9100Setparam setparam = fbs9100SetparamMapper.serchbyDev_id(devId); |
| | | Fbs9100Setparam setparam = fbs9100SetparamMapper.serchbyDev_id(devId,battGroupNum-1); |
| | | return new Response().setII(1, setparam, bl, bl == true ? "查询成功!" : "设置9100参数失败,请检查网络!"); |
| | | }else{ |
| | | return new Response().set(1, "越权访问"); |