package com.dsh.course.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
*
* 课包消课记录
*
*
* @author jqs
* @since 2023-06-29
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_cancelled_classes")
public class CancelledClasses extends Model {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 消课类型(1=上课消课,2=支付消课)
*/
@TableField("type")
private Integer type;
/**
* 课包id
*/
@TableField("coursePackageId")
private Integer coursePackageId;
/**
* 课程支付记录id
*/
@TableField("coursePackagePaymentId")
private Long coursePackagePaymentId;
/**
* 排课记录id
*/
@TableField("coursePackageSchedulingId")
private Long coursePackageSchedulingId;
/**
* 消课凭证
*/
@TableField("voucher")
private String voucher;
/**
* 消课数量
*/
@TableField("cancelledClassesNumber")
private Integer cancelledClassesNumber;
/**
* 添加时间
*/
@TableField("insertTime")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date insertTime;
@Override
protected Serializable pkVal() {
return this.id;
}
}