cn.sliew.module.scheduler.service.convert.ScheduleJobConfigConvertImpl Maven / Gradle / Ivy
package cn.sliew.module.scheduler.service.convert;
import cn.sliew.module.scheduler.repository.entity.ScheduleJobConfig;
import cn.sliew.module.scheduler.service.dto.ScheduleJobConfigDTO;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2024-08-25T10:23:30+0000",
comments = "version: 1.4.2.Final, compiler: javac, environment: Java 17.0.12 (Eclipse Adoptium)"
)
public class ScheduleJobConfigConvertImpl implements ScheduleJobConfigConvert {
@Override
public ScheduleJobConfig toDo(ScheduleJobConfigDTO arg0) {
if ( arg0 == null ) {
return null;
}
ScheduleJobConfig scheduleJobConfig = new ScheduleJobConfig();
scheduleJobConfig.setId( arg0.getId() );
scheduleJobConfig.setCreator( arg0.getCreator() );
scheduleJobConfig.setCreateTime( arg0.getCreateTime() );
scheduleJobConfig.setEditor( arg0.getEditor() );
scheduleJobConfig.setUpdateTime( arg0.getUpdateTime() );
scheduleJobConfig.setJobGroupId( arg0.getJobGroupId() );
scheduleJobConfig.setType( arg0.getType() );
scheduleJobConfig.setName( arg0.getName() );
scheduleJobConfig.setHandler( arg0.getHandler() );
scheduleJobConfig.setRemark( arg0.getRemark() );
return scheduleJobConfig;
}
@Override
public ScheduleJobConfigDTO toDto(ScheduleJobConfig arg0) {
if ( arg0 == null ) {
return null;
}
ScheduleJobConfigDTO scheduleJobConfigDTO = new ScheduleJobConfigDTO();
scheduleJobConfigDTO.setId( arg0.getId() );
scheduleJobConfigDTO.setCreator( arg0.getCreator() );
scheduleJobConfigDTO.setCreateTime( arg0.getCreateTime() );
scheduleJobConfigDTO.setEditor( arg0.getEditor() );
scheduleJobConfigDTO.setUpdateTime( arg0.getUpdateTime() );
scheduleJobConfigDTO.setJobGroupId( arg0.getJobGroupId() );
scheduleJobConfigDTO.setType( arg0.getType() );
scheduleJobConfigDTO.setName( arg0.getName() );
scheduleJobConfigDTO.setHandler( arg0.getHandler() );
scheduleJobConfigDTO.setRemark( arg0.getRemark() );
return scheduleJobConfigDTO;
}
@Override
public List toDo(List arg0) {
if ( arg0 == null ) {
return null;
}
List list = new ArrayList( arg0.size() );
for ( ScheduleJobConfigDTO scheduleJobConfigDTO : arg0 ) {
list.add( toDo( scheduleJobConfigDTO ) );
}
return list;
}
@Override
public List toDto(List arg0) {
if ( arg0 == null ) {
return null;
}
List list = new ArrayList( arg0.size() );
for ( ScheduleJobConfig scheduleJobConfig : arg0 ) {
list.add( toDto( scheduleJobConfig ) );
}
return list;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy