package com.gingersoft.gsa.cloud.main.mvp.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.gingersoft.gsa.cloud.main.R;
import com.gingersoft.gsa.cloud.main.mvp.model.bean.BusinessBean;

import java.util.List;

import androidx.annotation.Nullable;

/**
 * Created by Wyh on 2020/2/24.
 */
public class BusinessInfoAdapter extends BaseQuickAdapter<BusinessBean, BaseViewHolder> {

    public BusinessInfoAdapter(@Nullable List<BusinessBean> data) {
        super(R.layout.report_business_info_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BusinessBean item) {
        helper.setText(R.id.tv_business_info_amount, item.getAmount() + "");
        helper.setText(R.id.tv_business_info_name, item.getProjectName());
    }

}
