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

import com.artfess.manage.safty.manager.dto.CmgtSaftyDangerCheckrecordDto;
import com.artfess.manage.safty.model.CmgtSaftyDangerCheckrecord;
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 CmgtSaftyDangerCheckrecordDtoMapperImpl implements CmgtSaftyDangerCheckrecordDtoMapper {

    @Override
    public CmgtSaftyDangerCheckrecord toEntity(CmgtSaftyDangerCheckrecordDto dto) {
        if ( dto == null ) {
            return null;
        }

        CmgtSaftyDangerCheckrecord cmgtSaftyDangerCheckrecord = new CmgtSaftyDangerCheckrecord();

        cmgtSaftyDangerCheckrecord.setCreateBy( dto.getCreateBy() );
        cmgtSaftyDangerCheckrecord.setCreateOrgId( dto.getCreateOrgId() );
        cmgtSaftyDangerCheckrecord.setCreateTime( dto.getCreateTime() );
        cmgtSaftyDangerCheckrecord.setUpdateBy( dto.getUpdateBy() );
        cmgtSaftyDangerCheckrecord.setUpdateTime( dto.getUpdateTime() );
        cmgtSaftyDangerCheckrecord.setId( dto.getId() );
        cmgtSaftyDangerCheckrecord.setCheckplanId( dto.getCheckplanId() );
        cmgtSaftyDangerCheckrecord.setDangerType( dto.getDangerType() );
        cmgtSaftyDangerCheckrecord.setImark( dto.getImark() );
        cmgtSaftyDangerCheckrecord.setCheckDate( dto.getCheckDate() );
        cmgtSaftyDangerCheckrecord.setCheckUser( dto.getCheckUser() );
        cmgtSaftyDangerCheckrecord.setContent( dto.getContent() );
        cmgtSaftyDangerCheckrecord.setRecipient( dto.getRecipient() );
        cmgtSaftyDangerCheckrecord.setLocation( dto.getLocation() );
        cmgtSaftyDangerCheckrecord.setResult( dto.getResult() );
        cmgtSaftyDangerCheckrecord.setDanger( dto.getDanger() );
        cmgtSaftyDangerCheckrecord.setPcfa( dto.getPcfa() );
        cmgtSaftyDangerCheckrecord.setReviewer( dto.getReviewer() );
        cmgtSaftyDangerCheckrecord.setReviewDate( dto.getReviewDate() );
        cmgtSaftyDangerCheckrecord.setReviewResult( dto.getReviewResult() );
        cmgtSaftyDangerCheckrecord.setRemainingProblem( dto.getRemainingProblem() );
        cmgtSaftyDangerCheckrecord.setTimeLimit( dto.getTimeLimit() );
        cmgtSaftyDangerCheckrecord.setResolver( dto.getResolver() );
        cmgtSaftyDangerCheckrecord.setResolvingOrg( dto.getResolvingOrg() );
        cmgtSaftyDangerCheckrecord.setResolvingMeasure( dto.getResolvingMeasure() );
        cmgtSaftyDangerCheckrecord.setResolvingRemark( dto.getResolvingRemark() );
        cmgtSaftyDangerCheckrecord.setResolvingDate( dto.getResolvingDate() );
        cmgtSaftyDangerCheckrecord.setBaseInfoFiles( dto.getBaseInfoFiles() );
        cmgtSaftyDangerCheckrecord.setFcFiles( dto.getFcFiles() );
        cmgtSaftyDangerCheckrecord.setStatus( dto.getStatus() );
        cmgtSaftyDangerCheckrecord.setSn( dto.getSn() );
        cmgtSaftyDangerCheckrecord.setMemo( dto.getMemo() );
        cmgtSaftyDangerCheckrecord.setIsDele( dto.getIsDele() );
        cmgtSaftyDangerCheckrecord.setVersion( dto.getVersion() );
        cmgtSaftyDangerCheckrecord.setLastTime( dto.getLastTime() );

        return cmgtSaftyDangerCheckrecord;
    }

    @Override
    public CmgtSaftyDangerCheckrecordDto toDto(CmgtSaftyDangerCheckrecord entity) {
        if ( entity == null ) {
            return null;
        }

        CmgtSaftyDangerCheckrecordDto cmgtSaftyDangerCheckrecordDto = new CmgtSaftyDangerCheckrecordDto();

        cmgtSaftyDangerCheckrecordDto.setCreateBy( entity.getCreateBy() );
        cmgtSaftyDangerCheckrecordDto.setCreateOrgId( entity.getCreateOrgId() );
        cmgtSaftyDangerCheckrecordDto.setCreateTime( entity.getCreateTime() );
        cmgtSaftyDangerCheckrecordDto.setUpdateBy( entity.getUpdateBy() );
        cmgtSaftyDangerCheckrecordDto.setUpdateTime( entity.getUpdateTime() );
        cmgtSaftyDangerCheckrecordDto.setId( entity.getId() );
        cmgtSaftyDangerCheckrecordDto.setCheckplanId( entity.getCheckplanId() );
        cmgtSaftyDangerCheckrecordDto.setDangerType( entity.getDangerType() );
        cmgtSaftyDangerCheckrecordDto.setImark( entity.getImark() );
        cmgtSaftyDangerCheckrecordDto.setCheckDate( entity.getCheckDate() );
        cmgtSaftyDangerCheckrecordDto.setCheckUser( entity.getCheckUser() );
        cmgtSaftyDangerCheckrecordDto.setContent( entity.getContent() );
        cmgtSaftyDangerCheckrecordDto.setRecipient( entity.getRecipient() );
        cmgtSaftyDangerCheckrecordDto.setLocation( entity.getLocation() );
        cmgtSaftyDangerCheckrecordDto.setResult( entity.getResult() );
        cmgtSaftyDangerCheckrecordDto.setDanger( entity.getDanger() );
        cmgtSaftyDangerCheckrecordDto.setPcfa( entity.getPcfa() );
        cmgtSaftyDangerCheckrecordDto.setReviewer( entity.getReviewer() );
        cmgtSaftyDangerCheckrecordDto.setReviewDate( entity.getReviewDate() );
        cmgtSaftyDangerCheckrecordDto.setReviewResult( entity.getReviewResult() );
        cmgtSaftyDangerCheckrecordDto.setRemainingProblem( entity.getRemainingProblem() );
        cmgtSaftyDangerCheckrecordDto.setTimeLimit( entity.getTimeLimit() );
        cmgtSaftyDangerCheckrecordDto.setResolver( entity.getResolver() );
        cmgtSaftyDangerCheckrecordDto.setResolvingOrg( entity.getResolvingOrg() );
        cmgtSaftyDangerCheckrecordDto.setResolvingMeasure( entity.getResolvingMeasure() );
        cmgtSaftyDangerCheckrecordDto.setResolvingRemark( entity.getResolvingRemark() );
        cmgtSaftyDangerCheckrecordDto.setResolvingDate( entity.getResolvingDate() );
        cmgtSaftyDangerCheckrecordDto.setStatus( entity.getStatus() );
        cmgtSaftyDangerCheckrecordDto.setSn( entity.getSn() );
        cmgtSaftyDangerCheckrecordDto.setMemo( entity.getMemo() );
        cmgtSaftyDangerCheckrecordDto.setIsDele( entity.getIsDele() );
        cmgtSaftyDangerCheckrecordDto.setVersion( entity.getVersion() );
        cmgtSaftyDangerCheckrecordDto.setLastTime( entity.getLastTime() );
        cmgtSaftyDangerCheckrecordDto.setBaseInfoFiles( entity.getBaseInfoFiles() );
        cmgtSaftyDangerCheckrecordDto.setFcFiles( entity.getFcFiles() );

        return cmgtSaftyDangerCheckrecordDto;
    }

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

        List<CmgtSaftyDangerCheckrecord> list = new ArrayList<CmgtSaftyDangerCheckrecord>( dtoList.size() );
        for ( CmgtSaftyDangerCheckrecordDto cmgtSaftyDangerCheckrecordDto : dtoList ) {
            list.add( toEntity( cmgtSaftyDangerCheckrecordDto ) );
        }

        return list;
    }

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

        List<CmgtSaftyDangerCheckrecordDto> list = new ArrayList<CmgtSaftyDangerCheckrecordDto>( entityList.size() );
        for ( CmgtSaftyDangerCheckrecord cmgtSaftyDangerCheckrecord : entityList ) {
            list.add( toDto( cmgtSaftyDangerCheckrecord ) );
        }

        return list;
    }
}
