com.aizuda.snailjob.server.web.service.convert.RetryTaskLogResponseVOConverterImpl Maven / Gradle / Ivy
package com.aizuda.snailjob.server.web.service.convert;
import com.aizuda.snailjob.server.web.model.response.RetryTaskLogResponseVO;
import com.aizuda.snailjob.template.datasource.persistence.po.RetryTaskLog;
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 RetryTaskLogResponseVOConverterImpl implements RetryTaskLogResponseVOConverter {
@Override
public RetryTaskLogResponseVO convert(RetryTaskLog retryTaskLog) {
if ( retryTaskLog == null ) {
return null;
}
RetryTaskLogResponseVO retryTaskLogResponseVO = new RetryTaskLogResponseVO();
retryTaskLogResponseVO.setId( retryTaskLog.getId() );
retryTaskLogResponseVO.setUniqueId( retryTaskLog.getUniqueId() );
retryTaskLogResponseVO.setGroupName( retryTaskLog.getGroupName() );
retryTaskLogResponseVO.setSceneName( retryTaskLog.getSceneName() );
retryTaskLogResponseVO.setIdempotentId( retryTaskLog.getIdempotentId() );
retryTaskLogResponseVO.setBizNo( retryTaskLog.getBizNo() );
retryTaskLogResponseVO.setExecutorName( retryTaskLog.getExecutorName() );
retryTaskLogResponseVO.setArgsStr( retryTaskLog.getArgsStr() );
retryTaskLogResponseVO.setExtAttrs( retryTaskLog.getExtAttrs() );
retryTaskLogResponseVO.setRetryStatus( retryTaskLog.getRetryStatus() );
retryTaskLogResponseVO.setTaskType( retryTaskLog.getTaskType() );
retryTaskLogResponseVO.setCreateDt( retryTaskLog.getCreateDt() );
return retryTaskLogResponseVO;
}
@Override
public List convertList(List retryTaskLogs) {
if ( retryTaskLogs == null ) {
return null;
}
List list = new ArrayList( retryTaskLogs.size() );
for ( RetryTaskLog retryTaskLog : retryTaskLogs ) {
list.add( convert( retryTaskLog ) );
}
return list;
}
}