yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
package com.qianwen.smartman.modules.notify.vo;
 
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.stream.Collectors;
import com.qianwen.core.tool.utils.Func;
import com.qianwen.smartman.modules.notify.dto.NotifyDefaultPersonDTO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/vo/NotifySettingVO.class */
public class NotifySettingVO {
    @ApiModelProperty("触发方式 0自动 1自定义")
    private Integer triggerMode;
    @ApiModelProperty("通知时间 时:分")
    private String notificationTime;
    @ApiModelProperty("参数id")
    private Long paramId;
    @ApiModelProperty("间隔")
    private Integer intervalTime;
    @ApiModelProperty("间隔单位 0天 1小时 2分钟")
    private Integer intervalUnit;
    @ApiModelProperty("业务对象key")
    private String businessKey;
    @ApiModelProperty("上限")
    private Integer maxCount;
    @ApiModelProperty("员工列表")
    List<NotifyDefaultPersonDTO> empList;
    @ApiModelProperty("部门列表")
    List<NotifyDefaultPersonDTO> orgList;
    @ApiModelProperty("员工ids")
    List<Long> empIds;
    @ApiModelProperty("部门ids")
    List<Long> orgIds;
 
    public void setTriggerMode(final Integer triggerMode) {
        this.triggerMode = triggerMode;
    }
 
    public void setNotificationTime(final String notificationTime) {
        this.notificationTime = notificationTime;
    }
 
    public void setParamId(final Long paramId) {
        this.paramId = paramId;
    }
 
    public void setIntervalTime(final Integer intervalTime) {
        this.intervalTime = intervalTime;
    }
 
    public void setIntervalUnit(final Integer intervalUnit) {
        this.intervalUnit = intervalUnit;
    }
 
    public void setBusinessKey(final String businessKey) {
        this.businessKey = businessKey;
    }
 
    public void setMaxCount(final Integer maxCount) {
        this.maxCount = maxCount;
    }
 
    public void setEmpList(final List<NotifyDefaultPersonDTO> empList) {
        this.empList = empList;
    }
 
    public void setOrgList(final List<NotifyDefaultPersonDTO> orgList) {
        this.orgList = orgList;
    }
 
    public void setEmpIds(final List<Long> empIds) {
        this.empIds = empIds;
    }
 
