fix: count_working获取逻辑优化
This commit is contained in:
parent
8ac3ad3477
commit
e329c8cbc8
|
@ -120,7 +120,7 @@ class WMaterial(CommonBDModel):
|
|||
|
||||
@property
|
||||
def count_working(self):
|
||||
return Mlogb.objects.filter(wm_in=self, mlog__work_end_time__isnull=True).aggregate(count=Sum('count_use'))['count'] or 0
|
||||
return Mlogb.objects.filter(wm_in=self, submit_time__isnull=True).aggregate(count=Sum('count_use'))['count'] or 0
|
||||
|
||||
@classmethod
|
||||
def mat_in_qs(cls, mtask: Mtask, qs=None):
|
||||
|
|
Loading…
Reference in New Issue