old mode 100644
new mode 100755
| | |
| | | import com.java110.intf.common.IMachineInnerServiceSMO; |
| | | import com.java110.intf.user.IUserInnerServiceSMO; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | 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; |
| | |
| | | tMachineAttrDtos = new ArrayList<>(); |
| | | |
| | | for (MachineAttrDto tMachineAttrDto : machineAttrDtos) { |
| | | if (tMachineDto.getMachineId().equals(tMachineAttrDto.getMachineId())) { |
| | | tMachineAttrDtos.add(tMachineAttrDto); |
| | | if (StringUtil.isEmpty(tMachineAttrDto.getValueName())) { |
| | | tMachineAttrDto.setValueName(tMachineAttrDto.getValue()); |
| | | } |
| | | 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); |