fix: mpoitstat correct 时调用错误
This commit is contained in:
parent
6bb6a2d2d7
commit
4d65407e39
|
@ -358,6 +358,7 @@ def cal_enstat(type, sflogId, mgroupId, year, month, day, hour, year_s, month_s,
|
|||
this_cal_attrs = cal_attrs[:]
|
||||
|
||||
mgroup = Mgroup.objects.get(id=mgroupId)
|
||||
sflog = None # 默认无班次
|
||||
if sflogId:
|
||||
sflog = SfLog.objects.get(id=sflogId)
|
||||
elif year and month and day and hour is not None:
|
||||
|
|
Loading…
Reference in New Issue