diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index d18e7f97..a3835dde 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -339,6 +339,7 @@ def cal_enstat(type, sflogId, mgroupId, year, month, day, hour, year_s, month_s, item['cost_unit'] = get_cost_unit(mgroup, fee, year_s, month_s) other_cost_unit = other_cost_unit + item['cost_unit'] other_cost_data.append(item) + enstat.other_cost_data = other_cost_data enstat.production_cost_unit = imaterial_cost_unit + other_cost_unit enstat.save()