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

import com.artfess.manage.safty.manager.dto.CmgtSaftyAppraisalDto;
import com.artfess.manage.safty.model.CmgtSaftyAppraisal;
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:56+0800",
    comments = "version: 1.2.0.Final, compiler: javac, environment: Java 1.8.0_71 (Oracle Corporation)"
)
@Component
public class CmgtSaftyAppraisalDtoMapperImpl implements CmgtSaftyAppraisalDtoMapper {

    @Override
    public CmgtSaftyAppraisal toEntity(CmgtSaftyAppraisalDto dto) {
        if ( dto == null ) {
            return null;
        }

        CmgtSaftyAppraisal cmgtSaftyAppraisal = new CmgtSaftyAppraisal();

        cmgtSaftyAppraisal.setCreateBy( dto.getCreateBy() );
        cmgtSaftyAppraisal.setCreateOrgId( dto.getCreateOrgId() );
        cmgtSaftyAppraisal.setCreateTime( dto.getCreateTime() );
        cmgtSaftyAppraisal.setUpdateBy( dto.getUpdateBy() );
        cmgtSaftyAppraisal.setUpdateTime( dto.getUpdateTime() );
        cmgtSaftyAppraisal.setIsDelete( dto.getIsDelete() );
        cmgtSaftyAppraisal.setVersion( dto.getVersion() );
        cmgtSaftyAppraisal.setLastTime( dto.getLastTime() );
        cmgtSaftyAppraisal.setId( dto.getId() );
        cmgtSaftyAppraisal.setDeptId( dto.getDeptId() );
        cmgtSaftyAppraisal.setTargetId( dto.getTargetId() );
        cmgtSaftyAppraisal.setPlanTaskId( dto.getPlanTaskId() );
        cmgtSaftyAppraisal.setUserId( dto.getUserId() );
        cmgtSaftyAppraisal.setAppraisalDetail( dto.getAppraisalDetail() );
        cmgtSaftyAppraisal.setAppraisalVal( dto.getAppraisalVal() );
        cmgtSaftyAppraisal.setTaskFinishDate( dto.getTaskFinishDate() );
        cmgtSaftyAppraisal.setResult( dto.getResult() );
        cmgtSaftyAppraisal.setAccording( dto.getAccording() );
        cmgtSaftyAppraisal.setAppraisalUser( dto.getAppraisalUser() );
        cmgtSaftyAppraisal.setAppraisalDate( dto.getAppraisalDate() );
        cmgtSaftyAppraisal.setAttachment( dto.getAttachment() );
        cmgtSaftyAppraisal.setSn( dto.getSn() );
        cmgtSaftyAppraisal.setMemo( dto.getMemo() );

        return cmgtSaftyAppraisal;
    }

    @Override
    public CmgtSaftyAppraisalDto toDto(CmgtSaftyAppraisal entity) {
        if ( entity == null ) {
            return null;
        }

        CmgtSaftyAppraisalDto cmgtSaftyAppraisalDto = new CmgtSaftyAppraisalDto();

        cmgtSaftyAppraisalDto.setCreateBy( entity.getCreateBy() );
        cmgtSaftyAppraisalDto.setCreateOrgId( entity.getCreateOrgId() );
        cmgtSaftyAppraisalDto.setCreateTime( entity.getCreateTime() );
        cmgtSaftyAppraisalDto.setUpdateBy( entity.getUpdateBy() );
        cmgtSaftyAppraisalDto.setUpdateTime( entity.getUpdateTime() );
        cmgtSaftyAppraisalDto.setIsDelete( entity.getIsDelete() );
        cmgtSaftyAppraisalDto.setVersion( entity.getVersion() );
        cmgtSaftyAppraisalDto.setLastTime( entity.getLastTime() );
        cmgtSaftyAppraisalDto.setId( entity.getId() );
        cmgtSaftyAppraisalDto.setDeptId( entity.getDeptId() );
        cmgtSaftyAppraisalDto.setTargetId( entity.getTargetId() );
        cmgtSaftyAppraisalDto.setPlanTaskId( entity.getPlanTaskId() );
        cmgtSaftyAppraisalDto.setUserId( entity.getUserId() );
        cmgtSaftyAppraisalDto.setAppraisalDetail( entity.getAppraisalDetail() );
        cmgtSaftyAppraisalDto.setAppraisalVal( entity.getAppraisalVal() );
        cmgtSaftyAppraisalDto.setTaskFinishDate( entity.getTaskFinishDate() );
        cmgtSaftyAppraisalDto.setResult( entity.getResult() );
        cmgtSaftyAppraisalDto.setAccording( entity.getAccording() );
        cmgtSaftyAppraisalDto.setAppraisalUser( entity.getAppraisalUser() );
        cmgtSaftyAppraisalDto.setAppraisalDate( entity.getAppraisalDate() );
        cmgtSaftyAppraisalDto.setAttachment( entity.getAttachment() );
        cmgtSaftyAppraisalDto.setSn( entity.getSn() );
        cmgtSaftyAppraisalDto.setMemo( entity.getMemo() );

        return cmgtSaftyAppraisalDto;
    }

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

        List<CmgtSaftyAppraisal> list = new ArrayList<CmgtSaftyAppraisal>( dtoList.size() );
        for ( CmgtSaftyAppraisalDto cmgtSaftyAppraisalDto : dtoList ) {
            list.add( toEntity( cmgtSaftyAppraisalDto ) );
        }

        return list;
    }

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

        List<CmgtSaftyAppraisalDto> list = new ArrayList<CmgtSaftyAppraisalDto>( entityList.size() );
        for ( CmgtSaftyAppraisal cmgtSaftyAppraisal : entityList ) {
            list.add( toDto( cmgtSaftyAppraisal ) );
        }

        return list;
    }
}
