From 265d89c6f848b51d582fd4ccc5423d39dbcde2fa Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 8 Jun 2023 10:26:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B7=A5=E5=8D=95=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=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 --- 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