package com.artfess.manage.duty.manager.mapper;

import com.artfess.manage.duty.manager.dto.CmgtDutyTeamMemberGpsinfoDto;
import com.artfess.manage.duty.model.CmgtDutyTeamMemberGpsinfo;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import org.springframework.stereotype.Component;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2023-05-08T09:35:57+0800",
    comments = "version: 1.2.0.Final, compiler: javac, environment: Java 1.8.0_71 (Oracle Corporation)"
)
@Component
public class CmgtDutyTeamMemberGpsinfoDtoMapperImpl implements CmgtDutyTeamMemberGpsinfoDtoMapper {

    @Override
    public CmgtDutyTeamMemberGpsinfo toEntity(CmgtDutyTeamMemberGpsinfoDto dto) {
        if ( dto == null ) {
            return null;
        }

        CmgtDutyTeamMemberGpsinfo cmgtDutyTeamMemberGpsinfo = new CmgtDutyTeamMemberGpsinfo();

        cmgtDutyTeamMemberGpsinfo.setCreateBy( dto.getCreateBy() );
        cmgtDutyTeamMemberGpsinfo.setCreateOrgId( dto.getCreateOrgId() );
        cmgtDutyTeamMemberGpsinfo.setCreateTime( dto.getCreateTime() );
        cmgtDutyTeamMemberGpsinfo.setUpdateBy( dto.getUpdateBy() );
        cmgtDutyTeamMemberGpsinfo.setUpdateTime( dto.getUpdateTime() );
        cmgtDutyTeamMemberGpsinfo.setIsDelete( dto.getIsDelete() );
        cmgtDutyTeamMemberGpsinfo.setVersion( dto.getVersion() );
        cmgtDutyTeamMemberGpsinfo.setLastTime( dto.getLastTime() );
        cmgtDutyTeamMemberGpsinfo.setId( dto.getId() );
        cmgtDutyTeamMemberGpsinfo.setTeamMemberId( dto.getTeamMemberId() );
        cmgtDutyTeamMemberGpsinfo.setSysTime( dto.getSysTime() );
        cmgtDutyTeamMemberGpsinfo.setReceiveTime( dto.getReceiveTime() );
        cmgtDutyTeamMemberGpsinfo.setAccStatus( dto.getAccStatus() );
        cmgtDutyTeamMemberGpsinfo.setValid( dto.getValid() );
        cmgtDutyTeamMemberGpsinfo.setLatitude( dto.getLatitude() );
        cmgtDutyTeamMemberGpsinfo.setLongitude( dto.getLongitude() );
        cmgtDutyTeamMemberGpsinfo.setAltitude( dto.getAltitude() );
        cmgtDutyTeamMemberGpsinfo.setSatellites( dto.getSatellites() );
        cmgtDutyTeamMemberGpsinfo.setGpsspeed( dto.getGpsspeed() );
        cmgtDutyTeamMemberGpsinfo.setDirection( dto.getDirection() );
        cmgtDutyTeamMemberGpsinfo.setPdop( dto.getPdop() );
        cmgtDutyTeamMemberGpsinfo.setSn( dto.getSn() );
        cmgtDutyTeamMemberGpsinfo.setDevid( dto.getDevid() );
        cmgtDutyTeamMemberGpsinfo.setMemo( dto.getMemo() );

        return cmgtDutyTeamMemberGpsinfo;
    }

    @Override
    public CmgtDutyTeamMemberGpsinfoDto toDto(CmgtDutyTeamMemberGpsinfo entity) {
        if ( entity == null ) {
            return null;
        }

        CmgtDutyTeamMemberGpsinfoDto cmgtDutyTeamMemberGpsinfoDto = new CmgtDutyTeamMemberGpsinfoDto();

        cmgtDutyTeamMemberGpsinfoDto.setCreateBy( entity.getCreateBy() );
        cmgtDutyTeamMemberGpsinfoDto.setCreateOrgId( entity.getCreateOrgId() );
        cmgtDutyTeamMemberGpsinfoDto.setCreateTime( entity.getCreateTime() );
        cmgtDutyTeamMemberGpsinfoDto.setUpdateBy( entity.getUpdateBy() );
        cmgtDutyTeamMemberGpsinfoDto.setUpdateTime( entity.getUpdateTime() );
        cmgtDutyTeamMemberGpsinfoDto.setIsDelete( entity.getIsDelete() );
        cmgtDutyTeamMemberGpsinfoDto.setVersion( entity.getVersion() );
        cmgtDutyTeamMemberGpsinfoDto.setLastTime( entity.getLastTime() );
        cmgtDutyTeamMemberGpsinfoDto.setId( entity.getId() );
        cmgtDutyTeamMemberGpsinfoDto.setTeamMemberId( entity.getTeamMemberId() );
        cmgtDutyTeamMemberGpsinfoDto.setSysTime( entity.getSysTime() );
        cmgtDutyTeamMemberGpsinfoDto.setReceiveTime( entity.getReceiveTime() );
        cmgtDutyTeamMemberGpsinfoDto.setAccStatus( entity.getAccStatus() );
        cmgtDutyTeamMemberGpsinfoDto.setValid( entity.getValid() );
        cmgtDutyTeamMemberGpsinfoDto.setLatitude( entity.getLatitude() );
        cmgtDutyTeamMemberGpsinfoDto.setLongitude( entity.getLongitude() );
        cmgtDutyTeamMemberGpsinfoDto.setAltitude( entity.getAltitude() );
        cmgtDutyTeamMemberGpsinfoDto.setSatellites( entity.getSatellites() );
        cmgtDutyTeamMemberGpsinfoDto.setGpsspeed( entity.getGpsspeed() );
        cmgtDutyTeamMemberGpsinfoDto.setDirection( entity.getDirection() );
        cmgtDutyTeamMemberGpsinfoDto.setPdop( entity.getPdop() );
        cmgtDutyTeamMemberGpsinfoDto.setSn( entity.getSn() );
        cmgtDutyTeamMemberGpsinfoDto.setDevid( entity.getDevid() );
        cmgtDutyTeamMemberGpsinfoDto.setMemo( entity.getMemo() );

        return cmgtDutyTeamMemberGpsinfoDto;
    }

    @Override
    public List<CmgtDutyTeamMemberGpsinfo> toEntity(List<CmgtDutyTeamMemberGpsinfoDto> dtoList) {
        if ( dtoList == null ) {
            return null;
        }

        List<CmgtDutyTeamMemberGpsinfo> list = new ArrayList<CmgtDutyTeamMemberGpsinfo>( dtoList.size() );
        for ( CmgtDutyTeamMemberGpsinfoDto cmgtDutyTeamMemberGpsinfoDto : dtoList ) {
            list.add( toEntity( cmgtDutyTeamMemberGpsinfoDto ) );
        }

        return list;
    }

    @Override
    public List<CmgtDutyTeamMemberGpsinfoDto> toDto(List<CmgtDutyTeamMemberGpsinfo> entityList) {
        if ( entityList == null ) {
            return null;
        }

        List<CmgtDutyTeamMemberGpsinfoDto> list = new ArrayList<CmgtDutyTeamMemberGpsinfoDto>( entityList.size() );
        for ( CmgtDutyTeamMemberGpsinfo cmgtDutyTeamMemberGpsinfo : entityList ) {
            list.add( toDto( cmgtDutyTeamMemberGpsinfo ) );
        }

        return list;
    }
}
