From 94ac4ddbe900f81698aafe75a69e226bd713a20d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 9 Jun 2023 09:08:44 +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=E4=B8=8D=E7=94=A8=E5=8A=A01"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 265d89c6f848b51d582fd4ccc5423d39dbcde2fa. --- 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 df3b1745..34bcf126 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() + create_time__gte=today, create_time__lte=now, workflow=workflow).count() + 1 return '%s_%04d%02d%02d%04d' % (workflow.sn_prefix, now.year, now.month, now.day, ticket_day_count_new) @classmethod