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

com.haoxuer.discover.user.rest.convert.UserAccessLogResponseConvert 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.response.UserAccessLogResponse;
import com.haoxuer.discover.user.data.entity.UserAccessLog;
import com.haoxuer.discover.data.rest.core.Conver;
import com.haoxuer.discover.data.utils.BeanDataUtils;

public class UserAccessLogResponseConvert implements Conver {
    @Override
    public UserAccessLogResponse conver(UserAccessLog source) {
        UserAccessLogResponse result = new UserAccessLogResponse();
        BeanDataUtils.copyProperties(source,result);

        if(source.getCreator()!=null){
           result.setCreator(source.getCreator().getId());
        }
         if(source.getCreator()!=null){
            result.setCreatorName(source.getCreator().getName());
         }


        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy