refector: hrm serializer去除未使用的导入
This commit is contained in:
parent
9458276ad1
commit
4e06efdc78
|
@ -1,7 +1,6 @@
|
||||||
from datetime import datetime, timedelta
|
from datetime import timedelta
|
||||||
from rest_framework.serializers import ModelSerializer
|
from rest_framework.serializers import ModelSerializer
|
||||||
from rest_framework import serializers
|
from rest_framework import serializers
|
||||||
from apps.ecm.service import get_ep_default
|
|
||||||
from apps.hrm.services import HrmService
|
from apps.hrm.services import HrmService
|
||||||
from apps.utils.fields import MyFilePathField
|
from apps.utils.fields import MyFilePathField
|
||||||
from django.utils import timezone
|
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.hrm.models import Certificate, ClockRecord, Employee, NotWorkRemark
|
||||||
from apps.system.serializers import DeptSimpleSerializer, UserSimpleSerializer
|
from apps.system.serializers import DeptSimpleSerializer, UserSimpleSerializer
|
||||||
from django.db import transaction
|
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 django.core.cache import cache
|
||||||
from apps.utils.tools import check_id_number_e, check_phone_e, get_info_from_id
|
from apps.utils.tools import check_id_number_e, get_info_from_id
|
||||||
from apps.am.models import Area
|
|
||||||
|
|
||||||
|
|
||||||
class EmployeeSimpleSerializer(CustomModelSerializer):
|
class EmployeeSimpleSerializer(CustomModelSerializer):
|
||||||
|
|
Loading…
Reference in New Issue