y_ys79
2024-01-05 e5840972b6b17ec03bfc1069a9cacfe0cef189c6
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
package com.qianwen.mdc.domain;
 
import java.io.Serializable;
import java.math.BigDecimal;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
 
@TableName("mdc_work_days")
public class MdcWorkDays implements Serializable {
    @TableId(type=IdType.AUTO)
    private Long id;
 
    /**
     * year month
     */
    private String yearmonth;
 
    /**
     * two shift days
     */
    private BigDecimal days2;
 
    /**
     * three shift days
     */
    private BigDecimal days3;
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 获取primary key
     *
     * @return id - primary key
     */
    public Long getId() {
        return id;
    }
 
    /**
     * 设置primary key
     *
     * @param id primary key
     */
    public void setId(Long id) {
        this.id = id;
    }
 
    /**
     * 获取year month
     *
     * @return yearmonth - year month
     */
    public String getYearmonth() {
        return yearmonth;
    }
 
    /**
     * 设置year month
     *
     * @param yearmonth year month
     */
    public void setYearmonth(String yearmonth) {
        this.yearmonth = yearmonth;
    }
 
    /**
     * 获取two shift days
     *
     * @return days2 - two shift days
     */
    public BigDecimal getDays2() {
        return days2;
    }
 
    /**
     * 设置two shift days
     *
     * @param days2 two shift days
     */
    public void setDays2(BigDecimal days2) {
        this.days2 = days2;
    }
 
    /**
     * 获取three shift days
     *
     * @return days3 - three shift days
     */
    public BigDecimal getDays3() {
        return days3;
    }
 
    /**
     * 设置three shift days
     *
     * @param days3 three shift days
     */
    public void setDays3(BigDecimal days3) {
        this.days3 = days3;
    }
 
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", yearmonth=").append(yearmonth);
        sb.append(", days2=").append(days2);
        sb.append(", days3=").append(days3);
        sb.append("]");
        return sb.toString();
    }
 
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MdcWorkDays other = (MdcWorkDays) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getYearmonth() == null ? other.getYearmonth() == null : this.getYearmonth().equals(other.getYearmonth()))
            && (this.getDays2() == null ? other.getDays2() == null : this.getDays2().equals(other.getDays2()))
            && (this.getDays3() == null ? other.getDays3() == null : this.getDays3().equals(other.getDays3()));
    }
 
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getYearmonth() == null) ? 0 : getYearmonth().hashCode());
        result = prime * result + ((getDays2() == null) ? 0 : getDays2().hashCode());
        result = prime * result + ((getDays3() == null) ? 0 : getDays3().hashCode());
        return result;
    }
}