com.arextest.web.model.mapper.DiffAggMapperImpl Maven / Gradle / Ivy
The newest version!
package com.arextest.web.model.mapper;
import com.arextest.web.model.dao.mongodb.ReportDiffAggStatisticCollection;
import com.arextest.web.model.dto.DiffAggDto;
import java.util.LinkedHashMap;
import java.util.Map;
/*
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2024-12-23T06:09:23+0000",
comments = "version: 1.5.5.Final, compiler: javac, environment: Java 21.0.5 (Eclipse Adoptium)"
)
*/
public class DiffAggMapperImpl implements DiffAggMapper {
@Override
public ReportDiffAggStatisticCollection daoFromDto(DiffAggDto dto) {
if ( dto == null ) {
return null;
}
ReportDiffAggStatisticCollection reportDiffAggStatisticCollection = new ReportDiffAggStatisticCollection();
reportDiffAggStatisticCollection.setPlanItemId( dto.getPlanItemId() );
reportDiffAggStatisticCollection.setPlanId( dto.getPlanId() );
reportDiffAggStatisticCollection.setOperationId( dto.getOperationId() );
reportDiffAggStatisticCollection.setCategoryName( dto.getCategoryName() );
reportDiffAggStatisticCollection.setOperationName( dto.getOperationName() );
reportDiffAggStatisticCollection.setDifferences( map1( dto.getDifferences() ) );
Map map1 = dto.getDiffCaseCounts();
if ( map1 != null ) {
reportDiffAggStatisticCollection.setDiffCaseCounts( new LinkedHashMap( map1 ) );
}
return reportDiffAggStatisticCollection;
}
@Override
public DiffAggDto dtoFromDao(ReportDiffAggStatisticCollection dao) {
if ( dao == null ) {
return null;
}
DiffAggDto diffAggDto = new DiffAggDto();
diffAggDto.setPlanItemId( dao.getPlanItemId() );
diffAggDto.setPlanId( dao.getPlanId() );
diffAggDto.setOperationId( dao.getOperationId() );
diffAggDto.setCategoryName( dao.getCategoryName() );
diffAggDto.setOperationName( dao.getOperationName() );
diffAggDto.setDifferences( map( dao.getDifferences() ) );
Map map1 = dao.getDiffCaseCounts();
if ( map1 != null ) {
diffAggDto.setDiffCaseCounts( new LinkedHashMap( map1 ) );
}
return diffAggDto;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy