From 20bbbcc1d14536ddaa498ac84a6008828df8dc1c Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 13 十二月 2023 20:23:11 +0800 Subject: [PATCH] 往plc写目标数时,优先往写入地址写,没有写入地址再往读取地址写 --- model/common/common.go | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/model/common/common.go b/model/common/common.go index dee9b4c..b0a9b22 100644 --- a/model/common/common.go +++ b/model/common/common.go @@ -121,11 +121,15 @@ // MsgTaskStatusUpdate 浠诲姟鐘舵�佹敼鍙� type MsgTaskStatusUpdate struct { - WorkOrderId string `json:"workOrderId"` //宸ュ崟缂栧彿 - ProcedureID string `json:"procedureId"` // 宸ュ簭 - DeviceId string `json:"deviceId"` //鐢ㄤ簬杩囨护鑾峰彇nsq娑堟伅 - IsProcessing bool //鏄惁澶勭悊涓� - IsFinish bool //鏄惁瀹屾垚 + WorkOrderId string `json:"workOrderId"` //宸ュ崟缂栧彿 + ProcedureID string `json:"procedureId"` // 宸ュ簭 + DeviceId string `json:"deviceId"` //鐢ㄤ簬杩囨护鑾峰彇nsq娑堟伅 + IsProcessing bool //鏄惁澶勭悊涓� + IsFinish bool //鏄惁瀹屾垚 + FinishAmount int `json:"finishAmount"` //isFinish = true鏃跺彇宸ュ簭鏈�缁堝姞宸ユ暟浼犱笂鍘� + ProductProcedureID string `json:"productProcedureID"` //浜у搧宸ュ簭id + StartTs int64 `json:"start_ts"` //寮�濮嬫椂闂� + FinishTs int64 `json:"finish_ts"` //缁撴潫鏃堕棿 } // DeviceMsg 涓嬪彂鍒扮粓绔殑璁惧淇℃伅 -- Gitblit v1.8.0