change parent_code back to parent_device_code(wtf
This commit is contained in:
@@ -60,7 +60,7 @@ class EDataCapture {
|
|||||||
$this -> data[$row -> code][] = [
|
$this -> data[$row -> code][] = [
|
||||||
'value' => $row -> value,
|
'value' => $row -> value,
|
||||||
'device_code' => $row -> device_code,
|
'device_code' => $row -> device_code,
|
||||||
'parent_code' => $row -> parent_code ?? NULL,
|
'parent_device_code' => $row -> parent_device_code ?? NULL,
|
||||||
'batch' => $row -> batch ?? NULL
|
'batch' => $row -> batch ?? NULL
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -84,7 +84,7 @@ class EDataCapture {
|
|||||||
$code,
|
$code,
|
||||||
$row['value'] === false ? 'f' : $row['value'],
|
$row['value'] === false ? 'f' : $row['value'],
|
||||||
$row['device_code'],
|
$row['device_code'],
|
||||||
$row['parent_code'] ?? NULL,
|
$row['parent_device_code'] ?? NULL,
|
||||||
$row['batch'] ?? NULL
|
$row['batch'] ?? NULL
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class ENodeConfigure {
|
|||||||
v_float float8,
|
v_float float8,
|
||||||
v_bool bool,
|
v_bool bool,
|
||||||
device_code text NOT NULL,
|
device_code text NOT NULL,
|
||||||
parent_code text,
|
parent_device_code text,
|
||||||
batch text,
|
batch text,
|
||||||
capture_time timestamp NOT NULL DEFAULT NOW()
|
capture_time timestamp NOT NULL DEFAULT NOW()
|
||||||
)', $table_name
|
)', $table_name
|
||||||
|
|||||||
@@ -39,14 +39,14 @@
|
|||||||
// value的类型需与type对应
|
// value的类型需与type对应
|
||||||
"value": <string | int | float | bool>,
|
"value": <string | int | float | bool>,
|
||||||
"device_code": [string], // 必需字段
|
"device_code": [string], // 必需字段
|
||||||
"parent_code": [string], // 可选字段,对应MES中的code
|
"parent_device_code": [string], // 可选字段,对应MES中的code
|
||||||
"batch": [string] // 可选字段
|
"batch": [string] // 可选字段
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"code": <string>,
|
"code": <string>,
|
||||||
"value": <string | int | float | bool>,
|
"value": <string | int | float | bool>,
|
||||||
"device_code": [string],
|
"device_code": [string],
|
||||||
"parent_code": [string],
|
"parent_device_code": [string],
|
||||||
"batch": [string]
|
"batch": [string]
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user