package com.dsh.activity.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-29
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
@Accessors(chain = true)
|
@TableName("t_introduce_rewards")
|
public class IntroduceRewards extends Model<IntroduceRewards> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 省
|
*/
|
@TableField("province")
|
private String province;
|
/**
|
* 省编号
|
*/
|
@TableField("provinceCode")
|
private String provinceCode;
|
/**
|
* 市
|
*/
|
@TableField("city")
|
private String city;
|
/**
|
* 市编号
|
*/
|
@TableField("cityCode")
|
private String cityCode;
|
/**
|
* 开始时间
|
*/
|
@TableField("startTime")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
|
private Date startTime;
|
/**
|
* 结束时间
|
*/
|
@TableField("endTime")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
|
private Date endTime;
|
/**
|
* 赠送课时
|
*/
|
@TableField("giveClass")
|
private Integer giveClass;
|
/**
|
* 状态(1=正常,2=冻结,3=删除)
|
*/
|
@TableField("state")
|
private Integer state;
|
/**
|
* 添加时间
|
*/
|
@TableField("insertTime")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date insertTime;
|
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
}
|