feat: base 获取流转时排序按attribute_type2
This commit is contained in:
parent
666a9c169c
commit
260c9893eb
|
@ -26,7 +26,7 @@ class WfService(object):
|
||||||
"""
|
"""
|
||||||
获取工作流流转列表
|
获取工作流流转列表
|
||||||
"""
|
"""
|
||||||
return Transition.objects.filter(workflow=workflow, is_deleted=False).order_by("attribute_type", "id")
|
return Transition.objects.filter(workflow=workflow, is_deleted=False)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_workflow_start_state(workflow: Workflow):
|
def get_workflow_start_state(workflow: Workflow):
|
||||||
|
@ -77,7 +77,7 @@ class WfService(object):
|
||||||
"""
|
"""
|
||||||
获取状态可执行的操作
|
获取状态可执行的操作
|
||||||
"""
|
"""
|
||||||
return Transition.objects.filter(is_deleted=False, source_state=state).all()
|
return Transition.objects.filter(is_deleted=False, source_state=state).all().order_by("attribute_type", "id")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_ticket_steps(cls, ticket: Ticket):
|
def get_ticket_steps(cls, ticket: Ticket):
|
||||||
|
|
Loading…
Reference in New Issue