All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bixuebihui.test.converter.InfoAuthorTermDataConverterImpl Maven / Gradle / Ivy

The newest version!
package com.bixuebihui.test.converter;

import com.bixuebihui.test.dto.InfoAuthorTermDataDto;
import com.bixuebihui.test.pojo.InfoAuthorTermData;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-12-24T18:56:40+0800",
    comments = "version: 1.5.3.Final, compiler: javac, environment: Java 17.0.9 (GraalVM Community)"
)
public class InfoAuthorTermDataConverterImpl implements InfoAuthorTermDataConverter {

    @Override
    public InfoAuthorTermDataDto toDto(InfoAuthorTermData info) {
        if ( info == null ) {
            return null;
        }

        InfoAuthorTermDataDto infoAuthorTermDataDto = new InfoAuthorTermDataDto();

        infoAuthorTermDataDto.setId( info.getId() );
        infoAuthorTermDataDto.setIsDel( info.getIsDel() );
        infoAuthorTermDataDto.setCreatedStime( info.getCreatedStime() );
        infoAuthorTermDataDto.setModifiedStime( info.getModifiedStime() );
        infoAuthorTermDataDto.setDt( info.getDt() );
        infoAuthorTermDataDto.setDateType( info.getDateType() );
        infoAuthorTermDataDto.setAuthorId( info.getAuthorId() );
        infoAuthorTermDataDto.setInfoType( info.getInfoType() );
        infoAuthorTermDataDto.setPublishCnt( info.getPublishCnt() );
        infoAuthorTermDataDto.setCommentCnt( info.getCommentCnt() );
        infoAuthorTermDataDto.setPraiseCnt( info.getPraiseCnt() );
        infoAuthorTermDataDto.setPv( info.getPv() );

        return infoAuthorTermDataDto;
    }

    @Override
    public InfoAuthorTermData toDao(InfoAuthorTermDataDto info) {
        if ( info == null ) {
            return null;
        }

        InfoAuthorTermData infoAuthorTermData = new InfoAuthorTermData();

        infoAuthorTermData.setId( info.getId() );
        infoAuthorTermData.setIsDel( info.getIsDel() );
        infoAuthorTermData.setCreatedStime( info.getCreatedStime() );
        infoAuthorTermData.setModifiedStime( info.getModifiedStime() );
        infoAuthorTermData.setDt( info.getDt() );
        infoAuthorTermData.setDateType( info.getDateType() );
        infoAuthorTermData.setAuthorId( info.getAuthorId() );
        infoAuthorTermData.setInfoType( info.getInfoType() );
        infoAuthorTermData.setPublishCnt( info.getPublishCnt() );
        infoAuthorTermData.setCommentCnt( info.getCommentCnt() );
        infoAuthorTermData.setPraiseCnt( info.getPraiseCnt() );
        infoAuthorTermData.setPv( info.getPv() );

        return infoAuthorTermData;
    }

    @Override
    public List toDtoList(List info) {
        if ( info == null ) {
            return null;
        }

        List list = new ArrayList( info.size() );
        for ( InfoAuthorTermData infoAuthorTermData : info ) {
            list.add( toDto( infoAuthorTermData ) );
        }

        return list;
    }

    @Override
    public List toDaoList(List info) {
        if ( info == null ) {
            return null;
        }

        List list = new ArrayList( info.size() );
        for ( InfoAuthorTermDataDto infoAuthorTermDataDto : info ) {
            list.add( toDao( infoAuthorTermDataDto ) );
        }

        return list;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy