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

import com.artfess.manage.material.manager.dto.CmgtMaterialWarehouseInoutDto;
import com.artfess.manage.material.model.CmgtMaterialWarehouseInout;
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 CmgtMaterialWarehouseInoutDtoMapperImpl implements CmgtMaterialWarehouseInoutDtoMapper {

    @Override
    public CmgtMaterialWarehouseInout toEntity(CmgtMaterialWarehouseInoutDto dto) {
        if ( dto == null ) {
            return null;
        }

        CmgtMaterialWarehouseInout cmgtMaterialWarehouseInout = new CmgtMaterialWarehouseInout();

        cmgtMaterialWarehouseInout.setCreateBy( dto.getCreateBy() );
        cmgtMaterialWarehouseInout.setCreateOrgId( dto.getCreateOrgId() );
        cmgtMaterialWarehouseInout.setCreateTime( dto.getCreateTime() );
        cmgtMaterialWarehouseInout.setUpdateBy( dto.getUpdateBy() );
        cmgtMaterialWarehouseInout.setUpdateTime( dto.getUpdateTime() );
        cmgtMaterialWarehouseInout.setId( dto.getId() );
        cmgtMaterialWarehouseInout.setDataType( dto.getDataType() );
        cmgtMaterialWarehouseInout.setWarehouse( dto.getWarehouse() );
        cmgtMaterialWarehouseInout.setInoutDate( dto.getInoutDate() );
        cmgtMaterialWarehouseInout.setSource( dto.getSource() );
        cmgtMaterialWarehouseInout.setDescripton( dto.getDescripton() );
        cmgtMaterialWarehouseInout.setApplicant( dto.getApplicant() );
        cmgtMaterialWarehouseInout.setApplicantId( dto.getApplicantId() );
        cmgtMaterialWarehouseInout.setOrg( dto.getOrg() );
        cmgtMaterialWarehouseInout.setOrgId( dto.getOrgId() );
        cmgtMaterialWarehouseInout.setApprover( dto.getApprover() );
        cmgtMaterialWarehouseInout.setApprovedDate( dto.getApprovedDate() );
        cmgtMaterialWarehouseInout.setSn( dto.getSn() );
        cmgtMaterialWarehouseInout.setMemo( dto.getMemo() );
        cmgtMaterialWarehouseInout.setStatus( dto.getStatus() );
        cmgtMaterialWarehouseInout.setVersion( dto.getVersion() );
        cmgtMaterialWarehouseInout.setLastTime( dto.getLastTime() );

        return cmgtMaterialWarehouseInout;
    }

    @Override
    public CmgtMaterialWarehouseInoutDto toDto(CmgtMaterialWarehouseInout entity) {
        if ( entity == null ) {
            return null;
        }

        CmgtMaterialWarehouseInoutDto cmgtMaterialWarehouseInoutDto = new CmgtMaterialWarehouseInoutDto();

        cmgtMaterialWarehouseInoutDto.setCreateBy( entity.getCreateBy() );
        cmgtMaterialWarehouseInoutDto.setCreateOrgId( entity.getCreateOrgId() );
        cmgtMaterialWarehouseInoutDto.setCreateTime( entity.getCreateTime() );
        cmgtMaterialWarehouseInoutDto.setUpdateBy( entity.getUpdateBy() );
        cmgtMaterialWarehouseInoutDto.setUpdateTime( entity.getUpdateTime() );
        cmgtMaterialWarehouseInoutDto.setVersion( entity.getVersion() );
        cmgtMaterialWarehouseInoutDto.setLastTime( entity.getLastTime() );
        cmgtMaterialWarehouseInoutDto.setId( entity.getId() );
        cmgtMaterialWarehouseInoutDto.setDataType( entity.getDataType() );
        cmgtMaterialWarehouseInoutDto.setWarehouse( entity.getWarehouse() );
        cmgtMaterialWarehouseInoutDto.setInoutDate( entity.getInoutDate() );
        cmgtMaterialWarehouseInoutDto.setSource( entity.getSource() );
        cmgtMaterialWarehouseInoutDto.setDescripton( entity.getDescripton() );
        cmgtMaterialWarehouseInoutDto.setApplicant( entity.getApplicant() );
        cmgtMaterialWarehouseInoutDto.setApplicantId( entity.getApplicantId() );
        cmgtMaterialWarehouseInoutDto.setOrg( entity.getOrg() );
        cmgtMaterialWarehouseInoutDto.setOrgId( entity.getOrgId() );
        cmgtMaterialWarehouseInoutDto.setApprover( entity.getApprover() );
        cmgtMaterialWarehouseInoutDto.setApprovedDate( entity.getApprovedDate() );
        cmgtMaterialWarehouseInoutDto.setSn( entity.getSn() );
        cmgtMaterialWarehouseInoutDto.setMemo( entity.getMemo() );
        cmgtMaterialWarehouseInoutDto.setStatus( entity.getStatus() );

        return cmgtMaterialWarehouseInoutDto;
    }

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

        List<CmgtMaterialWarehouseInout> list = new ArrayList<CmgtMaterialWarehouseInout>( dtoList.size() );
        for ( CmgtMaterialWarehouseInoutDto cmgtMaterialWarehouseInoutDto : dtoList ) {
            list.add( toEntity( cmgtMaterialWarehouseInoutDto ) );
        }

        return list;
    }

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

        List<CmgtMaterialWarehouseInoutDto> list = new ArrayList<CmgtMaterialWarehouseInoutDto>( entityList.size() );
        for ( CmgtMaterialWarehouseInout cmgtMaterialWarehouseInout : entityList ) {
            list.add( toDto( cmgtMaterialWarehouseInout ) );
        }

        return list;
    }
}
