From 768f7a9a22eab7c7b4c6e7c5c285b9867248b678 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 9 Sep 2024 13:33:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84equip=5Flast=5Fmlog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/datax.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/wpm/datax.py b/apps/wpm/datax.py index 7eadee1d..b10252e5 100644 --- a/apps/wpm/datax.py +++ b/apps/wpm/datax.py @@ -53,9 +53,10 @@ class AnaViewSet(GenericViewSet): for item in equip_qs_l: item['mstate'] = '未运行' if item['id'] in mlog_dict: - item['t_count_use'] = mlog_dict[item['id']]['t_count_use'] mlog_dict_v = mlog_dict[item['id']] + item['t_count_use'] = mlog_dict_v['t_count_use'] item['reminder_interval_list'] = mlog_dict_v['reminder_interval_list'] + item['work_start_time'] = mlog_dict_v['work_start_time'] item['mstate'] = tran_time_to_mstate(mstate_json, mlog_dict_v['reminder_interval_list'], mlog_dict_v['work_start_time'], now) if item['state'] in [Equipment.EQUIP_STATE_SCRAP, Equipment.EQUIP_STATE_FIX]: