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