package com.jojubanking.boot.module.system.convert.refundapply;

import com.jojubanking.boot.framework.common.pojo.PageResult;
import com.jojubanking.boot.module.system.controller.admin.refundapply.vo.RefundApplyCreateReqVO;
import com.jojubanking.boot.module.system.controller.admin.refundapply.vo.RefundApplyExcelVO;
import com.jojubanking.boot.module.system.controller.admin.refundapply.vo.RefundApplyRespVO;
import com.jojubanking.boot.module.system.controller.admin.refundapply.vo.RefundApplyUpdateReqVO;
import com.jojubanking.boot.module.system.dal.dataobject.refundapply.RefundApplyDO;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2025-12-05T11:32:08+0800",
    comments = "version: 1.4.1.Final, compiler: javac, environment: Java 1.8.0_201 (Oracle Corporation)"
)
public class RefundApplyConvertImpl implements RefundApplyConvert {

    @Override
    public RefundApplyDO convert(RefundApplyCreateReqVO bean) {
        if ( bean == null ) {
            return null;
        }

        RefundApplyDO refundApplyDO = new RefundApplyDO();

        refundApplyDO.setRefname( bean.getRefname() );
        refundApplyDO.setRefidcard( bean.getRefidcard() );
        refundApplyDO.setRefbankcard( bean.getRefbankcard() );
        refundApplyDO.setRefbankcardname( bean.getRefbankcardname() );
        refundApplyDO.setRefbanktype( bean.getRefbanktype() );
        refundApplyDO.setReftel( bean.getReftel() );
        refundApplyDO.setZidcard( bean.getZidcard() );
        refundApplyDO.setZidcardimg( bean.getZidcardimg() );
        refundApplyDO.setFidcard( bean.getFidcard() );
        refundApplyDO.setFidcardimg( bean.getFidcardimg() );
        refundApplyDO.setZbankcard( bean.getZbankcard() );
        refundApplyDO.setZbankcardimg( bean.getZbankcardimg() );
        refundApplyDO.setChildidcard( bean.getChildidcard() );
        refundApplyDO.setChildidcardimg( bean.getChildidcardimg() );

        return refundApplyDO;
    }

    @Override
    public RefundApplyDO convert(RefundApplyUpdateReqVO bean) {
        if ( bean == null ) {
            return null;
        }

        RefundApplyDO refundApplyDO = new RefundApplyDO();

        refundApplyDO.setId( bean.getId() );
        refundApplyDO.setRefname( bean.getRefname() );
        refundApplyDO.setRefidcard( bean.getRefidcard() );
        refundApplyDO.setRefbankcard( bean.getRefbankcard() );
        refundApplyDO.setRefbankcardname( bean.getRefbankcardname() );
        refundApplyDO.setRefbanktype( bean.getRefbanktype() );
        refundApplyDO.setReftel( bean.getReftel() );
        refundApplyDO.setZidcard( bean.getZidcard() );
        refundApplyDO.setZidcardimg( bean.getZidcardimg() );
        refundApplyDO.setFidcard( bean.getFidcard() );
        refundApplyDO.setFidcardimg( bean.getFidcardimg() );
        refundApplyDO.setZbankcard( bean.getZbankcard() );
        refundApplyDO.setZbankcardimg( bean.getZbankcardimg() );
        refundApplyDO.setChildidcard( bean.getChildidcard() );
        refundApplyDO.setChildidcardimg( bean.getChildidcardimg() );

        return refundApplyDO;
    }

