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

import com.jojubanking.boot.framework.common.pojo.PageResult;
import com.jojubanking.boot.module.system.controller.admin.reserve8.vo.Reserve8CreateReqVO;
import com.jojubanking.boot.module.system.controller.admin.reserve8.vo.Reserve8ExcelVO;
import com.jojubanking.boot.module.system.controller.admin.reserve8.vo.Reserve8RespVO;
import com.jojubanking.boot.module.system.controller.admin.reserve8.vo.Reserve8UpdateReqVO;
import com.jojubanking.boot.module.system.dal.dataobject.reserve8.Reserve8DO;
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 Reserve8ConvertImpl implements Reserve8Convert {

    @Override
    public Reserve8DO convert(Reserve8CreateReqVO bean) {
        if ( bean == null ) {
            return null;
        }

        Reserve8DO reserve8DO = new Reserve8DO();

        reserve8DO.setUserId( bean.getUserId() );
        reserve8DO.setCardId( bean.getCardId() );
        reserve8DO.setName( bean.getName() );
        reserve8DO.setKsmc( bean.getKsmc() );
        reserve8DO.setYsmc( bean.getYsmc() );
        reserve8DO.setSubHospitalID( bean.getSubHospitalID() );
        reserve8DO.setReptNum( bean.getReptNum() );
        reserve8DO.setLockType( bean.getLockType() );
        reserve8DO.setHisOrderNO( bean.getHisOrderNO() );
        reserve8DO.setScheduleId( bean.getScheduleId() );
        reserve8DO.setDoctorCode( bean.getDoctorCode() );
        reserve8DO.setDepartCode( bean.getDepartCode() );
        reserve8DO.setParTimeId( bean.getParTimeId() );
        reserve8DO.setLockTime( bean.getLockTime() );
        reserve8DO.setPatientId( bean.getPatientId() );
        reserve8DO.setMobile( bean.getMobile() );
        reserve8DO.setSerialNo( bean.getSerialNo() );
        reserve8DO.setLocation( bean.getLocation() );
        reserve8DO.setTicketNo( bean.getTicketNo() );
        reserve8DO.setOrderNo( bean.getOrderNo() );
        reserve8DO.setTimeInterval( bean.getTimeInterval() );
        reserve8DO.setRegisterdate( bean.getRegisterdate() );
        reserve8DO.setClinicFee( bean.getClinicFee() );
        reserve8DO.setRegistrationFee( bean.getRegistrationFee() );
        reserve8DO.setPayNature( bean.getPayNature() );
        reserve8DO.setPayType( bean.getPayType() );
        reserve8DO.setPowerTranID( bean.getPowerTranID() );
        reserve8DO.setPowerTranCARD( bean.getPowerTranCARD() );
        reserve8DO.setTerminalId( bean.getTerminalId() );
        reserve8DO.setZFAmount( bean.getZFAmount() );
        reserve8DO.setYBZHAmount( bean.getYBZHAmount() );
        reserve8DO.setYBTCAmount( bean.getYBTCAmount() );
        reserve8DO.setYBOutMsg( bean.getYBOutMsg() );
        reserve8DO.setHisOperNum( bean.getHisOperNum() );
        reserve8DO.setReferNo( bean.getReferNo() );
        reserve8DO.setToken( bean.getToken() );
        reserve8DO.setAppFlag( bean.getAppFlag() );
        reserve8DO.setAppStatus( bean.getAppStatus() );
        reserve8DO.setAppType( bean.getAppType() );
        reserve8DO.setCtime( bean.getCtime() );
        reserve8DO.setUtime( bean.getUtime() );

        return reserve8DO;
    }

    @Override
    public Reserve8DO convert(Reserve8UpdateReqVO bean) {
        if ( bean == null ) {
            return null;
        }

        Reserve8DO reserve8DO = new Reserve8DO();

        reserve8DO.setId( bean.getId() );
        reserve8DO.setUserId( bean.getUserId() );
        reserve8DO.setCardId( bean.getCardId() );
        reserve8DO.setName( bean.getName() );
        reserve8DO.setKsmc( bean.getKsmc() );
        reserve8DO.setYsmc( bean.getYsmc() );
        reserve8DO.setSubHospitalID( bean.getSubHospitalID() );
        reserve8DO.setReptNum( bean.getReptNum() );
        reserve8DO.setLockType( bean.getLockType() );
        reserve8DO.setHisOrderNO( bean.getHisOrderNO() );
        reserve8DO.setScheduleId( bean.getScheduleId() );
        reserve8DO.setDoctorCode( bean.getDoctorCode() );
        reserve8DO.setDepartCode( bean.getDepartCode() );
        reserve8DO.setParTimeId( bean.getParTimeId() );
        reserve8DO.setLockTime( bean.getLockTime() );
        reserve8DO.setPatientId( bean.getPatientId() );
        reserve8DO.setMobile( bean.getMobile() );
        reserve8DO.setSerialNo( bean.getSerialNo() );
        reserve8DO.setLocation( bean.getLocation() );
        reserve8DO.setTicketNo( bean.getTicketNo() );
        reserve8DO.setOrderNo( bean.getOrderNo() );
        reserve8DO.setTimeInterval( bean.getTimeInterval() );
        reserve8DO.setRegisterdate( bean.getRegisterdate() );
        reserve8DO.setClinicFee( bean.getClinicFee() );
        reserve8DO.setRegistrationFee( bean.getRegistrationFee() );
        reserve8DO.setPayNature( bean.getPayNature() );
        reserve8DO.setPayType( bean.getPayType() );
        reserve8DO.setPowerTranID( bean.getPowerTranID() );
        reserve8DO.setPowerTranCARD( bean.getPowerTranCARD() );
        reserve8DO.setTerminalId( bean.getTerminalId() );
        reserve8DO.setZFAmount( bean.getZFAmount() );
        reserve8DO.setYBZHAmount( bean.getYBZHAmount() );
        reserve8DO.setYBTCAmount( bean.getYBTCAmount() );
        reserve8DO.setYBOutMsg( bean.getYBOutMsg() );
        reserve8DO.setHisOperNum( bean.getHisOperNum() );
        reserve8DO.setReferNo( bean.getReferNo() );
        reserve8DO.setToken( bean.getToken() );
        reserve8DO.setAppFlag( bean.getAppFlag() );
        reserve8DO.setAppStatus( bean.getAppStatus() );
        reserve8DO.setAppType( bean.getAppType() );
        reserve8DO.setCtime( bean.getCtime() );
        reserve8DO.setUtime( bean.getUtime() );

        return reserve8DO;
    }

    @Override
    public Reserve8RespVO convert(Reserve8DO bean) {
        if ( bean == null ) {
            return null;
        }

        Reserve8RespVO reserve8RespVO = new Reserve8RespVO();

        reserve8RespVO.setUserId( bean.getUserId() );
        reserve8RespVO.setCardId( bean.getCardId() );
        reserve8RespVO.setName( bean.getName() );
        reserve8RespVO.setKsmc( bean.getKsmc() );
        reserve8RespVO.setYsmc( bean.getYsmc() );
        reserve8RespVO.setSubHospitalID( bean.getSubHospitalID() );
        reserve8RespVO.setReptNum( bean.getReptNum() );
        reserve8RespVO.setLockType( bean.getLockType() );
        reserve8RespVO.setHisOrderNO( bean.getHisOrderNO() );
        reserve8RespVO.setScheduleId( bean.getScheduleId() );
        reserve8RespVO.setDoctorCode( bean.getDoctorCode() );
        reserve8RespVO.setDepartCode( bean.getDepartCode() );
        reserve8RespVO.setParTimeId( bean.getParTimeId() );
        reserve8RespVO.setLockTime( bean.getLockTime() );
        reserve8RespVO.setPatientId( bean.getPatientId() );
        reserve8RespVO.setMobile( bean.getMobile() );
        reserve8RespVO.setSerialNo( bean.getSerialNo() );
        reserve8RespVO.setLocation( bean.getLocation() );
        reserve8RespVO.setTicketNo( bean.getTicketNo() );
        reserve8RespVO.setOrderNo( bean.getOrderNo() );
        reserve8RespVO.setTimeInterval( bean.getTimeInterval() );
        reserve8RespVO.setRegisterdate( bean.getRegisterdate() );
        reserve8RespVO.setClinicFee( bean.getClinicFee() );
        reserve8RespVO.setRegistrationFee( bean.getRegistrationFee() );
        reserve8RespVO.setPayNature( bean.getPayNature() );
        reserve8RespVO.setPayType( bean.getPayType() );
        reserve8RespVO.setPowerTranID( bean.getPowerTranID() );
        reserve8RespVO.setPowerTranCARD( bean.getPowerTranCARD() );
        reserve8RespVO.setTerminalId( bean.getTerminalId() );
        reserve8RespVO.setZFAmount( bean.getZFAmount() );
        reserve8RespVO.setYBZHAmount( bean.getYBZHAmount() );
        reserve8RespVO.setYBTCAmount( bean.getYBTCAmount() );
        reserve8RespVO.setYBOutMsg( bean.getYBOutMsg() );
        reserve8RespVO.setHisOperNum( bean.getHisOperNum() );
        reserve8RespVO.setReferNo( bean.getReferNo() );
        reserve8RespVO.setToken( bean.getToken() );
        reserve8RespVO.setAppFlag( bean.getAppFlag() );
        reserve8RespVO.setAppStatus( bean.getAppStatus() );
        reserve8RespVO.setAppType( bean.getAppType() );
        reserve8RespVO.setCtime( bean.getCtime() );
        reserve8RespVO.setUtime( bean.getUtime() );
        reserve8RespVO.setId( bean.getId() );

        return reserve8RespVO;
    }

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

        List<Reserve8RespVO> list1 = new ArrayList<Reserve8RespVO>( list.size() );
        for ( Reserve8DO reserve8DO : list ) {
            list1.add( convert( reserve8DO ) );
        }

        return list1;
    }

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

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

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

        return pageResult;
    }

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

        List<Reserve8ExcelVO> list1 = new ArrayList<Reserve8ExcelVO>( list.size() );
        for ( Reserve8DO reserve8DO : list ) {
            list1.add( reserve8DOToReserve8ExcelVO( reserve8DO ) );
        }

        return list1;
    }

    protected Reserve8ExcelVO reserve8DOToReserve8ExcelVO(Reserve8DO reserve8DO) {
        if ( reserve8DO == null ) {
            return null;
        }

        Reserve8ExcelVO reserve8ExcelVO = new Reserve8ExcelVO();

        reserve8ExcelVO.setId( reserve8DO.getId() );
        reserve8ExcelVO.setUserId( reserve8DO.getUserId() );
        reserve8ExcelVO.setCardId( reserve8DO.getCardId() );
        reserve8ExcelVO.setName( reserve8DO.getName() );
        reserve8ExcelVO.setKsmc( reserve8DO.getKsmc() );
        reserve8ExcelVO.setYsmc( reserve8DO.getYsmc() );
        reserve8ExcelVO.setSubHospitalID( reserve8DO.getSubHospitalID() );
        reserve8ExcelVO.setReptNum( reserve8DO.getReptNum() );
        reserve8ExcelVO.setLockType( reserve8DO.getLockType() );
        reserve8ExcelVO.setHisOrderNO( reserve8DO.getHisOrderNO() );
        reserve8ExcelVO.setScheduleId( reserve8DO.getScheduleId() );
        reserve8ExcelVO.setDoctorCode( reserve8DO.getDoctorCode() );
        reserve8ExcelVO.setDepartCode( reserve8DO.getDepartCode() );
        reserve8ExcelVO.setParTimeId( reserve8DO.getParTimeId() );
        reserve8ExcelVO.setLockTime( reserve8DO.getLockTime() );
        reserve8ExcelVO.setPatientId( reserve8DO.getPatientId() );
        reserve8ExcelVO.setMobile( reserve8DO.getMobile() );
        reserve8ExcelVO.setSerialNo( reserve8DO.getSerialNo() );
        reserve8ExcelVO.setLocation( reserve8DO.getLocation() );
        reserve8ExcelVO.setTicketNo( reserve8DO.getTicketNo() );
        reserve8ExcelVO.setOrderNo( reserve8DO.getOrderNo() );
        reserve8ExcelVO.setTimeInterval( reserve8DO.getTimeInterval() );
        reserve8ExcelVO.setRegisterdate( reserve8DO.getRegisterdate() );
        reserve8ExcelVO.setClinicFee( reserve8DO.getClinicFee() );
        reserve8ExcelVO.setRegistrationFee( reserve8DO.getRegistrationFee() );
        reserve8ExcelVO.setPayNature( reserve8DO.getPayNature() );
        reserve8ExcelVO.setPayType( reserve8DO.getPayType() );
        reserve8ExcelVO.setPowerTranID( reserve8DO.getPowerTranID() );
        reserve8ExcelVO.setPowerTranCARD( reserve8DO.getPowerTranCARD() );
        reserve8ExcelVO.setTerminalId( reserve8DO.getTerminalId() );
        reserve8ExcelVO.setZFAmount( reserve8DO.getZFAmount() );
        reserve8ExcelVO.setYBZHAmount( reserve8DO.getYBZHAmount() );
        reserve8ExcelVO.setYBTCAmount( reserve8DO.getYBTCAmount() );
        reserve8ExcelVO.setYBOutMsg( reserve8DO.getYBOutMsg() );
        reserve8ExcelVO.setHisOperNum( reserve8DO.getHisOperNum() );
        reserve8ExcelVO.setReferNo( reserve8DO.getReferNo() );
        reserve8ExcelVO.setToken( reserve8DO.getToken() );
        reserve8ExcelVO.setAppFlag( reserve8DO.getAppFlag() );
        reserve8ExcelVO.setAppStatus( reserve8DO.getAppStatus() );
        reserve8ExcelVO.setAppType( reserve8DO.getAppType() );
        reserve8ExcelVO.setCtime( reserve8DO.getCtime() );
        reserve8ExcelVO.setUtime( reserve8DO.getUtime() );

        return reserve8ExcelVO;
    }
}
