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

import com.artfess.manage.duty.manager.dto.CmgtDutyWorkarrangeDto;
import com.artfess.manage.duty.model.CmgtDutyWorkarrange;
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 CmgtDutyWorkarrangeDtoMapperImpl implements CmgtDutyWorkarrangeDtoMapper {

    @Override
    public CmgtDutyWorkarrange toEntity(CmgtDutyWorkarrangeDto dto) {
        if ( dto == null ) {
            return null;
        }

        CmgtDutyWorkarrange cmgtDutyWorkarrange = new CmgtDutyWorkarrange();

        cmgtDutyWorkarrange.setCreateBy( dto.getCreateBy() );
        cmgtDutyWorkarrange.setCreateOrgId( dto.getCreateOrgId() );
        cmgtDutyWorkarrange.setCreateTime( dto.getCreateTime() );
        cmgtDutyWorkarrange.setUpdateBy( dto.getUpdateBy() );
        cmgtDutyWorkarrange.setUpdateTime( dto.getUpdateTime() );
        cmgtDutyWorkarrange.setId( dto.getId() );
        cmgtDutyWorkarrange.setArrangeDate( dto.getArrangeDate() );
        cmgtDutyWorkarrange.setWorkclassId( dto.getWorkclassId() );
        cmgtDutyWorkarrange.setOrgId( dto.getOrgId() );
        cmgtDutyWorkarrange.setDataType( dto.getDataType() );
        cmgtDutyWorkarrange.setTeammemberId( dto.getTeammemberId() );
        cmgtDutyWorkarrange.setTeammemberNames( dto.getTeammemberNames() );
        cmgtDutyWorkarrange.setTeamId( dto.getTeamId() );
        cmgtDutyWorkarrange.setStatus( dto.getStatus() );
        cmgtDutyWorkarrange.setAttendance( dto.getAttendance() );
        cmgtDutyWorkarrange.setSn( dto.getSn() );
        cmgtDutyWorkarrange.setMemo( dto.getMemo() );
        cmgtDutyWorkarrange.setIsDele( dto.getIsDele() );
        cmgtDutyWorkarrange.setVersion( dto.getVersion() );
        cmgtDutyWorkarrange.setLastTime( dto.getLastTime() );

        return cmgtDutyWorkarrange;
    }

    @Override
    public CmgtDutyWorkarrangeDto toDto(CmgtDutyWorkarrange entity) {
        if ( entity == null ) {
            return null;
        }

        CmgtDutyWorkarrangeDto cmgtDutyWorkarrangeDto = new CmgtDutyWorkarrangeDto();

        cmgtDutyWorkarrangeDto.setCreateBy( entity.getCreateBy() );
        cmgtDutyWorkarrangeDto.setCreateOrgId( entity.getCreateOrgId() );
        cmgtDutyWorkarrangeDto.setCreateTime( entity.getCreateTime() );
        cmgtDutyWorkarrangeDto.setUpdateBy( entity.getUpdateBy() );
        cmgtDutyWorkarrangeDto.setUpdateTime( entity.getUpdateTime() );
        cmgtDutyWorkarrangeDto.setId( entity.getId() );
        cmgtDutyWorkarrangeDto.setArrangeDate( entity.getArrangeDate() );
        cmgtDutyWorkarrangeDto.setWorkclassId( entity.getWorkclassId() );
        cmgtDutyWorkarrangeDto.setOrgId( entity.getOrgId() );
        cmgtDutyWorkarrangeDto.setDataType( entity.getDataType() );
        cmgtDutyWorkarrangeDto.setTeammemberId( entity.getTeammemberId() );
        cmgtDutyWorkarrangeDto.setTeammemberNames( entity.getTeammemberNames() );
        cmgtDutyWorkarrangeDto.setTeamId( entity.getTeamId() );
        cmgtDutyWorkarrangeDto.setStatus( entity.getStatus() );
        cmgtDutyWorkarrangeDto.setAttendance( entity.getAttendance() );
        cmgtDutyWorkarrangeDto.setSn( entity.getSn() );
        cmgtDutyWorkarrangeDto.setMemo( entity.getMemo() );
        cmgtDutyWorkarrangeDto.setIsDele( entity.getIsDele() );
        cmgtDutyWorkarrangeDto.setVersion( entity.getVersion() );
        cmgtDutyWorkarrangeDto.setLastTime( entity.getLastTime() );

        return cmgtDutyWorkarrangeDto;
    }

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

        List<CmgtDutyWorkarrange> list = new ArrayList<CmgtDutyWorkarrange>( dtoList.size() );
        for ( CmgtDutyWorkarrangeDto cmgtDutyWorkarrangeDto : dtoList ) {
            list.add( toEntity( cmgtDutyWorkarrangeDto ) );
        }

        return list;
    }

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

        List<CmgtDutyWorkarrangeDto> list = new ArrayList<CmgtDutyWorkarrangeDto>( entityList.size() );
        for ( CmgtDutyWorkarrange cmgtDutyWorkarrange : entityList ) {
            list.add( toDto( cmgtDutyWorkarrange ) );
        }

        return list;
    }
}
