统计产品数量bug

This commit is contained in:
caoqianming 2022-03-15 11:13:17 +08:00
parent 9236d1a0bb
commit 80956f41c2
1 changed files with 1 additions and 1 deletions

View File

@ -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()