Java model 对象处理
public class BaseFlowBo { /** * 流量 */ private String flow; /** * Pv */ private String pv; /** * CTR */ private String ctr; /** * CPM */ private String cpm; /** * CPC */ private String cpc; public String getFlow() { return new DecimalFormat(",###").format(Long.parseLong(flow)); } public void setFlow(String flow) { this.flow = flow; } public String getPv() { return new DecimalFormat(",###").format(Long.parseLong(pv)); } public void setPv(String pv) { this.pv = pv; } public String getCtr() { return ctr+"%"; } public void setCtr(String ctr) { this.ctr = ctr; } public String getCpm() { return "¥"+cpm; } public void setCpm(String cpm) { this.cpm = cpm; }