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

com.haoxuer.discover.user.rest.convert.UserAccessLogSimpleConvert Maven / Gradle / Ivy

There is a newer version: 3.3.18-20230117
Show newest version
package com.haoxuer.discover.user.rest.convert;

import com.haoxuer.discover.user.api.domain.simple.UserAccessLogSimple;
import com.haoxuer.discover.user.data.entity.UserAccessLog;
import com.haoxuer.discover.data.rest.core.Conver;
public class UserAccessLogSimpleConvert implements Conver {


    @Override
    public UserAccessLogSimple conver(UserAccessLog source) {
        UserAccessLogSimple result = new UserAccessLogSimple();

            result.setId(source.getId());
             result.setConsumeTime(source.getConsumeTime());
            if(source.getCreator()!=null){
               result.setCreator(source.getCreator().getId());
            }
             result.setIp(source.getIp());
             if(source.getCreator()!=null){
                result.setCreatorName(source.getCreator().getName());
             }
             result.setAddDate(source.getAddDate());
             result.setUrl(source.getUrl());

        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy