| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- package com.ydtech.modules.admin.model.po;
- import com.baomidou.mybatisplus.annotation.IdType;
- 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;
- /**
- * 运营业务分组
- * @TableName sys_business_grouping
- */
- @TableName(value ="sys_business_grouping")
- @Data
- public class SysBusinessGrouping implements Serializable {
- /**
- * id
- */
- @TableId(value = "id", type = IdType.AUTO)
- private Integer id;
- /**
- * 分组编号
- */
- @TableField(value = "grouping_id")
- private Integer groupingId;
- /**
- * 用户id
- */
- @TableField(value = "user_id")
- private String userId;
- /**
- * 用户名称
- */
- @TableField(value = "user_name")
- private String userName;
- @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;
- }
- SysBusinessGrouping other = (SysBusinessGrouping) that;
- return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
- && (this.getGroupingId() == null ? other.getGroupingId() == null : this.getGroupingId().equals(other.getGroupingId()))
- && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
- && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()));
- }
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
- result = prime * result + ((getGroupingId() == null) ? 0 : getGroupingId().hashCode());
- result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
- result = prime * result + ((getUserName() == null) ? 0 : getUserName().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(", groupingId=").append(groupingId);
- sb.append(", userId=").append(userId);
- sb.append(", userName=").append(userName);
- sb.append(", serialVersionUID=").append(serialVersionUID);
- sb.append("]");
- return sb.toString();
- }
- }
|