package com.matrix.system.hive.pojo; import com.matrix.system.constance.Dictionary; public class MoneyCardUserVo{ /** * */ private static final long serialVersionUID = 1L; /*vo对象************/ /** * 剩余次数 */ String lastCountName; /** * 数据来源 */ String sourceName; /*vo对象************/ /** * 剩余次数 */ private Integer lastCount; /** * 来源,购买,转让,赠送 */ private String source; /** * 是会籍卡? Y 是,N否 */ private String isVipCar; /** * 当大于10000时使用次数为不限,或者为会籍卡时 * @return */ public String getLastCountName() { if(getLastCount()==null){ return ""; } if(Dictionary.FLAG_YES.equals(getIsVipCar())||getLastCount()>Dictionary.MAX_USE_COUNT_SIGN){ lastCountName=Dictionary.MAX_USE_STRING; }else{ lastCountName=getLastCount().toString(); } return lastCountName; } public void setLastCountName(String lastCountName) { this.lastCountName = lastCountName; } public String getSourceName() { if(getSource()==null){ return ""; } if(getSource().contains(Dictionary.TAOCAN_SOURCE_ZS)){ sourceName=Dictionary.FLAG_YES; }else{ sourceName=Dictionary.FLAG_NO;; } return sourceName; } public void setSourceName(String sourceName) { this.sourceName = sourceName; } public Integer getLastCount() { return lastCount; } public void setLastCount(Integer lastCount) { this.lastCount = lastCount; } public String getSource() { return source; } public void setSource(String source) { this.source = source; } public String getIsVipCar() { return isVipCar; } public void setIsVipCar(String isVipCar) { this.isVipCar = isVipCar; } }