package com.ltkj.mall.domain;
|
|
import java.util.Date;
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import com.ltkj.common.annotation.Excel;
|
import com.ltkj.common.core.domain.BaseEntity;
|
import lombok.Data;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
/**
|
* 预约时间对象 mall_time_config
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2023-07-18
|
*/
|
|
@Data
|
public class MallTimeConfig extends BaseEntity {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* id
|
*/
|
@TableId(type = IdType.AUTO)
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long id;
|
|
/**
|
* 日期
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
|
private Date time;
|
|
/**
|
* 总数
|
*/
|
@Excel(name = "总数")
|
private Long allNum;
|
|
/**
|
* 余数
|
*/
|
@Excel(name = "余数")
|
private Long nowNum;
|
|
|
@TableField(exist = false)
|
private String startTime;
|
|
|
@TableField(exist = false)
|
private String endTime;
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setTime(Date time) {
|
this.time = time;
|
}
|
|
public Date getTime() {
|
return time;
|
}
|
|
public void setAllNum(Long allNum) {
|
this.allNum = allNum;
|
}
|
|
public Long getAllNum() {
|
return allNum;
|
}
|
|
public void setNowNum(Long nowNum) {
|
this.nowNum = nowNum;
|
}
|
|
public Long getNowNum() {
|
return nowNum;
|
}
|
|
|
@Override
|
public String toString() {
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
.append("id", getId())
|
.append("time", getTime())
|
.append("allNum", getAllNum())
|
.append("nowNum", getNowNum())
|
.append("createTime", getCreateTime())
|
.append("createBy", getCreateBy())
|
.append("updateTime", getUpdateTime())
|
.append("updateBy", getUpdateBy())
|
.append("deleted", getDeleted())
|
.append("remark", getRemark())
|
.toString();
|
}
|
}
|