feat: bind_resignation bug
This commit is contained in:
parent
590357468d
commit
4b377e115c
|
|
@ -499,7 +499,7 @@ class HrmService:
|
|||
|
||||
|
||||
def bind_resignation(ticket: Ticket, transition: Transition, new_ticket_data: dict):
|
||||
ins = Resignation.objects.get(id=new_ticket_data['rpj'])
|
||||
ins = Resignation.objects.get(id=new_ticket_data['t_id'])
|
||||
if ins.ticket and ins.ticket.id != ticket.id:
|
||||
raise ParseError('重复创建工单')
|
||||
ticket.create_by = ins.create_by
|
||||
|
|
|
|||
Loading…
Reference in New Issue