package com.ydtech.modules.protocol.entity.po; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import java.io.Serializable; import java.util.Date; /** * 协议组关联部门 * @TableName ptl_agreement_group_link_dept */ @TableName(value ="ptl_agreement_group_link_dept") @Data public class PtlAgreementGroupLinkDept implements Serializable { /** * 主键 */ @TableId private Long id; /** * 用户组id */ private Long ptlAgreementGroupId; /** * 六级机构id */ private String deptId; /** * 创建时间 */ private Date createTime; /** * 创建人 */ private String createUser; @TableField(exist = false) private static final long serialVersionUID = 1L; @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } PtlAgreementGroupLinkDept other = (PtlAgreementGroupLinkDept) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getPtlAgreementGroupId() == null ? other.getPtlAgreementGroupId() == null : this.getPtlAgreementGroupId().equals(other.getPtlAgreementGroupId())) && (this.getDeptId() == null ? other.getDeptId() == null : this.getDeptId().equals(other.getDeptId())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getPtlAgreementGroupId() == null) ? 0 : getPtlAgreementGroupId().hashCode()); result = prime * result + ((getDeptId() == null) ? 0 : getDeptId().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode()); return result; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", ptlAgreementGroupId=").append(ptlAgreementGroupId); sb.append(", deptId=").append(deptId); sb.append(", createTime=").append(createTime); sb.append(", createUser=").append(createUser); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } public PtlAgreementGroupLinkDept() { } public PtlAgreementGroupLinkDept(Long id, Long ptlAgreementGroupId, String deptId, Date createTime, String createUser) { this.id = id; this.ptlAgreementGroupId = ptlAgreementGroupId; this.deptId = deptId; this.createTime = createTime; this.createUser = createUser; } }