package com.sys.bus.model;

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

import java.math.BigDecimal;

/**
 * Generated by JFinal.
 */
@SuppressWarnings("serial")
public class Entry extends BaseEntry<Entry> {
	public static final Entry dao = new Entry().dao();
	public <T> T get(String attr) {
		if(attr.equals("entry_score")||attr.equals("entry_zpscore")||attr.equals("entry_selfkpiweight")){
			return (T) Tool.getStripZeros((BigDecimal) super.get(attr));
		}
		return super.get(attr);
	}
}
