Revert "fix: 工单流水号不用加1"

This reverts commit 265d89c6f8.
This commit is contained in:
caoqianming 2023-06-09 09:08:44 +08:00
parent 059b044478
commit 94ac4ddbe9
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