package com.neusoft.smart.pos.member.persistent.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class MemberCard implements Serializable {
    private Integer cardId;

    private Integer memberId;

    private String cardNum;

    private String cardHidCode;

    private String cardPassword;

    private Integer cardPoint;

    private BigDecimal cardBalance;

    private String cardImage;

    private Integer isActive;

    private String content;

    private Integer version;

    private Date createdTime;

    private String createdBy;

    private Date updatedTime;

    private String updatedBy;

    private Integer accumulativePoint;

    private BigDecimal lastRechargeAmount;

    private String needPassword;

    private static final long serialVersionUID = 1L;

    public Integer getCardId() {
        return cardId;
    }

    public void setCardId(Integer cardId) {
        this.cardId = cardId;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum == null ? null : cardNum.trim();
    }

    public String getCardHidCode() {
        return cardHidCode;
    }

    public void setCardHidCode(String cardHidCode) {
        this.cardHidCode = cardHidCode == null ? null : cardHidCode.trim();
    }

    public String getCardPassword() {
        return cardPassword;
    }

    public void setCardPassword(String cardPassword) {
        this.cardPassword = cardPassword == null ? null : cardPassword.trim();
    }

    public Integer getCardPoint() {
        return cardPoint;
    }

    public void setCardPoint(Integer cardPoint) {
        this.cardPoint = cardPoint;
    }

    public BigDecimal getCardBalance() {
        return cardBalance;
    }

    public void setCardBalance(BigDecimal cardBalance) {
        this.cardBalance = cardBalance;
    }

    public String getCardImage() {
        return cardImage;
    }

    public void setCardImage(String cardImage) {
        this.cardImage = cardImage == null ? null : cardImage.trim();
    }

    public Integer getIsActive() {
        return isActive;
    }

    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy == null ? null : createdBy.trim();
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy == null ? null : updatedBy.trim();
    }

    public Integer getAccumulativePoint() {
        return accumulativePoint;
    }

    public void setAccumulativePoint(Integer accumulativePoint) {
        this.accumulativePoint = accumulativePoint;
    }

    public BigDecimal getLastRechargeAmount() {
        return lastRechargeAmount;
    }

    public void setLastRechargeAmount(BigDecimal lastRechargeAmount) {
        this.lastRechargeAmount = lastRechargeAmount;
    }

    public String getNeedPassword() {
        return this.needPassword;
    }

    public void setNeedPassword(String needPassword) {
        this.needPassword = needPassword;
    }

    public boolean isNeedPwd() {
        return "1".equals(this.needPassword);
    }

    public void setNeedPwd(boolean need) {
        this.needPassword = need?"1":"0";
    }
}