| | |
| | | String cellCode = value1.toString(); |
| | | List<DaTestDeviceInterfaceTemp> list = daTestDeviceInterfaceTempService.list(new LambdaQueryWrapper<DaTestDeviceInterfaceTemp>() |
| | | //.eq(DaTestDeviceInterfaceTemp::getStationCode, "M1OP020") |
| | | .eq(DaTestDeviceInterfaceTemp::getProductNum,cellCode)); |
| | | .eq(DaTestDeviceInterfaceTemp::getProductNum,cellCode) |
| | | .orderByDesc(DaTestDeviceInterfaceTemp::getCreateTime) |
| | | ); |
| | | if (CollUtil.isNotEmpty(list)){ |
| | | DaTestDeviceInterfaceTemp daTestDeviceInterfaceTemp = list.get(list.size()-1); |
| | | DaTestDeviceInterfaceTemp daTestDeviceInterfaceTemp = list.get(0); |
| | | if (Constants.ONE.equals(daTestDeviceInterfaceTemp.getTotalResult())){ |
| | | miloService.writeToOpcShort(ReadWriteEntity.builder().identifier(thoroughfare + "." + device + ".CellStatus_1").value(1).build()); |
| | | }else { |