fix: 工单流水号+1
This commit is contained in:
parent
a7df6d339c
commit
e8886902f2
|
@ -103,7 +103,7 @@ class WfService(object):
|
||||||
"""
|
"""
|
||||||
today = str(now)[:10]+' 00:00:00'
|
today = str(now)[:10]+' 00:00:00'
|
||||||
ticket_day_count_new = Ticket.objects.get_queryset(all=True).filter(
|
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)
|
return '%s_%04d%02d%02d%04d' % (workflow.sn_prefix, now.year, now.month, now.day, ticket_day_count_new)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in New Issue