| | |
| | | package com.dy.pmsGlobal.pojoSta; |
| | | |
| | | import java.io.Serializable; |
| | | import com.alibaba.fastjson2.annotation.JSONField; |
| | | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.dy.common.po.BaseEntity; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import lombok.*; |
| | | |
| | | |
| | | |
| | | import java.util.Date; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 安装运维任务认领表 |
| | | * @TableName sta_dev_ops_task_claim_info |
| | | */ |
| | | * 安装运维任务认领表 |
| | | * @TableName sta_dev_ops_task_claim_info |
| | | */ |
| | | @TableName(value="sta_dev_ops_task_claim_info", autoResultMap = true) |
| | | @Data |
| | | public class StaDevOpsTaskClaimInfo implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | private Long id; |
| | | @Builder |
| | | @ToString |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | public class StaDevOpsTaskClaimInfo implements BaseEntity { |
| | | |
| | | /** |
| | | * 用户实体编号 |
| | | */ |
| | | private Long userId; |
| | | |
| | | * |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long id; |
| | | /** |
| | | * 安装运维任务实体编号 |
| | | */ |
| | | private Long planId; |
| | | |
| | | * 用户实体编号 |
| | | */ |
| | | @NotNull(message="[用户实体编号]不能为空") |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long userId; |
| | | /** |
| | | * 任务认领时间 |
| | | */ |
| | | private Date dt; |
| | | |
| | | * 安装运维任务实体编号 |
| | | */ |
| | | @NotNull(message="[安装运维任务实体编号]不能为空") |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long planId; |
| | | /** |
| | | * 状态:正常(1)、结束(0) |
| | | */ |
| | | private Integer status; |
| | | * 任务认领时间 |
| | | */ |
| | | public Date dt; |
| | | /** |
| | | * 状态:正常(1)、结束(0) |
| | | */ |
| | | public Integer status; |
| | | |
| | | 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; |
| | | } |
| | | StaDevOpsTaskClaimInfo other = (StaDevOpsTaskClaimInfo) that; |
| | | return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
| | | && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) |
| | | && (this.getPlanId() == null ? other.getPlanId() == null : this.getPlanId().equals(other.getPlanId())) |
| | | && (this.getDt() == null ? other.getDt() == null : this.getDt().equals(other.getDt())) |
| | | && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())); |
| | | } |
| | | |
| | | @Override |
| | | public int hashCode() { |
| | | final int prime = 31; |
| | | int result = 1; |
| | | result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); |
| | | result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); |
| | | result = prime * result + ((getPlanId() == null) ? 0 : getPlanId().hashCode()); |
| | | result = prime * result + ((getDt() == null) ? 0 : getDt().hashCode()); |
| | | result = prime * result + ((getStatus() == null) ? 0 : getStatus().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(", userId=").append(userId); |
| | | sb.append(", planId=").append(planId); |
| | | sb.append(", dt=").append(dt); |
| | | sb.append(", status=").append(status); |
| | | sb.append(", serialVersionUID=").append(serialVersionUID); |
| | | sb.append("]"); |
| | | return sb.toString(); |
| | | } |
| | | } |
| | | } |