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

import com.artfess.manage.dwd.manager.dto.DwdSjCqEventDto;
import com.artfess.manage.dwd.model.DwdSjCqEvent;
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 DwdSjCqEventDtoMapperImpl implements DwdSjCqEventDtoMapper {

    @Override
    public DwdSjCqEvent toEntity(DwdSjCqEventDto dto) {
        if ( dto == null ) {
            return null;
        }

        DwdSjCqEvent dwdSjCqEvent = new DwdSjCqEvent();

        dwdSjCqEvent.setCreateBy( dto.getCreateBy() );
        dwdSjCqEvent.setCreateOrgId( dto.getCreateOrgId() );
        dwdSjCqEvent.setCreateTime( dto.getCreateTime() );
        dwdSjCqEvent.setUpdateBy( dto.getUpdateBy() );
        dwdSjCqEvent.setUpdateTime( dto.getUpdateTime() );
        dwdSjCqEvent.setIsDelete( dto.getIsDelete() );
        dwdSjCqEvent.setVersion( dto.getVersion() );
        dwdSjCqEvent.setLastTime( dto.getLastTime() );
        dwdSjCqEvent.setId( dto.getId() );
        dwdSjCqEvent.setEventId( dto.getEventId() );
        dwdSjCqEvent.setEventSrc( dto.getEventSrc() );
        dwdSjCqEvent.setEventSrcId( dto.getEventSrcId() );
        dwdSjCqEvent.setEventTitle( dto.getEventTitle() );
        dwdSjCqEvent.setRegionId( dto.getRegionId() );
        dwdSjCqEvent.setEventLevel( dto.getEventLevel() );
        dwdSjCqEvent.setEventDesc( dto.getEventDesc() );
        dwdSjCqEvent.setEventTime( dto.getEventTime() );
        dwdSjCqEvent.setLnglat( dto.getLnglat() );
        dwdSjCqEvent.setEventAddr( dto.getEventAddr() );
        dwdSjCqEvent.setCreateUserId( dto.getCreateUserId() );
        dwdSjCqEvent.setEmergency( dto.getEmergency() );
        dwdSjCqEvent.setEventStatus( dto.getEventStatus() );
        dwdSjCqEvent.setEventClassId( dto.getEventClassId() );
        dwdSjCqEvent.setEventAssignTime( dto.getEventAssignTime() );
        dwdSjCqEvent.setEvaluateFlag( dto.getEvaluateFlag() );
        dwdSjCqEvent.setEvaluateContent( dto.getEvaluateContent() );
        dwdSjCqEvent.setEvaluateTime( dto.getEvaluateTime() );
        dwdSjCqEvent.setArchiveFlag( dto.getArchiveFlag() );
        dwdSjCqEvent.setArchiveTime( dto.getArchiveTime() );
        dwdSjCqEvent.setPasserName( dto.getPasserName() );
        dwdSjCqEvent.setPasserPhone( dto.getPasserPhone() );
        dwdSjCqEvent.setDevCode( dto.getDevCode() );
        dwdSjCqEvent.setDevName( dto.getDevName() );
        dwdSjCqEvent.setEventType( dto.getEventType() );
        dwdSjCqEvent.setPeopleCount( dto.getPeopleCount() );
        dwdSjCqEvent.setThreshold( dto.getThreshold() );
        dwdSjCqEvent.setSn( dto.getSn() );
        dwdSjCqEvent.setMemo( dto.getMemo() );
        dwdSjCqEvent.setHandleUserList( dto.getHandleUserList() );
        dwdSjCqEvent.setHandleContList( dto.getHandleContList() );
        dwdSjCqEvent.setHandleTimeList( dto.getHandleTimeList() );
        dwdSjCqEvent.setDutyJobId( dto.getDutyJobId() );

        return dwdSjCqEvent;
    }

    @Override
    public DwdSjCqEventDto toDto(DwdSjCqEvent entity) {
        if ( entity == null ) {
            return null;
        }

        DwdSjCqEventDto dwdSjCqEventDto = new DwdSjCqEventDto();

        dwdSjCqEventDto.setCreateBy( entity.getCreateBy() );
        dwdSjCqEventDto.setCreateOrgId( entity.getCreateOrgId() );
        dwdSjCqEventDto.setCreateTime( entity.getCreateTime() );
        dwdSjCqEventDto.setUpdateBy( entity.getUpdateBy() );
        dwdSjCqEventDto.setUpdateTime( entity.getUpdateTime() );
        dwdSjCqEventDto.setIsDelete( entity.getIsDelete() );
        dwdSjCqEventDto.setVersion( entity.getVersion() );
        dwdSjCqEventDto.setLastTime( entity.getLastTime() );
        dwdSjCqEventDto.setId( entity.getId() );
        dwdSjCqEventDto.setEventId( entity.getEventId() );
        dwdSjCqEventDto.setEventSrc( entity.getEventSrc() );
        dwdSjCqEventDto.setEventSrcId( entity.getEventSrcId() );
        dwdSjCqEventDto.setEventTitle( entity.getEventTitle() );
        dwdSjCqEventDto.setRegionId( entity.getRegionId() );
        dwdSjCqEventDto.setEventLevel( entity.getEventLevel() );
        dwdSjCqEventDto.setEventDesc( entity.getEventDesc() );
        dwdSjCqEventDto.setEventTime( entity.getEventTime() );
        dwdSjCqEventDto.setLnglat( entity.getLnglat() );
        dwdSjCqEventDto.setEventAddr( entity.getEventAddr() );
        dwdSjCqEventDto.setCreateUserId( entity.getCreateUserId() );
        dwdSjCqEventDto.setEmergency( entity.getEmergency() );
        dwdSjCqEventDto.setEventStatus( entity.getEventStatus() );
        dwdSjCqEventDto.setEventClassId( entity.getEventClassId() );
        dwdSjCqEventDto.setEventAssignTime( entity.getEventAssignTime() );
        dwdSjCqEventDto.setEvaluateFlag( entity.getEvaluateFlag() );
        dwdSjCqEventDto.setEvaluateContent( entity.getEvaluateContent() );
        dwdSjCqEventDto.setEvaluateTime( entity.getEvaluateTime() );
        dwdSjCqEventDto.setArchiveFlag( entity.getArchiveFlag() );
        dwdSjCqEventDto.setArchiveTime( entity.getArchiveTime() );
        dwdSjCqEventDto.setPasserName( entity.getPasserName() );
        dwdSjCqEventDto.setPasserPhone( entity.getPasserPhone() );
        dwdSjCqEventDto.setDevCode( entity.getDevCode() );
        dwdSjCqEventDto.setDevName( entity.getDevName() );
        dwdSjCqEventDto.setEventType( entity.getEventType() );
        dwdSjCqEventDto.setPeopleCount( entity.getPeopleCount() );
        dwdSjCqEventDto.setThreshold( entity.getThreshold() );
        dwdSjCqEventDto.setSn( entity.getSn() );
        dwdSjCqEventDto.setMemo( entity.getMemo() );
        dwdSjCqEventDto.setHandleUserList( entity.getHandleUserList() );
        dwdSjCqEventDto.setHandleContList( entity.getHandleContList() );
        dwdSjCqEventDto.setHandleTimeList( entity.getHandleTimeList() );
        dwdSjCqEventDto.setDutyJobId( entity.getDutyJobId() );

        return dwdSjCqEventDto;
    }

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

        List<DwdSjCqEvent> list = new ArrayList<DwdSjCqEvent>( dtoList.size() );
        for ( DwdSjCqEventDto dwdSjCqEventDto : dtoList ) {
            list.add( toEntity( dwdSjCqEventDto ) );
        }

        return list;
    }

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

        List<DwdSjCqEventDto> list = new ArrayList<DwdSjCqEventDto>( entityList.size() );
        for ( DwdSjCqEvent dwdSjCqEvent : entityList ) {
            list.add( toDto( dwdSjCqEvent ) );
        }

        return list;
    }
}
