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]: