From b939fcbef29d011220b2f415fffcf7d02a91af1a Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 24 Nov 2025 13:35:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20resignation=E6=B7=BB=E5=8A=A0ticketMixi?= =?UTF-8?q?n2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/hrm/services.py | 15 --------------- apps/hrm/views.py | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/apps/hrm/services.py b/apps/hrm/services.py index 96c81c49..3d53fd72 100755 --- a/apps/hrm/services.py +++ b/apps/hrm/services.py @@ -498,18 +498,3 @@ class HrmService: -def bind_resignation(ticket: Ticket, transition: Transition, new_ticket_data: dict): - ins = Resignation.objects.get(id=new_ticket_data['t_id']) - if ins.ticket and ins.ticket.id != ticket.id: - raise ParseError('重复创建工单') - ticket_data = ticket.ticket_data - ticket_data.update({ - 't_model': 'resignation', - 't_id': ins.id, - }) - ticket.ticket_data = ticket_data - ticket.create_by = ins.create_by - ticket.save() - if ins.ticket is None: - ins.ticket = ticket - ins.save() \ No newline at end of file diff --git a/apps/hrm/views.py b/apps/hrm/views.py index 08fb5d35..7c13f17d 100755 --- a/apps/hrm/views.py +++ b/apps/hrm/views.py @@ -399,4 +399,4 @@ class ResignationViewSet(TicketMixin, EuModelViewSet): queryset = Resignation.objects.all() serializer_class = ResignationSerializer search_fields = ["employee__name"] - workflow_key = ["wf_resignation"] \ No newline at end of file + workflow_key = "wf_resignation" \ No newline at end of file