fix: cal_enstat_when_pcoal_heat_change的qs获取bug

This commit is contained in:
caoqianming 2023-08-03 14:09:47 +08:00
parent 7fd10f3e51
commit c7b7d9cec4
1 changed files with 1 additions and 1 deletions

View File

@ -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)