package com.ankaibei.workFlow.common.online.model;

import com.ankaibei.workFlow.common.online.model.OnlineDict.OnlineDictModelMapper;
import com.ankaibei.workFlow.common.online.vo.OnlineDictVo;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2023-05-08T14:15:47+0800",
    comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_144 (Oracle Corporation)"
)
public class OnlineDict$OnlineDictModelMapperImpl implements OnlineDictModelMapper {

    @Override
    public List<OnlineDictVo> fromModelList(List<OnlineDict> arg0) {
        if ( arg0 == null ) {
            return null;
        }

        List<OnlineDictVo> list = new ArrayList<OnlineDictVo>( arg0.size() );
        for ( OnlineDict onlineDict : arg0 ) {
            list.add( fromModel( onlineDict ) );
        }

        return list;
    }

    @Override
    public List<OnlineDict> toModelList(List<OnlineDictVo> arg0) {
        if ( arg0 == null ) {
            return null;
        }

        List<OnlineDict> list = new ArrayList<OnlineDict>( arg0.size() );
        for ( OnlineDictVo onlineDictVo : arg0 ) {
            list.add( toModel( onlineDictVo ) );
        }

        return list;
    }

    @Override
    public OnlineDict toModel(OnlineDictVo onlineDictVo) {
        if ( onlineDictVo == null ) {
            return null;
        }

        OnlineDict onlineDict = new OnlineDict();

        onlineDict.setDictId( onlineDictVo.getDictId() );
        onlineDict.setDictName( onlineDictVo.getDictName() );
        onlineDict.setDictType( onlineDictVo.getDictType() );
        onlineDict.setDblinkId( onlineDictVo.getDblinkId() );
        onlineDict.setTableName( onlineDictVo.getTableName() );
        onlineDict.setKeyColumnName( onlineDictVo.getKeyColumnName() );
        onlineDict.setParentKeyColumnName( onlineDictVo.getParentKeyColumnName() );
        onlineDict.setValueColumnName( onlineDictVo.getValueColumnName() );
        onlineDict.setDeletedColumnName( onlineDictVo.getDeletedColumnName() );
        onlineDict.setUserFilterColumnName( onlineDictVo.getUserFilterColumnName() );
        onlineDict.setDeptFilterColumnName( onlineDictVo.getDeptFilterColumnName() );
        onlineDict.setTenantFilterColumnName( onlineDictVo.getTenantFilterColumnName() );
        onlineDict.setTreeFlag( onlineDictVo.getTreeFlag() );
        onlineDict.setDictListUrl( onlineDictVo.getDictListUrl() );
        onlineDict.setDictIdsUrl( onlineDictVo.getDictIdsUrl() );
        onlineDict.setDictDataJson( onlineDictVo.getDictDataJson() );
        onlineDict.setUpdateTime( onlineDictVo.getUpdateTime() );
        onlineDict.setCreateTime( onlineDictVo.getCreateTime() );
        onlineDict.setDictTypeDictMap( mapToMap( onlineDictVo.getDictTypeDictMap() ) );
        onlineDict.setDblinkIdDictMap( mapToMap( onlineDictVo.getDblinkIdDictMap() ) );

        return onlineDict;
    }

    @Override
    public OnlineDictVo fromModel(OnlineDict onlineDict) {
        if ( onlineDict == null ) {
            return null;
        }

        OnlineDictVo onlineDictVo = new OnlineDictVo();

        onlineDictVo.setDictId( onlineDict.getDictId() );
        onlineDictVo.setDictName( onlineDict.getDictName() );
        onlineDictVo.setDictType( onlineDict.getDictType() );
        onlineDictVo.setDblinkId( onlineDict.getDblinkId() );
        onlineDictVo.setTableName( onlineDict.getTableName() );
        onlineDictVo.setKeyColumnName( onlineDict.getKeyColumnName() );
        onlineDictVo.setParentKeyColumnName( onlineDict.getParentKeyColumnName() );
        onlineDictVo.setValueColumnName( onlineDict.getValueColumnName() );
        onlineDictVo.setDeletedColumnName( onlineDict.getDeletedColumnName() );
        onlineDictVo.setUserFilterColumnName( onlineDict.getUserFilterColumnName() );
        onlineDictVo.setDeptFilterColumnName( onlineDict.getDeptFilterColumnName() );
        onlineDictVo.setTenantFilterColumnName( onlineDict.getTenantFilterColumnName() );
        onlineDictVo.setTreeFlag( onlineDict.getTreeFlag() );
        onlineDictVo.setDictListUrl( onlineDict.getDictListUrl() );
        onlineDictVo.setDictIdsUrl( onlineDict.getDictIdsUrl() );
        onlineDictVo.setDictDataJson( onlineDict.getDictDataJson() );
        onlineDictVo.setUpdateTime( onlineDict.getUpdateTime() );
        onlineDictVo.setCreateTime( onlineDict.getCreateTime() );
        onlineDictVo.setDictTypeDictMap( mapToMap( onlineDict.getDictTypeDictMap() ) );
        onlineDictVo.setDblinkIdDictMap( mapToMap( onlineDict.getDblinkIdDictMap() ) );

        return onlineDictVo;
    }
}
