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;
|
|
/**
|
* <p>
|
* 课包排课记录
|
* </p>
|
*
|
* @author jqs
|
* @since 2023-06-30
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
@Accessors(chain = true)
|
@TableName("t_course_package_scheduling")
|
public class CoursePackageScheduling extends Model<CoursePackageScheduling> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.NONE)
|
private Long id;
|
/**
|
* 1=常规,2=假期,3=体验购课
|
*/
|
@TableField("type")
|
private Integer type;
|
/**
|
* 用户id
|
*/
|
@TableField("appUserId")
|
private Integer appUserId;
|
/**
|
* 学员id
|
*/
|
@TableField("studentId")
|
private Integer studentId;
|
/**
|
* 课包id
|
*/
|
@TableField("coursePackageId")
|
private Integer coursePackageId;
|
/**
|
* 上课日期
|
*/
|
@TableField("classDate")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date classDate;
|
/**
|
* 结束时间
|
*/
|
@TableField("endDate")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date endDate;
|
/**
|
* 课后练习课程id
|
*/
|
@TableField("courseId")
|
private Integer courseId;
|
/**
|
* 可获得积分
|
*/
|
@TableField("integral")
|
private Integer integral;
|
/**
|
* 消课凭证
|
*/
|
@TableField("cancelClasses")
|
private String cancelClasses;
|
/**
|
* 扣除课时
|
*/
|
@TableField("deductClassHour")
|
private Integer deductClassHour;
|
/**
|
* 状态(1=未开始,2=已开始,3=已结束,4=已取消)
|
*/
|
@TableField("status")
|
private Integer status;
|
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
}
|