TencentMktActivityConvert.java 846 Bytes
package com.yoho.unions.convert;

import com.yoho.service.model.union.response.TencentMktActivityBO;
import com.yoho.service.model.union.response.TencentMktBO;
import com.yoho.unions.dal.model.TencentMktActivity;
import org.springframework.beans.BeanUtils;

/**
 * Created by yoho on 2016/6/17.
 */
public class TencentMktActivityConvert {

    public static TencentMktActivityBO db2bo(TencentMktActivity db){
        if (db == null) {
            return null;
        }
        TencentMktActivityBO bo=new TencentMktActivityBO();
        BeanUtils.copyProperties(db, bo);
        return bo;
    }

    public static TencentMktBO bo2boResponse(TencentMktActivityBO db){
        if (db == null) {
            return null;
        }
        TencentMktBO bo=new TencentMktBO();
        BeanUtils.copyProperties(db, bo);
        return bo;
    }


}