CalendarSetting.java
4.22 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
package com.hotent.Calendar.model;
import java.util.List;
import org.apache.commons.lang.builder.ToStringBuilder;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hotent.base.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 对象功能:日历设置 entity对象
* 开发公司:广州宏天软件有限公司
* 开发人员:zyp
* 创建时间:2014-01-07 16:06:46
*/
@TableName("portal_cal_setting")
@ApiModel(description="日历设置")
public class CalendarSetting extends BaseModel<CalendarSetting>{
private static final long serialVersionUID = 1L;
@ApiModelProperty(name="id", notes="主键")
@TableId("id_")
protected String id;
@TableField("calendar_Id_")
@ApiModelProperty("日历ID")
protected String calendarId;
@TableField("years_")
@ApiModelProperty("年份")
protected Long years;
@TableField("months_")
@ApiModelProperty("月份")
protected Long months;
@TableField("days_")
@ApiModelProperty("天数")
protected Long days;
@TableField("date_type_")
@ApiModelProperty("上班类型")
protected String dateType;
@TableField("shift_id_")
@ApiModelProperty("班次ID")
protected String shiftId;
@TableField("cal_Day_")
@ApiModelProperty("CALDAY")
protected String calDay;
@TableField(exist=false)
protected String wtName=""; /*班次名称*/
/**
*DateType1上班
*/
public static final String SETTING_DATETYPE_WORK="1";
/**
* DateType 2休假
*/
public static final String SETTING_DATETYPE_HOLIDAY="2";
//是否法定假日
@Deprecated
@TableField(exist=false)
protected boolean isLegal=false;
/**
* 班次时间列表
*/
protected List<CalendarShiftPeroid> calendarShiftPeroidList;
public List<CalendarShiftPeroid> getCalendarShiftPeroidList() {
return calendarShiftPeroidList;
}
public void setCalendarShiftPeroidList(
List<CalendarShiftPeroid> calendarShiftPeroidList) {
this.calendarShiftPeroidList = calendarShiftPeroidList;
}
public boolean isLegal() {
return isLegal;
}
public void setLegal(boolean isLegal) {
this.isLegal = isLegal;
}
public String getWtName() {
return wtName;
}
public void setWtName(String wtName) {
this.wtName = wtName;
}
public void setId(String id)
{
this.id = id;
}
/**
* 返回 主键
* @return
*/
public String getId()
{
return this.id;
}
public void setCalendarId(String calendarId)
{
this.calendarId = calendarId;
}
/**
* 返回 日历ID
* @return
*/
public String getCalendarId()
{
return this.calendarId;
}
public void setYears(Long years)
{
this.years = years;
}
/**
* 返回 年份
* @return
*/
public Long getYears()
{
return this.years;
}
public void setMonths(Long months)
{
this.months = months;
}
/**
* 返回 月份
* @return
*/
public Long getMonths()
{
return this.months;
}
public void setDays(Long days)
{
this.days = days;
}
/**
* 返回 天数
* @return
*/
public Long getDays()
{
return this.days;
}
public void setDateType(String dateType)
{
this.dateType = dateType;
}
/**
* 返回 上班类型
* @return
*/
public String getDateType()
{
return this.dateType;
}
public void setShiftId(String shiftId)
{
this.shiftId = shiftId;
}
/**
* 返回 班次ID
* @return
*/
public String getShiftId()
{
return this.shiftId;
}
public void setCalDay(String calDay)
{
this.calDay = calDay;
}
/**
* 返回 CALDAY
* @return
*/
public String getCalDay()
{
return this.calDay;
}
/**
* @see java.lang.Object#toString()
*/
public String toString()
{
return new ToStringBuilder(this)
.append("id", this.id)
.append("calendarId", this.calendarId)
.append("years", this.years)
.append("months", this.months)
.append("days", this.days)
.append("dateType", this.dateType)
.append("shiftId", this.shiftId)
.append("calDay", this.calDay)
.toString();
}
}