package com.njcn.pojo.weeklyreport;

public class SagRateData {
	private String name;
	private Integer count;
	private Float rate;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Float getRate() {
		return rate;
	}

	public void setRate(Float rate) {
		// 保留两位小数
		if (rate == null) {
			this.rate = 0f;
			return;
		}

		float f1 = (float) (Math.round(rate.floatValue() * 100)) / 100;
		this.rate = new Float(f1);
	}

}
