|  |  | 
 |  |  | 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.TableField; | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableName; | 
 |  |  | import com.dy.common.po.BaseEntity; | 
 |  |  | import com.dy.pmsGlobal.pojoBa.BaUser; | 
 |  |  | import jakarta.validation.constraints.NotNull; | 
 |  |  | import lombok.*; | 
 |  |  |  | 
 |  |  | import java.util.Date; | 
 |  |  | import lombok.Data; | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * 生产线生产任务认领表 | 
 |  |  |  * @TableName sta_assembly_work_last | 
 |  |  |  */ | 
 |  |  | * 生产线生产任务认领表 | 
 |  |  | * @TableName sta_assembly_work_last | 
 |  |  | */ | 
 |  |  | @TableName(value="sta_assembly_work_last", autoResultMap = true) | 
 |  |  | @Data | 
 |  |  | public class StaAssemblyWorkLast implements Serializable { | 
 |  |  |     /** | 
 |  |  |      *  | 
 |  |  |      */ | 
 |  |  |     private Long id; | 
 |  |  | @Builder | 
 |  |  | @ToString | 
 |  |  | @NoArgsConstructor | 
 |  |  | @AllArgsConstructor | 
 |  |  | public class StaAssemblyWorkLast implements BaseEntity { | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 用户实体编号 | 
 |  |  |      */ | 
 |  |  |     private Long userId; | 
 |  |  |     *  | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long id; | 
 |  |  |     /** | 
 |  |  |     * 用户实体编号 | 
 |  |  |     */ | 
 |  |  |     @NotNull(message="[用户实体编号]不能为空") | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long userId; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String userName; | 
 |  |  |     /** | 
 |  |  |     * 生产线实体编号 | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long lineId; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String lineName; | 
 |  |  |     /** | 
 |  |  |     * 工站实体编号 | 
 |  |  |     */ | 
 |  |  |     @NotNull(message="[工站实体编号]不能为空") | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long stationId; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String stationName; | 
 |  |  |  | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long proId; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String proName; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String devicePrefix; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 生产线实体编号 | 
 |  |  |      */ | 
 |  |  |     private Long lineId; | 
 |  |  |     * 组装生产任务实体编号 | 
 |  |  |     */ | 
 |  |  |     @NotNull(message="[组装生产任务实体编号]不能为空") | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long planId; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String planName; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 工站实体编号 | 
 |  |  |      */ | 
 |  |  |     private Long stationId; | 
 |  |  |     * 生产流程实体编号 | 
 |  |  |     */ | 
 |  |  |     @NotNull(message="[生产流程实体编号]不能为空") | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long processId; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String processName; | 
 |  |  |     /** | 
 |  |  |     * 生产流程节点实体编号 | 
 |  |  |     */ | 
 |  |  |     @NotNull(message="[生产流程节点实体编号]不能为空") | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long nodeId; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String nodeName; | 
 |  |  |  | 
 |  |  |     public Integer workType; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 组装生产任务实体编号 | 
 |  |  |      */ | 
 |  |  |     private Long planId; | 
 |  |  |  | 
 |  |  |     * 任务认领时间 | 
 |  |  |     */ | 
 |  |  |     public Date dt; | 
 |  |  |     /** | 
 |  |  |      * 生产流程实体编号 | 
 |  |  |      */ | 
 |  |  |     private Long processId; | 
 |  |  |  | 
 |  |  |     * 状态:正常(1)、结束(0) | 
 |  |  |     */ | 
 |  |  |     public Integer status; | 
 |  |  |     /** | 
 |  |  |      * 生产流程节点实体编号 | 
 |  |  |      */ | 
 |  |  |     private Long nodeId; | 
 |  |  |  | 
 |  |  |     * 开始时间 | 
 |  |  |     */ | 
 |  |  |     public Date startTime; | 
 |  |  |     /** | 
 |  |  |      * 任务认领时间 | 
 |  |  |      */ | 
 |  |  |     private Date dt; | 
 |  |  |  | 
 |  |  |     * 结束时间 | 
 |  |  |     */ | 
 |  |  |     public Date endTime; | 
 |  |  |     /** | 
 |  |  |      * 状态:正常(1)、结束(0) | 
 |  |  |      */ | 
 |  |  |     private Integer status; | 
 |  |  |     * 辅助人员:辅助员工id,以逗号隔开 | 
 |  |  |     */ | 
 |  |  |     public String assistants; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 开始时间 | 
 |  |  |      */ | 
 |  |  |     private Date startTime; | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public List<BaUser> assistantsList; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 结束时间 | 
 |  |  |      */ | 
 |  |  |     private Date endTime; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 辅助人员:辅助员工id,以逗号隔开 | 
 |  |  |      */ | 
 |  |  |     private String assistants; | 
 |  |  |  | 
 |  |  |     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; | 
 |  |  |         } | 
 |  |  |         StaAssemblyWorkLast other = (StaAssemblyWorkLast) 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.getLineId() == null ? other.getLineId() == null : this.getLineId().equals(other.getLineId())) | 
 |  |  |             && (this.getStationId() == null ? other.getStationId() == null : this.getStationId().equals(other.getStationId())) | 
 |  |  |             && (this.getPlanId() == null ? other.getPlanId() == null : this.getPlanId().equals(other.getPlanId())) | 
 |  |  |             && (this.getProcessId() == null ? other.getProcessId() == null : this.getProcessId().equals(other.getProcessId())) | 
 |  |  |             && (this.getNodeId() == null ? other.getNodeId() == null : this.getNodeId().equals(other.getNodeId())) | 
 |  |  |             && (this.getDt() == null ? other.getDt() == null : this.getDt().equals(other.getDt())) | 
 |  |  |             && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) | 
 |  |  |             && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime())) | 
 |  |  |             && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime())) | 
 |  |  |             && (this.getAssistants() == null ? other.getAssistants() == null : this.getAssistants().equals(other.getAssistants())); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @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 + ((getLineId() == null) ? 0 : getLineId().hashCode()); | 
 |  |  |         result = prime * result + ((getStationId() == null) ? 0 : getStationId().hashCode()); | 
 |  |  |         result = prime * result + ((getPlanId() == null) ? 0 : getPlanId().hashCode()); | 
 |  |  |         result = prime * result + ((getProcessId() == null) ? 0 : getProcessId().hashCode()); | 
 |  |  |         result = prime * result + ((getNodeId() == null) ? 0 : getNodeId().hashCode()); | 
 |  |  |         result = prime * result + ((getDt() == null) ? 0 : getDt().hashCode()); | 
 |  |  |         result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); | 
 |  |  |         result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); | 
 |  |  |         result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); | 
 |  |  |         result = prime * result + ((getAssistants() == null) ? 0 : getAssistants().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(", lineId=").append(lineId); | 
 |  |  |         sb.append(", stationId=").append(stationId); | 
 |  |  |         sb.append(", planId=").append(planId); | 
 |  |  |         sb.append(", processId=").append(processId); | 
 |  |  |         sb.append(", nodeId=").append(nodeId); | 
 |  |  |         sb.append(", dt=").append(dt); | 
 |  |  |         sb.append(", status=").append(status); | 
 |  |  |         sb.append(", startTime=").append(startTime); | 
 |  |  |         sb.append(", endTime=").append(endTime); | 
 |  |  |         sb.append(", assistants=").append(assistants); | 
 |  |  |         sb.append(", serialVersionUID=").append(serialVersionUID); | 
 |  |  |         sb.append("]"); | 
 |  |  |         return sb.toString(); | 
 |  |  |     } | 
 |  |  | } | 
 |  |  | } |