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.BusinessNotifyStateDTO;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/vo/BusinessNotifyStateVO.class */
|
public class BusinessNotifyStateVO {
|
@ApiModelProperty("员工列表")
|
List<BusinessNotifyStateDTO> empList;
|
@ApiModelProperty("部门列表")
|
List<BusinessNotifyStateDTO> orgList;
|
@ApiModelProperty("员工ids")
|
List<Long> empIds;
|
@ApiModelProperty("部门ids")
|
List<Long> orgIds;
|
|
public void setEmpList(final List<BusinessNotifyStateDTO> empList) {
|
this.empList = empList;
|
}
|
|
public void setOrgList(final List<BusinessNotifyStateDTO> 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 BusinessNotifyStateVO) {
|
BusinessNotifyStateVO other = (BusinessNotifyStateVO) o;
|
if (other.canEqual(this)) {
|
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 BusinessNotifyStateVO;
|
}
|
|
public int hashCode() {
|
Object $empList = getEmpList();
|
int result = (1 * 59) + ($empList == null ? 43 : $empList.hashCode());
|
Object $orgList = getOrgList();
|
int result2 = (result * 59) + ($orgList == null ? 43 : $orgList.hashCode());
|
Object $empIds = getEmpIds();
|
int result3 = (result2 * 59) + ($empIds == null ? 43 : $empIds.hashCode());
|
Object $orgIds = getOrgIds();
|
return (result3 * 59) + ($orgIds == null ? 43 : $orgIds.hashCode());
|
}
|
|
public String toString() {
|
return "BusinessNotifyStateVO(empList=" + getEmpList() + ", orgList=" + getOrgList() + ", empIds=" + getEmpIds() + ", orgIds=" + getOrgIds() + ")";
|
}
|
|
public List<BusinessNotifyStateDTO> getEmpList() {
|
return this.empList;
|
}
|
|
public List<BusinessNotifyStateDTO> 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;
|
}
|
}
|