| | |
| | | if (ObjectUtil.isNull(snCodeObjcet)){ |
| | | miloService.writeToOpcShort(ReadWriteEntity.builder().identifier(thoroughfare + "." + device + ".RecordDataDone").value(12).build()); |
| | | }else{ |
| | | String productNum = snCodeObjcet.toString(); |
| | | String productNum = snCodeObjcet.toString().trim(); |
| | | if(productNum.length()<10){ |
| | | miloService.writeToOpcShort(ReadWriteEntity.builder().identifier(thoroughfare + "." + device + ".RecordDataDone").value(12).build()); |
| | | }else{ |
| | |
| | | }else { |
| | | |
| | | Integer result = 21; |
| | | String snCode = snCodeObjcet.toString();//产品SN |
| | | String orderNumber = orderObjcet.toString();//工单号 |
| | | String snCode = snCodeObjcet.toString().trim();//产品SN |
| | | String orderNumber = orderObjcet.toString().trim();//工单号 |
| | | if(snCode.length()<10){ |
| | | result = 22; |
| | | miloService.writeToOpcShort(ReadWriteEntity.builder().identifier(thoroughfare + "." + device + ".RecordDataDone").value(result).build()); |