From 4e06efdc78bc413f241e8f366dadd353414df48c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 6 Sep 2023 08:38:59 +0800 Subject: [PATCH] =?UTF-8?q?refector:=20hrm=20serializer=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/hrm/serializers.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/hrm/serializers.py b/apps/hrm/serializers.py index 4f147aa7..b2ed9d9b 100755 --- a/apps/hrm/serializers.py +++ b/apps/hrm/serializers.py @@ -1,7 +1,6 @@ -from datetime import datetime, timedelta +from datetime import timedelta from rest_framework.serializers import ModelSerializer from rest_framework import serializers -from apps.ecm.service import get_ep_default from apps.hrm.services import HrmService from apps.utils.fields import MyFilePathField from django.utils import timezone @@ -12,12 +11,8 @@ from apps.utils.constants import EXCLUDE_FIELDS from apps.hrm.models import Certificate, ClockRecord, Employee, NotWorkRemark from apps.system.serializers import DeptSimpleSerializer, UserSimpleSerializer from django.db import transaction -from apps.third.dahua import dhClient -from apps.third.tapis import dhapis -from django.conf import settings from django.core.cache import cache -from apps.utils.tools import check_id_number_e, check_phone_e, get_info_from_id -from apps.am.models import Area +from apps.utils.tools import check_id_number_e, get_info_from_id class EmployeeSimpleSerializer(CustomModelSerializer):