From 1f8963514f43ac30219d17eb29b40d0762d9c4a5 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 23 Mar 2023 17:15:56 +0800 Subject: [PATCH] =?UTF-8?q?refector:=20=E7=A6=BB=E8=81=8C=E6=88=96?= =?UTF-8?q?=E9=80=80=E4=BC=91=E5=8F=AF=E6=8F=90=E4=BE=9B=E5=BD=93=E5=89=8D?= =?UTF-8?q?8h=E5=86=85=E7=9A=84=E9=97=A8=E7=A6=81=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/hrm/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hrm/serializers.py b/apps/hrm/serializers.py index 1081c940..43e0b3e9 100755 --- a/apps/hrm/serializers.py +++ b/apps/hrm/serializers.py @@ -94,7 +94,7 @@ class EmployeeCreateUpdateSerializer(CustomModelSerializer): end_time = now + timedelta(days=7300) if instance.job_state in [20, 30] and old_job_state == 10: # 离职或退休 start_time = now - end_time = now + timedelta(minutes=60) + end_time = now + timedelta(hours=8) elif instance.job_state == 10 and old_job_state in [20, 30] and instance.type == 'employee': # 正式员工重新在职 start_time = now end_time = now + timedelta(days=7300)