change parent_code back to parent_device_code(wtf

This commit is contained in:
Yu Sun
2022-08-21 12:05:14 +08:00
parent ede4c9160d
commit 2acfd42255
3 changed files with 5 additions and 5 deletions

View File

@@ -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
);
}

View File

@@ -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

View File

@@ -39,14 +39,14 @@
// value的类型需与type对应
"value": <string | int | float | bool>,
"device_code": [string], // 必需字段
"parent_code": [string], // 可选字段对应MES中的code
"parent_device_code": [string], // 可选字段对应MES中的code
"batch": [string] // 可选字段
},
{
"code": <string>,
"value": <string | int | float | bool>,
"device_code": [string],
"parent_code": [string],
"parent_device_code": [string],
"batch": [string]
},
...