平差上传测试完成,上传最后一步是注释状态

This commit is contained in:
2026-06-06 15:10:43 +08:00
parent c7ebac49a0
commit 00091172ee
8 changed files with 14 additions and 12 deletions

View File

@@ -221,7 +221,7 @@ class DeviceAutomation:
# task_data = apis.get_measurement_task()
# logging.info(f"设备 {self.device_id} 获取到的测量任务: {task_data}")
task_data = {
"id": 53,
"id": 21,
"user_name": "czsczq115ykl",
"name": "czsczq115ykl",
"line_num": "L220076",
@@ -236,8 +236,10 @@ class DeviceAutomation:
# continue
# 设置全局变量
global_variable.GLOBAL_USERNAME = task_data.get('user_name', '')
global_variable.GLOBAL_CURRENT_PROJECT_NAME = task_data.get('line_name', '')
global_variable.GLOBAL_LINE_NUM = task_data.get('line_num', '')
global_variable.GLOBAL_ACCOUNT_ID = task_data.get('id', 0)
logging.info(f"设备 {self.device_id} 当前要处理的项目名称:{global_variable.GLOBAL_CURRENT_PROJECT_NAME}")
# 执行测量操作
@@ -263,12 +265,12 @@ class DeviceAutomation:
logging.info(f"设备 {self.device_id}{task_count}个任务完成")
task_count += 1
# +++++++++++++white+++++++++++++++++
# # +++++++++++++white+++++++++++++++++
logging.info(f"设备 {self.device_id} 已完成{task_count}个任务,结束打数据流程")
if task_count == 0:
logging.error(f"没有完成打数据的线路,结束任务")
return False
# logging.info(f"设备 {self.device_id} 已完成{task_count}个任务,结束打数据流程")
# if task_count == 0:
# logging.error(f"没有完成打数据的线路,结束任务")
# return False
# 执行打数据加转点
if not self.check_station.run():