package com.sys.bus.model;

import com.sys.bus.model.base.BaseKpiHist;
import com.sys.core.utils.Tool;

import java.math.BigDecimal;

/**
 * Generated by JFinal.
 */
@SuppressWarnings("serial")
public class KpiHist extends BaseKpiHist<KpiHist> {
	public static final KpiHist dao = new KpiHist().dao();
	public <T> T get(String attr) {
		if(attr.equals("kpi_score")||attr.equals("kpi_value")||attr.equals("kpi_weight")||attr.equals("kpi_zpscore")||attr.equals("entry_selfkpiweight")){
			return (T)Tool.getStripZeros((BigDecimal) super.get(attr));
		}
		return super.get(attr);
	}
}
