Browse Source

wk 20230519

yct 2 years ago
parent
commit
f03492beb1
1 changed files with 11 additions and 0 deletions
  1. 11 0
      指令入队节点/PushCommand.py

+ 11 - 0
指令入队节点/PushCommand.py

@@ -267,6 +267,17 @@ class DBCommand():
                     #查询到单元号,给指令表单单元号赋值
                         unit_id=space[0][5]
                         cmd.unit_id=unit_id
+                        ts = message.table_statu()
+                        ts.execute_statu=message.eNormal
+                        if unit_id == 1:
+                            ch = "A"
+                        elif unit_id == 2:
+                            ch = "B"
+                        elif unit_id == 3:
+                            ch = "C"
+                        ts.statu_description="%s 取车成功,请前往%s单元出口取车!"%(car_number,ch)
+                        cmd.statu.CopyFrom(ts)
+                        
                         #给指令表单车位信息赋值
                         space_info=message.parkspace_info()
                         space_info.id=space[0][0]