| | |
| | | MachineAttrDto machineAttrDto = new MachineAttrDto(); |
| | | machineAttrDto.setMachineIds(machineIds.toArray(new String[machineIds.size()])); |
| | | machineAttrDto.setCommunityId(machines.get(0).getCommunityId()); |
| | | machineAttrDto.setDomain(machineDto.getDomain()); |
| | | List<MachineAttrDto> machineAttrDtos = machineAttrInnerServiceSMOImpl.queryMachineAttrs(machineAttrDto); |
| | | |
| | | List<MachineAttrDto> tMachineAttrDtos = null; |
| | |
| | | if (StringUtil.isEmpty(tMachineAttrDto.getValueName())) { |
| | | tMachineAttrDto.setValueName(tMachineAttrDto.getValue()); |
| | | } |
| | | if (tMachineDto.getMachineId().equals(tMachineAttrDto.getMachineId())) { |
| | | tMachineAttrDtos.add(tMachineAttrDto); |
| | | if (!tMachineDto.getMachineId().equals(tMachineAttrDto.getMachineId())) { |
| | | continue; |
| | | } |
| | | tMachineAttrDtos.add(tMachineAttrDto); |
| | | //todo 刷入协议 |
| | | if(MachineAttrDto.SPEC_HM.equals(tMachineAttrDto.getSpecCd())){ |
| | | tMachineDto.setHmId(tMachineAttrDto.getValue()); |
| | | } |
| | | } |
| | | tMachineDto.setMachineAttrs(tMachineAttrDtos); |