package cn.pluss.platform.entity;

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

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class MerchantMenber {

    @TableId
    private Integer id;
    private String merchantCode;
    private String merchantName;
    private String storeId;
    private String storeName;
    private Integer status;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createDt;
    private String logo;
    private String memberCode;
    private String memberName;
    private String provinces;
    private String sex;
    private String nickName;
    private String phone;
    private String openid;
    private String alipayUserId;
    private Double comsumeMoney;
    private Double profitMoney;
    private String orderNumber;

    private Double totalRechargeFee;
    private Double usableRechargeFee;
    private Double totalGiveFee;
    private Double usableGiveFee;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private String birthdayDt;
    /**
     * 会员卡号
     */
    private String cardNo;
    private String bindingUrl;

    /**
     * 小程序OpenId
     */
    private String appOpenId;

    private String unionId;

    @TableField(exist = false)
    private String checkCode;
    @TableField(exist = false)
    private String alias;
    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private Integer size;
    @TableField(exist = false)
    private Integer userId;

    
    //商家会员信息统计显示字段
	/** 今日充值 */
    @TableField(exist = false)
    private Double todayRecharg;
    /** 今日消费 */
    @TableField(exist = false)
    private Double todayConsume;
    /** 今日注册会员数 */
    @TableField(exist = false)
    private Double todayRegistNum;
    /** 线上充值 */
    @TableField(exist = false)
    private Double onlineRecharg;
    /** 扫码充值 */
    @TableField(exist = false)
    private Double scanRecharge;
    /** 赠送返现 */
    @TableField(exist = false)
    private Double giveReturn;
    /** 现金充值 */
    @TableField(exist = false)
    private Double cashRecharg;
    /** 会员充值总额 */
    @TableField(exist = false)
    private Double totalRecharg;
    /** 会员充值总余额 */
    @TableField(exist = false)
    private Double totalRemainRecharg;
    /** 会员消费总额 */
    @TableField(exist = false)
    private Double totalConsume;
    /** 会员总人数 */
    @TableField(exist = false)
    private Double totalMemberNum;
    /** 可使用余额 */
    @TableField(exist = false)
    private BigDecimal useAmt;
    /** 门店照片 */
    @TableField(exist = false)
    private String storeLogo;


	@Override
	public String toString() {
		return "MerchantMenber [id=" + id + ", merchantCode=" + merchantCode + ", merchantName=" + merchantName
				+ ", storeId=" + storeId + ", storeName=" + storeName + ", status=" + status + ", createDt=" + createDt
				+ ", logo=" + logo + ", memberCode=" + memberCode + ", nickName=" + nickName + ", phone=" + phone
				+ ", openid=" + openid + ", alipayUserId=" + alipayUserId + ", comsumeMoney=" + comsumeMoney
				+ ", profitMoney=" + profitMoney + ", orderNumber=" + orderNumber + ", page=" + page + ", size=" + size
				+ ", totalRechargeFee=" + totalRechargeFee + ", usableRechargeFee=" + usableRechargeFee
				+ ", totalGiveFee=" + totalGiveFee + ", usableGiveFee=" + usableGiveFee + ", checkCode=" + checkCode
				+ ", birthdayDt=" + birthdayDt + ", cardNo=" + cardNo + ", todayRecharg=" + todayRecharg
				+ ", todayConsume=" + todayConsume + ", todayRegistNum=" + todayRegistNum + ", onlineRecharg="
				+ onlineRecharg + ", giveReturn=" + giveReturn + ", cashRecharg=" + cashRecharg + ", totalRecharg="
				+ totalRecharg + ", totalRemainRecharg=" + totalRemainRecharg + ", totalConsume=" + totalConsume
				+ ", totalMemberNum=" + totalMemberNum + "]";
	}
	
	
    
}

