package com.ruoyi.school.student.domain.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

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

/**
 * 班级会员
 * 用于 班级下会员列表
 * @author ：zhangbaoyu
 * @date ：Created in 2020/9/28 16:51
 */
@Data
public class RespCourseClaStudent {

    private Long courseTimeId;

    //会员信息
    private Long studentId;

    private String studentName;

    private String sex;

    private String phone;

//---------预约信息
    private Long bookId;
    /**
     * 卡ID
     */
    private String cardNo;

    private String cardTypeName;
    /**
     * 收费模式 count:课时 days:时间 total_fee:储值
     */
    private String chargeType;

    /**
     * 划扣次数
     */
    private BigDecimal deductCnt;

    /**
     * 划扣金额
     */
    private BigDecimal deductFee;

    //"剩余次数")
    private BigDecimal remainingCount;

    private BigDecimal remainingTotalFee;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate expiryDate;
    /**
     * 预约状态:0->预约中；1->教练确认；2->店长确认/预约成功/待上课 3->已取消;4- >已完成/待评价;5- >预约失败；
     */
    private int bookStatus;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;//预约时间
    private int checkIn;  //*0未签到 1签到
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date checkInTime;






    //---------------- 签到成功的会员

    /**
     * 划扣前次数
     */
    private BigDecimal countBefore;

    /**
     * 划扣后次数
     */
    private BigDecimal countAfter;


    /**
     * 划扣前余额
     */
    private BigDecimal feeBefore;

    /**
     * 划扣后余额
     */
    private BigDecimal feeAfter;



}
