统计产品数量bug
This commit is contained in:
parent
9236d1a0bb
commit
80956f41c2
|
@ -15,7 +15,7 @@ class SrmServices:
|
|||
if datetime_start:
|
||||
objs = objs.filter(create_time__gte=datetime_start)
|
||||
if datetime_end:
|
||||
objs = WproductFlow.objects.filter(create_time__lte=datetime_end)
|
||||
objs = objs.filter(create_time__lte=datetime_end)
|
||||
count = objs.count()
|
||||
count_ok = objs.filter(act_state__in=[WProduct.WPR_ACT_STATE_INM,
|
||||
WProduct.WPR_ACT_STATE_OK, WProduct.WPR_ACT_STATE_SELLED]).count()
|
||||
|
|
Loading…
Reference in New Issue