fix: 工单流水号+1

This commit is contained in:
caoqianming 2023-06-08 10:05:42 +08:00
parent a7df6d339c
commit e8886902f2
1 changed files with 1 additions and 1 deletions

View File

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