From 80956f41c223a03ca1bbe18e5bc63afedce0a998 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 15 Mar 2022 11:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E4=BA=A7=E5=93=81=E6=95=B0?= =?UTF-8?q?=E9=87=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/srm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/srm/services.py b/hb_server/apps/srm/services.py index de57324..2c3400b 100644 --- a/hb_server/apps/srm/services.py +++ b/hb_server/apps/srm/services.py @@ -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()