    public void setOrgIds(final List<Long> orgIds) {
        this.orgIds = orgIds;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof NotifySettingVO) {
            NotifySettingVO other = (NotifySettingVO) o;
            if (other.canEqual(this)) {
                Object this$triggerMode = getTriggerMode();
                Object other$triggerMode = other.getTriggerMode();
                if (this$triggerMode == null) {
                    if (other$triggerMode != null) {
                        return false;
                    }
                } else if (!this$triggerMode.equals(other$triggerMode)) {
                    return false;
                }
                Object this$paramId = getParamId();
                Object other$paramId = other.getParamId();
                if (this$paramId == null) {
                    if (other$paramId != null) {
                        return false;
                    }
                } else if (!this$paramId.equals(other$paramId)) {
                    return false;
                }
                Object this$intervalTime = getIntervalTime();
                Object other$intervalTime = other.getIntervalTime();
                if (this$intervalTime == null) {
                    if (other$intervalTime != null) {
                        return false;
                    }
                } else if (!this$intervalTime.equals(other$intervalTime)) {
                    return false;
                }
                Object this$intervalUnit = getIntervalUnit();
                Object other$intervalUnit = other.getIntervalUnit();
                if (this$intervalUnit == null) {
                    if (other$intervalUnit != null) {
                        return false;
                    }
                } else if (!this$intervalUnit.equals(other$intervalUnit)) {
                    return false;
                }
                Object this$maxCount = getMaxCount();
                Object other$maxCount = other.getMaxCount();
                if (this$maxCount == null) {
                    if (other$maxCount != null) {
                        return false;
                    }
                } else if (!this$maxCount.equals(other$maxCount)) {
                    return false;
                }
                Object this$notificationTime = getNotificationTime();
                Object other$notificationTime = other.getNotificationTime();
                if (this$notificationTime == null) {
                    if (other$notificationTime != null) {
                        return false;
                    }
                } else if (!this$notificationTime.equals(other$notificationTime)) {
                    return false;
                }
                Object this$businessKey = getBusinessKey();
                Object other$businessKey = other.getBusinessKey();
                if (this$businessKey == null) {
                    if (other$businessKey != null) {
                        return false;
                    }
                } else if (!this$businessKey.equals(other$businessKey)) {
                    return false;
                }
                Object this$empList = getEmpList();
                Object other$empList = other.getEmpList();
                if (this$empList == null) {
                    if (other$empList != null) {
                        return false;
                    }
                } else if (!this$empList.equals(other$empList)) {
                    return false;
                }
                Object this$orgList = getOrgList();
                Object other$orgList = other.getOrgList();
                if (this$orgList == null) {
                    if (other$orgList != null) {
                        return false;
                    }
                } else if (!this$orgList.equals(other$orgList)) {
                    return false;
                }
                Object this$empIds = getEmpIds();
                Object other$empIds = other.getEmpIds();
                if (this$empIds == null) {
                    if (other$empIds != null) {
                        return false;
                    }
                } else if (!this$empIds.equals(other$empIds)) {
                    return false;
                }
                Object this$orgIds = getOrgIds();
                Object other$orgIds = other.getOrgIds();
                return this$orgIds == null ? other$orgIds == null : this$orgIds.equals(other$orgIds);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof NotifySettingVO;
    }
 
    public int hashCode() {
        Object $triggerMode = getTriggerMode();
        int result = (1 * 59) + ($triggerMode == null ? 43 : $triggerMode.hashCode());
        Object $paramId = getParamId();
        int result2 = (result * 59) + ($paramId == null ? 43 : $paramId.hashCode());
        Object $intervalTime = getIntervalTime();
        int result3 = (result2 * 59) + ($intervalTime == null ? 43 : $intervalTime.hashCode());
        Object $intervalUnit = getIntervalUnit();
        int result4 = (result3 * 59) + ($intervalUnit == null ? 43 : $intervalUnit.hashCode());
        Object $maxCount = getMaxCount();
        int result5 = (result4 * 59) + ($maxCount == null ? 43 : $maxCount.hashCode());
        Object $notificationTime = getNotificationTime();
        int result6 = (result5 * 59) + ($notificationTime == null ? 43 : $notificationTime.hashCode());
        Object $businessKey = getBusinessKey();
        int result7 = (result6 * 59) + ($businessKey == null ? 43 : $businessKey.hashCode());
        Object $empList = getEmpList();
        int result8 = (result7 * 59) + ($empList == null ? 43 : $empList.hashCode());
        Object $orgList = getOrgList();
        int result9 = (result8 * 59) + ($orgList == null ? 43 : $orgList.hashCode());
        Object $empIds = getEmpIds();
        int result10 = (result9 * 59) + ($empIds == null ? 43 : $empIds.hashCode());
        Object $orgIds = getOrgIds();
        return (result10 * 59) + ($orgIds == null ? 43 : $orgIds.hashCode());
    }
 
    public String toString() {
        return "NotifySettingVO(triggerMode=" + getTriggerMode() + ", notificationTime=" + getNotificationTime() + ", paramId=" + getParamId() + ", intervalTime=" + getIntervalTime() + ", intervalUnit=" + getIntervalUnit() + ", businessKey=" + getBusinessKey() + ", maxCount=" + getMaxCount() + ", empList=" + getEmpList() + ", orgList=" + getOrgList() + ", empIds=" + getEmpIds() + ", orgIds=" + getOrgIds() + ")";
    }
 
    public Integer getTriggerMode() {
        return this.triggerMode;
    }
 
    public String getNotificationTime() {
        return this.notificationTime;
    }
 
    public Long getParamId() {
        return this.paramId;
    }
 
    public Integer getIntervalTime() {
        return this.intervalTime;
    }
 
    public Integer getIntervalUnit() {
        return this.intervalUnit;
    }
 
    public String getBusinessKey() {
        return this.businessKey;
    }
 
    public Integer getMaxCount() {
        return this.maxCount;
    }
 
    public List<NotifyDefaultPersonDTO> getEmpList() {
        return this.empList;
    }
 
    public List<NotifyDefaultPersonDTO> getOrgList() {
        return this.orgList;
    }
 
    public List<Long> getEmpIds() {
        if (Func.isNotEmpty(this.empIds)) {
            return this.empIds;
        }
        if (Func.isNotEmpty(this.empList)) {
            return (List) this.empList.stream().map((v0) -> {
                return v0.getPersonId();
            }).collect(Collectors.toList());
        }
        return null;
    }
 
    public List<Long> getOrgIds() {
        if (Func.isNotEmpty(this.orgIds)) {
            return this.orgIds;
        }
        if (Func.isNotEmpty(this.orgList)) {
            return (List) this.orgList.stream().map((v0) -> {
                return v0.getPersonId();
            }).collect(Collectors.toList());
        }
        return null;
    }
}