From 91b2ac375565e4f28c19d4267f736fb392d6500b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 9 Jun 2023 09:11:16 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20=E5=B7=A5=E5=8D=95=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E5=8F=B7+1"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e8886902f2a23d443bb97559411ef4ab05e1624c. --- apps/wf/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wf/services.py b/apps/wf/services.py index 34bcf126..df3b1745 100755 --- a/apps/wf/services.py +++ b/apps/wf/services.py @@ -103,7 +103,7 @@ class WfService(object): """ today = str(now)[:10]+' 00:00:00' ticket_day_count_new = Ticket.objects.get_queryset(all=True).filter( - create_time__gte=today, create_time__lte=now, workflow=workflow).count() + 1 + create_time__gte=today, create_time__lte=now, workflow=workflow).count() return '%s_%04d%02d%02d%04d' % (workflow.sn_prefix, now.year, now.month, now.day, ticket_day_count_new) @classmethod