All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aizuda.snailjob.server.web.service.convert.DispatchQuantityResponseVOConverterImpl Maven / Gradle / Ivy

package com.aizuda.snailjob.server.web.service.convert;

import com.aizuda.snailjob.server.web.model.response.DashboardLineResponseVO;
import com.aizuda.snailjob.template.datasource.persistence.dataobject.DashboardLineResponseDO;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-05-29T12:27:56+0800",
    comments = "version: 1.5.3.Final, compiler: javac, environment: Java 17.0.10 (Amazon.com Inc.)"
)
public class DispatchQuantityResponseVOConverterImpl implements DispatchQuantityResponseVOConverter {

    @Override
    public List convertList(List dashboardLineResponseDOList) {
        if ( dashboardLineResponseDOList == null ) {
            return null;
        }

        List list = new ArrayList( dashboardLineResponseDOList.size() );
        for ( DashboardLineResponseDO dashboardLineResponseDO : dashboardLineResponseDOList ) {
            list.add( dashboardLineResponseDOToDashboardLineResponseVO( dashboardLineResponseDO ) );
        }

        return list;
    }

    protected DashboardLineResponseVO dashboardLineResponseDOToDashboardLineResponseVO(DashboardLineResponseDO dashboardLineResponseDO) {
        if ( dashboardLineResponseDO == null ) {
            return null;
        }

        DashboardLineResponseVO dashboardLineResponseVO = new DashboardLineResponseVO();

        dashboardLineResponseVO.setCreateDt( dashboardLineResponseDO.getCreateDt() );
        dashboardLineResponseVO.setTotal( dashboardLineResponseDO.getTotal() );
        dashboardLineResponseVO.setSuccessNum( dashboardLineResponseDO.getSuccessNum() );
        dashboardLineResponseVO.setRunningNum( dashboardLineResponseDO.getRunningNum() );
        dashboardLineResponseVO.setMaxCountNum( dashboardLineResponseDO.getMaxCountNum() );
        dashboardLineResponseVO.setSuspendNum( dashboardLineResponseDO.getSuspendNum() );
        dashboardLineResponseVO.setFail( dashboardLineResponseDO.getFail() );
        dashboardLineResponseVO.setTotalNum( dashboardLineResponseDO.getTotalNum() );
        dashboardLineResponseVO.setFailNum( dashboardLineResponseDO.getFailNum() );
        dashboardLineResponseVO.setStop( dashboardLineResponseDO.getStop() );
        dashboardLineResponseVO.setCancel( dashboardLineResponseDO.getCancel() );
        dashboardLineResponseVO.setSuccess( dashboardLineResponseDO.getSuccess() );

        return dashboardLineResponseVO;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy