DayInfo.java
1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package cn.com.glsx.consumer.entity;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
@Accessors(chain = true)
@Data
@Entity
@Table(name = "smart_date")
public class DayInfo implements Serializable {
@Id
@Column(
name = "id",
unique = true,
nullable = false
)
@GeneratedValue(
strategy = GenerationType.IDENTITY,
generator = "SELECT LAST_INSERT_ID()"
)
private Long id;
/**
* 当前阳历日期,如:2019-10-01
*/
private String date;
/**
* 日期类型,为0表示工作日、为1节假日、为2双休日、3为调休日(上班)
*/
private Integer daycode;
/**
* 节假日名称,如:国庆节
*/
private String name;
/**
* 放假提示,如:10月1日至7日放假调休,共7天......
*/
private String tip;
}