    @Override
    public RefundApplyRespVO convert(RefundApplyDO bean) {
        if ( bean == null ) {
            return null;
        }

        RefundApplyRespVO refundApplyRespVO = new RefundApplyRespVO();

        refundApplyRespVO.setRefname( bean.getRefname() );
        refundApplyRespVO.setRefidcard( bean.getRefidcard() );
        refundApplyRespVO.setRefbankcard( bean.getRefbankcard() );
        refundApplyRespVO.setRefbankcardname( bean.getRefbankcardname() );
        refundApplyRespVO.setRefbanktype( bean.getRefbanktype() );
        refundApplyRespVO.setReftel( bean.getReftel() );
        refundApplyRespVO.setZidcard( bean.getZidcard() );
        refundApplyRespVO.setZidcardimg( bean.getZidcardimg() );
        refundApplyRespVO.setFidcard( bean.getFidcard() );
        refundApplyRespVO.setFidcardimg( bean.getFidcardimg() );
        refundApplyRespVO.setZbankcard( bean.getZbankcard() );
        refundApplyRespVO.setZbankcardimg( bean.getZbankcardimg() );
        refundApplyRespVO.setChildidcard( bean.getChildidcard() );
        refundApplyRespVO.setChildidcardimg( bean.getChildidcardimg() );
        refundApplyRespVO.setId( bean.getId() );
        refundApplyRespVO.setCreateTime( bean.getCreateTime() );

        return refundApplyRespVO;
    }

    @Override
    public List<RefundApplyRespVO> convertList(List<RefundApplyDO> list) {
        if ( list == null ) {
            return null;
        }

        List<RefundApplyRespVO> list1 = new ArrayList<RefundApplyRespVO>( list.size() );
        for ( RefundApplyDO refundApplyDO : list ) {
            list1.add( convert( refundApplyDO ) );
        }

        return list1;
    }

    @Override
    public PageResult<RefundApplyRespVO> convertPage(PageResult<RefundApplyDO> page) {
        if ( page == null ) {
            return null;
        }

        PageResult<RefundApplyRespVO> pageResult = new PageResult<RefundApplyRespVO>();

        pageResult.setList( convertList( page.getList() ) );
        pageResult.setTotal( page.getTotal() );

        return pageResult;
    }

    @Override
    public List<RefundApplyExcelVO> convertList02(List<RefundApplyDO> list) {
        if ( list == null ) {
            return null;
        }

        List<RefundApplyExcelVO> list1 = new ArrayList<RefundApplyExcelVO>( list.size() );
        for ( RefundApplyDO refundApplyDO : list ) {
            list1.add( refundApplyDOToRefundApplyExcelVO( refundApplyDO ) );
        }

        return list1;
    }

    protected RefundApplyExcelVO refundApplyDOToRefundApplyExcelVO(RefundApplyDO refundApplyDO) {
        if ( refundApplyDO == null ) {
            return null;
        }

        RefundApplyExcelVO refundApplyExcelVO = new RefundApplyExcelVO();

        refundApplyExcelVO.setId( refundApplyDO.getId() );
        refundApplyExcelVO.setRefname( refundApplyDO.getRefname() );
        refundApplyExcelVO.setRefidcard( refundApplyDO.getRefidcard() );
        refundApplyExcelVO.setRefbankcard( refundApplyDO.getRefbankcard() );
        refundApplyExcelVO.setRefbankcardname( refundApplyDO.getRefbankcardname() );
        refundApplyExcelVO.setRefbanktype( refundApplyDO.getRefbanktype() );
        refundApplyExcelVO.setReftel( refundApplyDO.getReftel() );
        refundApplyExcelVO.setZidcard( refundApplyDO.getZidcard() );
        refundApplyExcelVO.setZidcardimg( refundApplyDO.getZidcardimg() );
        refundApplyExcelVO.setFidcard( refundApplyDO.getFidcard() );
        refundApplyExcelVO.setFidcardimg( refundApplyDO.getFidcardimg() );
        refundApplyExcelVO.setZbankcard( refundApplyDO.getZbankcard() );
        refundApplyExcelVO.setZbankcardimg( refundApplyDO.getZbankcardimg() );
        refundApplyExcelVO.setChildidcard( refundApplyDO.getChildidcard() );
        refundApplyExcelVO.setChildidcardimg( refundApplyDO.getChildidcardimg() );
        refundApplyExcelVO.setCreateTime( refundApplyDO.getCreateTime() );

        return refundApplyExcelVO;
    }
}
