yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
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
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/NotifyDefaultObjectVO.class */
public class NotifyDefaultObjectVO {
    private String businessKey;
    @ApiModelProperty("员工列表")
    List<NotifyDefaultPersonDTO> empList;
    @ApiModelProperty("部门列表")
    List<NotifyDefaultPersonDTO> orgList;
    @ApiModelProperty("员工ids")
    List<Long> empIds;
    @ApiModelProperty("部门ids")
    List<Long> orgIds;
 
    public void setBusinessKey(final String businessKey) {
        this.businessKey = businessKey;
    }
 
    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 NotifyDefaultObjectVO) {
            NotifyDefaultObjectVO other = (NotifyDefaultObjectVO) o;
            if (other.canEqual(this)) {
                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 NotifyDefaultObjectVO;
    }
 
    public int hashCode() {
        Object $businessKey = getBusinessKey();
        int result = (1 * 59) + ($businessKey == null ? 43 : $businessKey.hashCode());
        Object $empList = getEmpList();
        int result2 = (result * 59) + ($empList == null ? 43 : $empList.hashCode());
        Object $orgList = getOrgList();
        int result3 = (result2 * 59) + ($orgList == null ? 43 : $orgList.hashCode());
        Object $empIds = getEmpIds();
        int result4 = (result3 * 59) + ($empIds == null ? 43 : $empIds.hashCode());
        Object $orgIds = getOrgIds();
        return (result4 * 59) + ($orgIds == null ? 43 : $orgIds.hashCode());
    }
 
    public String toString() {
        return "NotifyDefaultObjectVO(businessKey=" + getBusinessKey() + ", empList=" + getEmpList() + ", orgList=" + getOrgList() + ", empIds=" + getEmpIds() + ", orgIds=" + getOrgIds() + ")";
    }
 
    public String getBusinessKey() {
        return this.businessKey;
    }
 
    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;
    }
}