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

import com.artfess.manage.safty.manager.dto.CmgtSaftyTrainingRecordDetailDto;
import com.artfess.manage.safty.model.CmgtSaftyTrainingRecordDetail;
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 CmgtSaftyTrainingRecordDetailDtoMapperImpl implements CmgtSaftyTrainingRecordDetailDtoMapper {

    @Override
    public CmgtSaftyTrainingRecordDetail toEntity(CmgtSaftyTrainingRecordDetailDto dto) {
        if ( dto == null ) {
            return null;
        }

        CmgtSaftyTrainingRecordDetail cmgtSaftyTrainingRecordDetail = new CmgtSaftyTrainingRecordDetail();

        cmgtSaftyTrainingRecordDetail.setCreateBy( dto.getCreateBy() );
        cmgtSaftyTrainingRecordDetail.setCreateOrgId( dto.getCreateOrgId() );
        cmgtSaftyTrainingRecordDetail.setCreateTime( dto.getCreateTime() );
        cmgtSaftyTrainingRecordDetail.setUpdateBy( dto.getUpdateBy() );
        cmgtSaftyTrainingRecordDetail.setUpdateTime( dto.getUpdateTime() );
        cmgtSaftyTrainingRecordDetail.setIsDelete( dto.getIsDelete() );
        cmgtSaftyTrainingRecordDetail.setVersion( dto.getVersion() );
        cmgtSaftyTrainingRecordDetail.setLastTime( dto.getLastTime() );
        cmgtSaftyTrainingRecordDetail.setId( dto.getId() );
        cmgtSaftyTrainingRecordDetail.setTrainingId( dto.getTrainingId() );
        cmgtSaftyTrainingRecordDetail.setTrainee( dto.getTrainee() );
        cmgtSaftyTrainingRecordDetail.setScore( dto.getScore() );
        cmgtSaftyTrainingRecordDetail.setFeedback( dto.getFeedback() );
        cmgtSaftyTrainingRecordDetail.setEvaluation( dto.getEvaluation() );
        cmgtSaftyTrainingRecordDetail.setSummary( dto.getSummary() );
        cmgtSaftyTrainingRecordDetail.setSn( dto.getSn() );
        cmgtSaftyTrainingRecordDetail.setMemo( dto.getMemo() );

        return cmgtSaftyTrainingRecordDetail;
    }

    @Override
    public CmgtSaftyTrainingRecordDetailDto toDto(CmgtSaftyTrainingRecordDetail entity) {
        if ( entity == null ) {
            return null;
        }

        CmgtSaftyTrainingRecordDetailDto cmgtSaftyTrainingRecordDetailDto = new CmgtSaftyTrainingRecordDetailDto();

        cmgtSaftyTrainingRecordDetailDto.setCreateBy( entity.getCreateBy() );
        cmgtSaftyTrainingRecordDetailDto.setCreateOrgId( entity.getCreateOrgId() );
        cmgtSaftyTrainingRecordDetailDto.setCreateTime( entity.getCreateTime() );
        cmgtSaftyTrainingRecordDetailDto.setUpdateBy( entity.getUpdateBy() );
        cmgtSaftyTrainingRecordDetailDto.setUpdateTime( entity.getUpdateTime() );
        cmgtSaftyTrainingRecordDetailDto.setIsDelete( entity.getIsDelete() );
        cmgtSaftyTrainingRecordDetailDto.setVersion( entity.getVersion() );
        cmgtSaftyTrainingRecordDetailDto.setLastTime( entity.getLastTime() );
        cmgtSaftyTrainingRecordDetailDto.setId( entity.getId() );
        cmgtSaftyTrainingRecordDetailDto.setTrainingId( entity.getTrainingId() );
        cmgtSaftyTrainingRecordDetailDto.setTrainee( entity.getTrainee() );
        cmgtSaftyTrainingRecordDetailDto.setScore( entity.getScore() );
        cmgtSaftyTrainingRecordDetailDto.setFeedback( entity.getFeedback() );
        cmgtSaftyTrainingRecordDetailDto.setEvaluation( entity.getEvaluation() );
        cmgtSaftyTrainingRecordDetailDto.setSummary( entity.getSummary() );
        cmgtSaftyTrainingRecordDetailDto.setSn( entity.getSn() );
        cmgtSaftyTrainingRecordDetailDto.setMemo( entity.getMemo() );

        return cmgtSaftyTrainingRecordDetailDto;
    }

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

        List<CmgtSaftyTrainingRecordDetail> list = new ArrayList<CmgtSaftyTrainingRecordDetail>( dtoList.size() );
        for ( CmgtSaftyTrainingRecordDetailDto cmgtSaftyTrainingRecordDetailDto : dtoList ) {
            list.add( toEntity( cmgtSaftyTrainingRecordDetailDto ) );
        }

        return list;
    }

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

        List<CmgtSaftyTrainingRecordDetailDto> list = new ArrayList<CmgtSaftyTrainingRecordDetailDto>( entityList.size() );
        for ( CmgtSaftyTrainingRecordDetail cmgtSaftyTrainingRecordDetail : entityList ) {
            list.add( toDto( cmgtSaftyTrainingRecordDetail ) );
        }

        return list;
    }
}
