fix: month_st 需提前返回
This commit is contained in:
parent
924c5d09b1
commit
9e15b34ed7
|
@ -369,9 +369,9 @@ def cal_enstat(type, sflogId, mgroupId, year, month, day, hour, year_s, month_s,
|
|||
if sflog:
|
||||
year_s, month_s, day_s = sflog.get_ymd
|
||||
team = sflog.team
|
||||
# 如果没有班组,那么month_st无需计算
|
||||
if team is None and type == "month_st":
|
||||
return year_s, month_s, day_s
|
||||
# 如果没有班组,那么month_st无需计算
|
||||
if team is None and type == "month_st":
|
||||
return year_s, month_s, day_s
|
||||
if type == "hour_s":
|
||||
enstat, _ = EnStat.objects.get_or_create(
|
||||
type="hour_s",
|
||||
|
|
Loading…
Reference in New Issue