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

com.nbsaas.boot.pay.rest.convert.TenantAccountSimpleConvert Maven / Gradle / Ivy

There is a newer version: 1.1.5-2024
Show newest version
package com.nbsaas.boot.pay.rest.convert;

import com.nbsaas.boot.pay.data.entity.TenantAccount;
import com.nbsaas.boot.pay.api.domain.simple.TenantAccountSimple;

import com.nbsaas.boot.rest.api.Converter;
/**
* 列表对象转换器
*/

public class TenantAccountSimpleConvert implements Converter {




@Override
public TenantAccountSimple convert(TenantAccount source) {
    TenantAccountSimple result = new TenantAccountSimple();

                result.setId(source.getId());
                result.setAddDate(source.getAddDate());
                result.setKey(source.getKey());
                if(source.getAccount()!=null){
                    result.setAccount(source.getAccount().getId());
                }
                result.setLastDate(source.getLastDate());


    return result;
}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy