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

import com.artfess.manage.duty.manager.dto.CmgtDutyVehicleGpsinfoDto;
import com.artfess.manage.duty.model.CmgtDutyVehicleGpsinfo;
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 CmgtDutyVehicleGpsinfoDtoMapperImpl implements CmgtDutyVehicleGpsinfoDtoMapper {

    @Override
    public CmgtDutyVehicleGpsinfo toEntity(CmgtDutyVehicleGpsinfoDto dto) {
        if ( dto == null ) {
            return null;
        }

        CmgtDutyVehicleGpsinfo cmgtDutyVehicleGpsinfo = new CmgtDutyVehicleGpsinfo();

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

        return cmgtDutyVehicleGpsinfo;
    }

    @Override
    public CmgtDutyVehicleGpsinfoDto toDto(CmgtDutyVehicleGpsinfo entity) {
        if ( entity == null ) {
            return null;
        }

        CmgtDutyVehicleGpsinfoDto cmgtDutyVehicleGpsinfoDto = new CmgtDutyVehicleGpsinfoDto();

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

        return cmgtDutyVehicleGpsinfoDto;
    }

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

        List<CmgtDutyVehicleGpsinfo> list = new ArrayList<CmgtDutyVehicleGpsinfo>( dtoList.size() );
        for ( CmgtDutyVehicleGpsinfoDto cmgtDutyVehicleGpsinfoDto : dtoList ) {
            list.add( toEntity( cmgtDutyVehicleGpsinfoDto ) );
        }

        return list;
    }

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

        List<CmgtDutyVehicleGpsinfoDto> list = new ArrayList<CmgtDutyVehicleGpsinfoDto>( entityList.size() );
        for ( CmgtDutyVehicleGpsinfo cmgtDutyVehicleGpsinfo : entityList ) {
            list.add( toDto( cmgtDutyVehicleGpsinfo ) );
        }

        return list;
    }
}
