diff --git a/apps/wpm/tasks.py b/apps/wpm/tasks.py index ac25c4d2..43e4b400 100644 --- a/apps/wpm/tasks.py +++ b/apps/wpm/tasks.py @@ -110,7 +110,7 @@ def cal_enstat_when_pcoal_heat_change(sflogId): enstats = EnStat.objects.filter(mgroup__name='回转窑', year_s=year_s, month_s=month_s, day_s=day_s, type__in = ['hour_s', 'sflog', 'day_s']) for enstat in enstats: cal_enstat_pcoal_change(enstat, pcoal_heat) - enstats_other = EnStat.objects.filter(mgroup__name='回转窑', year_s=year_s, month_s=month_s, day_s=day_s, type__in = ['month_st', 'month_s', 'year_s']) + enstats_other = EnStat.objects.filter(mgroup__name='回转窑', year_s=year_s, month_s=month_s, type__in = ['month_st', 'month_s'])|EnStat.objects.filter(mgroup__name='回转窑', year_s=year_s, type__in = ['year_s']) for enstat in enstats_other: cal_enstat_pcoal_change(enstat, pcoal_heat)