事件过期处理bug
This commit is contained in:
parent
e9fe902618
commit
586fdfb219
|
@ -70,7 +70,7 @@ def check_event_timeout():
|
|||
"""
|
||||
for i in Event.objects.filter(handle_user=None, is_timeout=False):
|
||||
cate = i.cates.all().order_by('priority', 'create_time').first()
|
||||
if cate.hanle_minute > 0 and (timezone.now()-i.create_time).seconds > cate.hanle_minute * 60:
|
||||
if cate.handle_minute > 0 and (timezone.now()-i.create_time).seconds > cate.handle_minute * 60:
|
||||
i.is_timeout = True
|
||||
i.save()
|
||||
|
||||
|
|
|
@ -150,6 +150,7 @@ class WfService(object):
|
|||
multi_all_person={})
|
||||
multi_all_person_dict = {}
|
||||
destination_participant_type, destination_participant = state.participant_type, state.participant
|
||||
print(state.name, destination_participant_type, destination_participant)
|
||||
if destination_participant_type == State.PARTICIPANT_TYPE_FIELD:
|
||||
destination_participant = new_ticket_data.get(destination_participant, 0) if destination_participant \
|
||||
in new_ticket_data else Ticket.ticket_data.get(destination_participant, 0)
|
||||
|
|
Loading…
Reference in New Issue