cl
2024-08-14 8fb8312ddd3e857e35cc853012345a6aca1937f9
修改采集参数
已修改1个文件
6 ■■■■ 文件已修改
jcdm-main/src/main/java/com/jcdm/main/plcserver/sub/OPCUaSubscription.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-main/src/main/java/com/jcdm/main/plcserver/sub/OPCUaSubscription.java
@@ -113,7 +113,7 @@
                        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{
@@ -152,8 +152,8 @@
                            }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());