fix: mpoitstat correct 时调用错误

This commit is contained in:
caoqianming 2024-05-16 11:21:07 +08:00
parent 6bb6a2d2d7
commit 4d65407e39
1 changed files with 1 additions and 0 deletions

View File

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