cn.sliew.module.scheduler.service.convert.ScheduleJobInstanceConvertImpl Maven / Gradle / Ivy
package cn.sliew.module.scheduler.service.convert;
import cn.sliew.module.scheduler.repository.entity.ScheduleJobInstanceDTO;
import cn.sliew.module.scheduler.service.dto.ScheduleJobInstance;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2024-08-25T10:23:31+0000",
comments = "version: 1.4.2.Final, compiler: javac, environment: Java 17.0.12 (Eclipse Adoptium)"
)
public class ScheduleJobInstanceConvertImpl implements ScheduleJobInstanceConvert {
@Override
public ScheduleJobInstance toDo(ScheduleJobInstanceDTO arg0) {
if ( arg0 == null ) {
return null;
}
ScheduleJobInstance scheduleJobInstance = new ScheduleJobInstance();
scheduleJobInstance.setId( arg0.getId() );
scheduleJobInstance.setCreator( arg0.getCreator() );
scheduleJobInstance.setCreateTime( arg0.getCreateTime() );
scheduleJobInstance.setEditor( arg0.getEditor() );
scheduleJobInstance.setUpdateTime( arg0.getUpdateTime() );
scheduleJobInstance.setJobConfigId( arg0.getJobConfigId() );
scheduleJobInstance.setName( arg0.getName() );
scheduleJobInstance.setCron( arg0.getCron() );
scheduleJobInstance.setParams( arg0.getParams() );
scheduleJobInstance.setTimeout( arg0.getTimeout() );
scheduleJobInstance.setStatus( arg0.getStatus() );
scheduleJobInstance.setRemark( arg0.getRemark() );
return scheduleJobInstance;
}
@Override
public ScheduleJobInstanceDTO toDto(ScheduleJobInstance arg0) {
if ( arg0 == null ) {
return null;
}
ScheduleJobInstanceDTO scheduleJobInstanceDTO = new ScheduleJobInstanceDTO();
scheduleJobInstanceDTO.setId( arg0.getId() );
scheduleJobInstanceDTO.setCreator( arg0.getCreator() );
scheduleJobInstanceDTO.setCreateTime( arg0.getCreateTime() );
scheduleJobInstanceDTO.setEditor( arg0.getEditor() );
scheduleJobInstanceDTO.setUpdateTime( arg0.getUpdateTime() );
scheduleJobInstanceDTO.setJobConfigId( arg0.getJobConfigId() );
scheduleJobInstanceDTO.setName( arg0.getName() );
scheduleJobInstanceDTO.setCron( arg0.getCron() );
scheduleJobInstanceDTO.setParams( arg0.getParams() );
scheduleJobInstanceDTO.setTimeout( arg0.getTimeout() );
scheduleJobInstanceDTO.setStatus( arg0.getStatus() );
scheduleJobInstanceDTO.setRemark( arg0.getRemark() );
return scheduleJobInstanceDTO;
}
@Override
public List toDo(List arg0) {
if ( arg0 == null ) {
return null;
}
List list = new ArrayList( arg0.size() );
for ( ScheduleJobInstanceDTO scheduleJobInstanceDTO : arg0 ) {
list.add( toDo( scheduleJobInstanceDTO ) );
}
return list;
}
@Override
public List toDto(List arg0) {
if ( arg0 == null ) {
return null;
}
List list = new ArrayList( arg0.size() );
for ( ScheduleJobInstance scheduleJobInstance : arg0 ) {
list.add( toDto( scheduleJobInstance ) );
}
return list;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy