package com.qianwen.smartman.modules.smis.vo;
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.util.ArrayList;
|
import java.util.List;
|
import com.qianwen.core.tool.node.INode;
|
import com.qianwen.smartman.modules.system.vo.ChartSelect;
|
|
public class CommonGroupVO implements INode<CommonGroupVO>, ChartSelect {
|
private static final long serialVersionUID = 1;
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty("主键")
|
private Long id;
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty("父主键")
|
private Long parentId;
|
@ApiModelProperty("扩展键")
|
private String extendId;
|
@ApiModelProperty("组全称")
|
private String fullName;
|
@ApiModelProperty("组编码")
|
private String code;
|
@ApiModelProperty("组名")
|
private String name;
|
@ApiModelProperty("组别")
|
private String groupType;
|
@ApiModelProperty("组子类")
|
private Integer groupCategory;
|
@ApiModelProperty("组标签")
|
private String groupTag;
|
@ApiModelProperty("排序")
|
private Integer sort;
|
@ApiModelProperty("备注")
|
private String remark;
|
@ApiModelProperty("业务状态 1启用 0 停用")
|
private Integer status;
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
private List<CommonGroupVO> children;
|
@ApiModelProperty("数量")
|
private Integer itemNum;
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
private Boolean hasChildren;
|
|
public void setId(final Long id) {
|
this.id = id;
|
}
|
|
public void setParentId(final Long parentId) {
|
this.parentId = parentId;
|
}
|
|
public void setExtendId(final String extendId) {
|
this.extendId = extendId;
|
}
|
|
public void setFullName(final String fullName) {
|
this.fullName = fullName;
|
}
|
|
public void setCode(final String code) {
|
this.code = code;
|
}
|
|
public void setName(final String name) {
|
this.name = name;
|
}
|
|
public void setGroupType(final String groupType) {
|
this.groupType = groupType;
|
}
|
|
public void setGroupCategory(final Integer groupCategory) {
|
this.groupCategory = groupCategory;
|
}
|
|
public void setGroupTag(final String groupTag) {
|
this.groupTag = groupTag;
|
}
|
|
public void setSort(final Integer sort) {
|
this.sort = sort;
|
}
|
|
public void setRemark(final String remark) {
|
this.remark = remark;
|
}
|
|
public void setStatus(final Integer status) {
|
this.status = status;
|
}
|
|
public void setChildren(final List<CommonGroupVO> children) {
|
this.children = children;
|
}
|
|
public void setItemNum(final Integer itemNum) {
|
this.itemNum = itemNum;
|
}
|
|
public void setHasChildren(final Boolean hasChildren) {
|
this.hasChildren = hasChildren;
|
}
|
|
public String toString() {
|
return "CommonGroupVO(id=" + getId() + ", parentId=" + getParentId() + ", extendId=" + getExtendId() + ", fullName=" + getFullName() + ", code=" + getCode() + ", name=" + getName() + ", groupType=" + getGroupType() + ", groupCategory=" + getGroupCategory() + ", groupTag=" + getGroupTag() + ", sort=" + getSort() + ", remark=" + getRemark() + ", status=" + getStatus() + ", children=" + getChildren() + ", itemNum=" + getItemNum() + ", hasChildren=" + getHasChildren() + ")";
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof CommonGroupVO) {
|
CommonGroupVO other = (CommonGroupVO) o;
|
if (other.canEqual(this)) {
|
Object this$id = getId();
|
Object other$id = other.getId();
|
if (this$id == null) {
|
if (other$id != null) {
|
return false;
|
}
|
} else if (!this$id.equals(other$id)) {
|
return false;
|
}
|
Object this$parentId = getParentId();
|
Object other$parentId = other.getParentId();
|
if (this$parentId == null) {
|
if (other$parentId != null) {
|
return false;
|
}
|
} else if (!this$parentId.equals(other$parentId)) {
|
return false;
|
}
|
Object this$groupCategory = getGroupCategory();
|
Object other$groupCategory = other.getGroupCategory();
|
if (this$groupCategory == null) {
|
if (other$groupCategory != null) {
|
return false;
|
}
|
} else if (!this$groupCategory.equals(other$groupCategory)) {
|
return false;
|
}
|
Object this$sort = getSort();
|
Object other$sort = other.getSort();
|
if (this$sort == null) {
|
if (other$sort != null) {
|
return false;
|
}
|
} else if (!this$sort.equals(other$sort)) {
|
return false;
|
}
|
Object this$status = getStatus();
|
Object other$status = other.getStatus();
|
if (this$status == null) {
|
if (other$status != null) {
|
return false;
|
}
|
} else if (!this$status.equals(other$status)) {
|
return false;
|
}
|
Object this$itemNum = getItemNum();
|
Object other$itemNum = other.getItemNum();
|
if (this$itemNum == null) {
|
if (other$itemNum != null) {
|
return false;
|
}
|
} else if (!this$itemNum.equals(other$itemNum)) {
|
return false;
|
}
|
Object this$hasChildren = getHasChildren();
|
Object other$hasChildren = other.getHasChildren();
|
if (this$hasChildren == null) {
|
if (other$hasChildren != null) {
|
return false;
|
}
|
} else if (!this$hasChildren.equals(other$hasChildren)) {
|
return false;
|
}
|
Object this$extendId = getExtendId();
|
Object other$extendId = other.getExtendId();
|
if (this$extendId == null) {
|
if (other$extendId != null) {
|
return false;
|
}
|
} else if (!this$extendId.equals(other$extendId)) {
|
return false;
|
}
|
Object this$fullName = getFullName();
|
Object other$fullName = other.getFullName();
|
if (this$fullName == null) {
|
if (other$fullName != null) {
|
return false;
|
}
|
} else if (!this$fullName.equals(other$fullName)) {
|
return false;
|
}
|
Object this$code = getCode();
|
Object other$code = other.getCode();
|
if (this$code == null) {
|
if (other$code != null) {
|
return false;
|
}
|
} else if (!this$code.equals(other$code)) {
|
return false;
|
}
|
Object this$name = getName();
|
Object other$name = other.getName();
|
if (this$name == null) {
|
if (other$name != null) {
|
return false;
|
}
|
} else if (!this$name.equals(other$name)) {
|
return false;
|
}
|
Object this$groupType = getGroupType();
|
Object other$groupType = other.getGroupType();
|
if (this$groupType == null) {
|
if (other$groupType != null) {
|
return false;
|
}
|
} else if (!this$groupType.equals(other$groupType)) {
|
return false;
|
}
|
Object this$groupTag = getGroupTag();
|
Object other$groupTag = other.getGroupTag();
|
if (this$groupTag == null) {
|
if (other$groupTag != null) {
|
return false;
|
}
|
} else if (!this$groupTag.equals(other$groupTag)) {
|
return false;
|
}
|
Object this$remark = getRemark();
|
Object other$remark = other.getRemark();
|
if (this$remark == null) {
|
if (other$remark != null) {
|
return false;
|
}
|
} else if (!this$remark.equals(other$remark)) {
|
return false;
|
}
|
Object this$children = getChildren();
|
Object other$children = other.getChildren();
|
return this$children == null ? other$children == null : this$children.equals(other$children);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof CommonGroupVO;
|
}
|
|
public int hashCode() {
|
Object $id = getId();
|
int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
|
Object $parentId = getParentId();
|
int result2 = (result * 59) + ($parentId == null ? 43 : $parentId.hashCode());
|
Object $groupCategory = getGroupCategory();
|
int result3 = (result2 * 59) + ($groupCategory == null ? 43 : $groupCategory.hashCode());
|
Object $sort = getSort();
|
int result4 = (result3 * 59) + ($sort == null ? 43 : $sort.hashCode());
|
Object $status = getStatus();
|
int result5 = (result4 * 59) + ($status == null ? 43 : $status.hashCode());
|
Object $itemNum = getItemNum();
|
int result6 = (result5 * 59) + ($itemNum == null ? 43 : $itemNum.hashCode());
|
Object $hasChildren = getHasChildren();
|
int result7 = (result6 * 59) + ($hasChildren == null ? 43 : $hasChildren.hashCode());
|
Object $extendId = getExtendId();
|
int result8 = (result7 * 59) + ($extendId == null ? 43 : $extendId.hashCode());
|
Object $fullName = getFullName();
|
int result9 = (result8 * 59) + ($fullName == null ? 43 : $fullName.hashCode());
|
Object $code = getCode();
|
int result10 = (result9 * 59) + ($code == null ? 43 : $code.hashCode());
|
Object $name = getName();
|
int result11 = (result10 * 59) + ($name == null ? 43 : $name.hashCode());
|
Object $groupType = getGroupType();
|
int result12 = (result11 * 59) + ($groupType == null ? 43 : $groupType.hashCode());
|
Object $groupTag = getGroupTag();
|
int result13 = (result12 * 59) + ($groupTag == null ? 43 : $groupTag.hashCode());
|
Object $remark = getRemark();
|
int result14 = (result13 * 59) + ($remark == null ? 43 : $remark.hashCode());
|
Object $children = getChildren();
|
return (result14 * 59) + ($children == null ? 43 : $children.hashCode());
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
|
public Long getParentId() {
|
return this.parentId;
|
}
|
|
public String getExtendId() {
|
return this.extendId;
|
}
|
|
public String getFullName() {
|
return this.fullName;
|
}
|
|
public String getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public String getGroupType() {
|
return this.groupType;
|
}
|
|
public Integer getGroupCategory() {
|
return this.groupCategory;
|
}
|
|
public String getGroupTag() {
|
return this.groupTag;
|
}
|
|
public Integer getSort() {
|
return this.sort;
|
}
|
|
public String getRemark() {
|
return this.remark;
|
}
|
|
public Integer getStatus() {
|
return this.status;
|
}
|
|
public Integer getItemNum() {
|
return this.itemNum;
|
}
|
|
public Boolean getHasChildren() {
|
return Boolean.valueOf(this.children.size() > 0);
|
}
|
|
public List<CommonGroupVO> getChildren() {
|
if (this.children == null) {
|
this.children = new ArrayList<>();
|
}
|
return this.children;
|
}
|
|
@Override // org.springblade.modules.system.vo.ChartSelect
|
public String getLabel() {
|
return getName();
|
}
|
|
@Override // org.springblade.modules.system.vo.ChartSelect
|
public String getValue() {
|
return getId() + "";
|
}
|
}
|