package com.ydtech.modules.admin.model; 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; import java.util.Date; /** * 控制台角色关联菜单 * @TableName sys_role_menu_kzt */ @TableName(value ="sys_role_menu_kzt") @Data public class SysRoleMenuKzt implements Serializable { /** * 编号 */ @TableId(type = IdType.AUTO) private Long id; /** * 角色ID */ @TableField(value = "role_id") private Long roleId; /** * 菜单ID */ @TableField(value = "menu_id") private Long menuId; /** * 系统类型 */ @TableField(value = "sys_type") private String sysType; /** * 创建人 */ @TableField(value = "create_by") private String createBy; /** * 创建时间 */ @TableField(value = "create_time") private Date createTime; /** * 更新人 */ @TableField(value = "last_update_by") private String lastUpdateBy; /** * 更新时间 */ @TableField(value = "last_update_time") private Date lastUpdateTime; @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; } SysRoleMenuKzt other = (SysRoleMenuKzt) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId())) && (this.getMenuId() == null ? other.getMenuId() == null : this.getMenuId().equals(other.getMenuId())) && (this.getSysType() == null ? other.getSysType() == null : this.getSysType().equals(other.getSysType())) && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getLastUpdateBy() == null ? other.getLastUpdateBy() == null : this.getLastUpdateBy().equals(other.getLastUpdateBy())) && (this.getLastUpdateTime() == null ? other.getLastUpdateTime() == null : this.getLastUpdateTime().equals(other.getLastUpdateTime())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode()); result = prime * result + ((getMenuId() == null) ? 0 : getMenuId().hashCode()); result = prime * result + ((getSysType() == null) ? 0 : getSysType().hashCode()); result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getLastUpdateBy() == null) ? 0 : getLastUpdateBy().hashCode()); result = prime * result + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().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(", roleId=").append(roleId); sb.append(", menuId=").append(menuId); sb.append(", sysType=").append(sysType); sb.append(", createBy=").append(createBy); sb.append(", createTime=").append(createTime); sb.append(", lastUpdateBy=").append(lastUpdateBy); sb.append(", lastUpdateTime=").append(lastUpdateTime); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } public SysRoleMenuKzt() { } public SysRoleMenuKzt(Long id, Long roleId, Long menuId, String sysType, String createBy, Date createTime, String lastUpdateBy, Date lastUpdateTime) { this.id = id; this.roleId = roleId; this.menuId = menuId; this.sysType = sysType; this.createBy = createBy; this.createTime = createTime; this.lastUpdateBy = lastUpdateBy; this.lastUpdateTime = lastUpdateTime; } }