com.arextest.schedule.model.converter.ReplayBizLogConverterImpl Maven / Gradle / Ivy
package com.arextest.schedule.model.converter;
import com.arextest.schedule.model.bizlog.BizLog;
import com.arextest.schedule.model.dao.mongodb.ReplayBizLogCollection;
/*
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2024-10-23T07:32:39+0000",
comments = "version: 1.5.5.Final, compiler: javac, environment: Java 21.0.4 (Eclipse Adoptium)"
)
*/
public class ReplayBizLogConverterImpl implements ReplayBizLogConverter {
@Override
public ReplayBizLogCollection daoFromDto(BizLog dto) {
if ( dto == null ) {
return null;
}
ReplayBizLogCollection replayBizLogCollection = new ReplayBizLogCollection();
replayBizLogCollection.setDate( dto.getDate() );
replayBizLogCollection.setLevel( dto.getLevel() );
replayBizLogCollection.setMessage( dto.getMessage() );
replayBizLogCollection.setLogType( dto.getLogType() );
replayBizLogCollection.setPlanId( dto.getPlanId() );
replayBizLogCollection.setResumedExecution( dto.isResumedExecution() );
replayBizLogCollection.setContextName( dto.getContextName() );
replayBizLogCollection.setContextIdentifier( dto.getContextIdentifier() );
replayBizLogCollection.setCaseItemId( dto.getCaseItemId() );
replayBizLogCollection.setActionItemId( dto.getActionItemId() );
replayBizLogCollection.setOperationName( dto.getOperationName() );
replayBizLogCollection.setException( dto.getException() );
replayBizLogCollection.setRequest( dto.getRequest() );
replayBizLogCollection.setResponse( dto.getResponse() );
replayBizLogCollection.setTraceId( dto.getTraceId() );
replayBizLogCollection.setExtra( dto.getExtra() );
replayBizLogCollection.setReRun( dto.getReRun() );
replayBizLogCollection.setId( null );
replayBizLogCollection.setDataChangeCreateTime( System.currentTimeMillis() );
replayBizLogCollection.setDataChangeUpdateTime( System.currentTimeMillis() );
replayBizLogCollection.setDataChangeCreateDate( new java.util.Date() );
return replayBizLogCollection;
}
}