package com.cdm.module.trade.convert.order;

import com.cdm.module.trade.dal.dataobject.order.TradeOrderLogDO;
import com.cdm.module.trade.service.order.bo.TradeOrderLogCreateReqBO;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2023-12-21T17:56:57+0800",
    comments = "version: 1.5.5.Final, compiler: javac, environment: Java 17.0.3 (JetBrains s.r.o.)"
)
public class TradeOrderLogConvertImpl implements TradeOrderLogConvert {

    @Override
    public TradeOrderLogDO convert(TradeOrderLogCreateReqBO bean) {
        if ( bean == null ) {
            return null;
        }

        TradeOrderLogDO.TradeOrderLogDOBuilder tradeOrderLogDO = TradeOrderLogDO.builder();

        tradeOrderLogDO.userId( bean.getUserId() );
        tradeOrderLogDO.userType( bean.getUserType() );
        tradeOrderLogDO.orderId( bean.getOrderId() );
        tradeOrderLogDO.beforeStatus( bean.getBeforeStatus() );
        tradeOrderLogDO.afterStatus( bean.getAfterStatus() );
        tradeOrderLogDO.operateType( bean.getOperateType() );
        tradeOrderLogDO.content( bean.getContent() );

        return tradeOrderLogDO.build();
    }
}
