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;
|
}
|
}
|