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

import com.artfess.manage.dwd.manager.dto.DwdSjStationArrivedDto;
import com.artfess.manage.dwd.model.DwdSjStationArrived;
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:56+0800",
    comments = "version: 1.2.0.Final, compiler: javac, environment: Java 1.8.0_71 (Oracle Corporation)"
)
@Component
public class DwdSjStationArrivedDtoMapperImpl implements DwdSjStationArrivedDtoMapper {

    @Override
    public DwdSjStationArrived toEntity(DwdSjStationArrivedDto dto) {
        if ( dto == null ) {
            return null;
        }

        DwdSjStationArrived dwdSjStationArrived = new DwdSjStationArrived();

        dwdSjStationArrived.setCreateBy( dto.getCreateBy() );
        dwdSjStationArrived.setCreateOrgId( dto.getCreateOrgId() );
        dwdSjStationArrived.setCreateTime( dto.getCreateTime() );
        dwdSjStationArrived.setUpdateBy( dto.getUpdateBy() );
        dwdSjStationArrived.setUpdateTime( dto.getUpdateTime() );
        dwdSjStationArrived.setIsDelete( dto.getIsDelete() );
        dwdSjStationArrived.setVersion( dto.getVersion() );
        dwdSjStationArrived.setLastTime( dto.getLastTime() );
        dwdSjStationArrived.setId( dto.getId() );
        dwdSjStationArrived.setDateTime( dto.getDateTime() );
        dwdSjStationArrived.setArrive( dto.getArrive() );
        dwdSjStationArrived.setTimeDistance( dto.getTimeDistance() );
        dwdSjStationArrived.setPeopleCnt( dto.getPeopleCnt() );
        dwdSjStationArrived.setSn( dto.getSn() );
        dwdSjStationArrived.setMemo( dto.getMemo() );

        return dwdSjStationArrived;
    }

    @Override
    public DwdSjStationArrivedDto toDto(DwdSjStationArrived entity) {
        if ( entity == null ) {
            return null;
        }

        DwdSjStationArrivedDto dwdSjStationArrivedDto = new DwdSjStationArrivedDto();

        dwdSjStationArrivedDto.setCreateBy( entity.getCreateBy() );
        dwdSjStationArrivedDto.setCreateOrgId( entity.getCreateOrgId() );
        dwdSjStationArrivedDto.setCreateTime( entity.getCreateTime() );
        dwdSjStationArrivedDto.setUpdateBy( entity.getUpdateBy() );
        dwdSjStationArrivedDto.setUpdateTime( entity.getUpdateTime() );
        dwdSjStationArrivedDto.setIsDelete( entity.getIsDelete() );
        dwdSjStationArrivedDto.setVersion( entity.getVersion() );
        dwdSjStationArrivedDto.setLastTime( entity.getLastTime() );
        dwdSjStationArrivedDto.setId( entity.getId() );
        dwdSjStationArrivedDto.setDateTime( entity.getDateTime() );
        dwdSjStationArrivedDto.setArrive( entity.getArrive() );
        dwdSjStationArrivedDto.setTimeDistance( entity.getTimeDistance() );
        dwdSjStationArrivedDto.setPeopleCnt( entity.getPeopleCnt() );
        dwdSjStationArrivedDto.setSn( entity.getSn() );
        dwdSjStationArrivedDto.setMemo( entity.getMemo() );

        return dwdSjStationArrivedDto;
    }

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

        List<DwdSjStationArrived> list = new ArrayList<DwdSjStationArrived>( dtoList.size() );
        for ( DwdSjStationArrivedDto dwdSjStationArrivedDto : dtoList ) {
            list.add( toEntity( dwdSjStationArrivedDto ) );
        }

        return list;
    }

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

        List<DwdSjStationArrivedDto> list = new ArrayList<DwdSjStationArrivedDto>( entityList.size() );
        for ( DwdSjStationArrived dwdSjStationArrived : entityList ) {
            list.add( toDto( dwdSjStationArrived ) );
        }

        return list;
    }
}
