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

import com.cdm.module.trade.dal.dataobject.aftersale.AfterSaleLogDO;
import com.cdm.module.trade.service.aftersale.bo.AfterSaleLogCreateReqBO;
import javax.annotation.processing.Generated;

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

    @Override
    public AfterSaleLogDO convert(AfterSaleLogCreateReqBO bean) {
        if ( bean == null ) {
            return null;
        }

        AfterSaleLogDO.AfterSaleLogDOBuilder afterSaleLogDO = AfterSaleLogDO.builder();

        afterSaleLogDO.userId( bean.getUserId() );
        afterSaleLogDO.userType( bean.getUserType() );
        afterSaleLogDO.afterSaleId( bean.getAfterSaleId() );
        afterSaleLogDO.beforeStatus( bean.getBeforeStatus() );
        afterSaleLogDO.afterStatus( bean.getAfterStatus() );
        afterSaleLogDO.operateType( bean.getOperateType() );
        afterSaleLogDO.content( bean.getContent() );

        return afterSaleLogDO.build();
    }
}
