From 2acfd422554673f22b2520f55cdb2c815278fb25 Mon Sep 17 00:00:00 2001 From: Yu Sun Date: Sun, 21 Aug 2022 12:05:14 +0800 Subject: [PATCH] change parent_code back to parent_device_code(wtf --- EdgeManager/EDataCapture/EDataCapture.php | 4 ++-- EdgeManager/EDataCapture/ENodeConfigure.php | 2 +- README.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/EdgeManager/EDataCapture/EDataCapture.php b/EdgeManager/EDataCapture/EDataCapture.php index d6e311f..22248a3 100644 --- a/EdgeManager/EDataCapture/EDataCapture.php +++ b/EdgeManager/EDataCapture/EDataCapture.php @@ -60,7 +60,7 @@ class EDataCapture { $this -> data[$row -> code][] = [ 'value' => $row -> value, 'device_code' => $row -> device_code, - 'parent_code' => $row -> parent_code ?? NULL, + 'parent_device_code' => $row -> parent_device_code ?? NULL, 'batch' => $row -> batch ?? NULL ]; } @@ -84,7 +84,7 @@ class EDataCapture { $code, $row['value'] === false ? 'f' : $row['value'], $row['device_code'], - $row['parent_code'] ?? NULL, + $row['parent_device_code'] ?? NULL, $row['batch'] ?? NULL ); } diff --git a/EdgeManager/EDataCapture/ENodeConfigure.php b/EdgeManager/EDataCapture/ENodeConfigure.php index 5d56c38..3dac386 100644 --- a/EdgeManager/EDataCapture/ENodeConfigure.php +++ b/EdgeManager/EDataCapture/ENodeConfigure.php @@ -44,7 +44,7 @@ class ENodeConfigure { v_float float8, v_bool bool, device_code text NOT NULL, - parent_code text, + parent_device_code text, batch text, capture_time timestamp NOT NULL DEFAULT NOW() )', $table_name diff --git a/README.md b/README.md index 5657ce6..edf437e 100644 --- a/README.md +++ b/README.md @@ -39,14 +39,14 @@ // value的类型需与type对应 "value": , "device_code": [string], // 必需字段 - "parent_code": [string], // 可选字段,对应MES中的code + "parent_device_code": [string], // 可选字段,对应MES中的code "batch": [string] // 可选字段 }, { "code": , "value": , "device_code": [string], - "parent_code": [string], + "parent_device_code": [string], "batch": [string] }, ...