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

import com.artfess.manage.duty.manager.dto.CmgtDutyTeamMemberDto;
import com.artfess.manage.duty.model.CmgtDutyTeamMember;
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 CmgtDutyTeamMemberDtoMapperImpl implements CmgtDutyTeamMemberDtoMapper {

    @Override
    public CmgtDutyTeamMember toEntity(CmgtDutyTeamMemberDto dto) {
        if ( dto == null ) {
            return null;
        }

        CmgtDutyTeamMember cmgtDutyTeamMember = new CmgtDutyTeamMember();

        cmgtDutyTeamMember.setCreateBy( dto.getCreateBy() );
        cmgtDutyTeamMember.setCreateOrgId( dto.getCreateOrgId() );
        cmgtDutyTeamMember.setCreateTime( dto.getCreateTime() );
        cmgtDutyTeamMember.setUpdateBy( dto.getUpdateBy() );
        cmgtDutyTeamMember.setUpdateTime( dto.getUpdateTime() );
        cmgtDutyTeamMember.setId( dto.getId() );
        cmgtDutyTeamMember.setOrgId( dto.getOrgId() );
        cmgtDutyTeamMember.setTeamId( dto.getTeamId() );
        cmgtDutyTeamMember.setCmgtDutyTeam( dto.getCmgtDutyTeam() );
        cmgtDutyTeamMember.setCode( dto.getCode() );
        cmgtDutyTeamMember.setName( dto.getName() );
        cmgtDutyTeamMember.setPost( dto.getPost() );
        cmgtDutyTeamMember.setJob( dto.getJob() );
        cmgtDutyTeamMember.setSex( dto.getSex() );
        cmgtDutyTeamMember.setAge( dto.getAge() );
        cmgtDutyTeamMember.setPhone( dto.getPhone() );
        cmgtDutyTeamMember.setIdcard( dto.getIdcard() );
        cmgtDutyTeamMember.setSkill( dto.getSkill() );
        cmgtDutyTeamMember.setIszsyg( dto.getIszsyg() );
        cmgtDutyTeamMember.setIswp( dto.getIswp() );
        cmgtDutyTeamMember.setDeptName( dto.getDeptName() );
        cmgtDutyTeamMember.setSn( dto.getSn() );
        cmgtDutyTeamMember.setMemo( dto.getMemo() );
        cmgtDutyTeamMember.setIsDele( dto.getIsDele() );
        cmgtDutyTeamMember.setVersion( dto.getVersion() );
        cmgtDutyTeamMember.setLastTime( dto.getLastTime() );
        cmgtDutyTeamMember.setLocation( dto.getLocation() );
        cmgtDutyTeamMember.setReceiveTime( dto.getReceiveTime() );
        cmgtDutyTeamMember.setStatus( dto.getStatus() );

        return cmgtDutyTeamMember;
    }

    @Override
    public CmgtDutyTeamMemberDto toDto(CmgtDutyTeamMember entity) {
        if ( entity == null ) {
            return null;
        }

        CmgtDutyTeamMemberDto cmgtDutyTeamMemberDto = new CmgtDutyTeamMemberDto();

        cmgtDutyTeamMemberDto.setCreateBy( entity.getCreateBy() );
        cmgtDutyTeamMemberDto.setCreateOrgId( entity.getCreateOrgId() );
        cmgtDutyTeamMemberDto.setCreateTime( entity.getCreateTime() );
        cmgtDutyTeamMemberDto.setUpdateBy( entity.getUpdateBy() );
        cmgtDutyTeamMemberDto.setUpdateTime( entity.getUpdateTime() );
        cmgtDutyTeamMemberDto.setId( entity.getId() );
        cmgtDutyTeamMemberDto.setTeamId( entity.getTeamId() );
        cmgtDutyTeamMemberDto.setCmgtDutyTeam( entity.getCmgtDutyTeam() );
        cmgtDutyTeamMemberDto.setCode( entity.getCode() );
        cmgtDutyTeamMemberDto.setName( entity.getName() );
        cmgtDutyTeamMemberDto.setPost( entity.getPost() );
        cmgtDutyTeamMemberDto.setJob( entity.getJob() );
        cmgtDutyTeamMemberDto.setSex( entity.getSex() );
        cmgtDutyTeamMemberDto.setAge( entity.getAge() );
        cmgtDutyTeamMemberDto.setPhone( entity.getPhone() );
        cmgtDutyTeamMemberDto.setIdcard( entity.getIdcard() );
        cmgtDutyTeamMemberDto.setSkill( entity.getSkill() );
        cmgtDutyTeamMemberDto.setIswp( entity.getIswp() );
        cmgtDutyTeamMemberDto.setDeptName( entity.getDeptName() );
        cmgtDutyTeamMemberDto.setIszsyg( entity.getIszsyg() );
        cmgtDutyTeamMemberDto.setSn( entity.getSn() );
        cmgtDutyTeamMemberDto.setMemo( entity.getMemo() );
        cmgtDutyTeamMemberDto.setIsDele( entity.getIsDele() );
        cmgtDutyTeamMemberDto.setVersion( entity.getVersion() );
        cmgtDutyTeamMemberDto.setLastTime( entity.getLastTime() );
        cmgtDutyTeamMemberDto.setOrgId( entity.getOrgId() );
        cmgtDutyTeamMemberDto.setLocation( entity.getLocation() );
        cmgtDutyTeamMemberDto.setReceiveTime( entity.getReceiveTime() );
        cmgtDutyTeamMemberDto.setStatus( entity.getStatus() );

        return cmgtDutyTeamMemberDto;
    }

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

        List<CmgtDutyTeamMember> list = new ArrayList<CmgtDutyTeamMember>( dtoList.size() );
        for ( CmgtDutyTeamMemberDto cmgtDutyTeamMemberDto : dtoList ) {
            list.add( toEntity( cmgtDutyTeamMemberDto ) );
        }

        return list;
    }

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

        List<CmgtDutyTeamMemberDto> list = new ArrayList<CmgtDutyTeamMemberDto>( entityList.size() );
        for ( CmgtDutyTeamMember cmgtDutyTeamMember : entityList ) {
            list.add( toDto( cmgtDutyTeamMember ) );
        }

        return list;
    }
}
