Revert "fix: 工单流水号+1"

This reverts commit e8886902f2.
This commit is contained in:
caoqianming 2023-06-09 09:11:16 +08:00
parent 94ac4ddbe9
commit 91b2ac3755
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() + 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