diff --git a/apps/ecm/tasks.py b/apps/ecm/tasks.py index 6ee6c450..2ded1b86 100644 --- a/apps/ecm/tasks.py +++ b/apps/ecm/tasks.py @@ -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() diff --git a/apps/wf/services.py b/apps/wf/services.py index 4f5b0f80..1b226c6e 100755 --- a/apps/wf/services.py +++ b/apps/wf/services.py @@ -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)