fix: 工单流水号不用加1
This commit is contained in:
parent
ca485d9c78
commit
265d89c6f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue