diff --git a/service/ticket/ticket_base_service.py b/service/ticket/ticket_base_service.py index 7d22734b..3d2eec2e 100644 --- a/service/ticket/ticket_base_service.py +++ b/service/ticket/ticket_base_service.py @@ -1662,8 +1662,10 @@ def get_next_state_id_by_transition_and_ticket_info(cls, ticket_id=0, ticket_req if condition_expression and json.loads(condition_expression): # 存在条件表达式,需要根据表达式计算下个状态 condition_expression_list = json.loads(condition_expression) - # 获取工单所有字段的值 - ticket_all_value_dict, msg = cls.get_ticket_all_field_value(ticket_id) + ticket_all_value_dict = {} + if ticket_id: + # 获取工单所有字段的值 + ticket_all_value_dict, msg = cls.get_ticket_all_field_value(ticket_id) # 更新当前更新的字段的值 ticket_all_value_dict.update(ticket_req_dict)