package com.qianwen.smartman.modules.coproduction.entity; import com.baomidou.mybatisplus.annotation.FieldStrategy; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.Date; import com.qianwen.core.mp.base.BaseEntity; @ApiModel(value = "OrderProcess对象", description = "blade_order_process") @TableName("blade_order_process") /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/entity/OrderProcess.class */ public class OrderProcess extends BaseEntity { private static final long serialVersionUID = 1; @ApiModelProperty("租户ID") private String tenantId; @ApiModelProperty("备注") private String remark; @ApiModelProperty("计划id") private Long planId; @ApiModelProperty("工单id") private Long orderId; @ApiModelProperty("工序顺序") private Integer sort; @ApiModelProperty("工序编号") private String processCode; @ApiModelProperty("工序名称") private String processName; @ApiModelProperty("程序id") private Long programId; @ApiModelProperty("程序名称") private String programName; @ApiModelProperty("暂停前状态") private Integer processStatusBefore; @ApiModelProperty("工序状态(1.待加工 2.加工中 3.暂停 4.关闭 5.完工)") private Integer processStatus; @ApiModelProperty("投产数量") private Integer inputNum; @ApiModelProperty("工序合格数量") private Integer qualifyNum; @ApiModelProperty("工序报废数量") private Integer scrappedNum; @ApiModelProperty("标准工时(单位:s)") private Integer standardTime; @TableField(value = "start_time", updateStrategy = FieldStrategy.IGNORED) @ApiModelProperty("开始时间") private Date startTime; @TableField(value = "end_time", updateStrategy = FieldStrategy.IGNORED) @ApiModelProperty("结束时间") private Date endTime; @ApiModelProperty("多工位id,用逗号隔开") private String workstationId; @ApiModelProperty("多工位名称,用逗号隔开") private String workstationName; @ApiModelProperty("工艺包id") private Long artBagId; @ApiModelProperty("工艺包名称") private String artBagName; @ApiModelProperty("准备工时(单位:s)") private Integer prepareTime; @ApiModelProperty("拆卸工时(单位:s)") private Integer disassemblyTime; @ApiModelProperty("运输工时(单位:s)") private Integer transportTime; @ApiModelProperty("是否质检: 0 否 1 是") private Integer whetherTest; @ApiModelProperty("是否并行: 0 否 1 是") private Integer whetherParallel; @ApiModelProperty("主序id(当主序id不为空时,代表工序是子序)") private Long mainSequenceId; @TableField(exist = false) @ApiModelProperty("上一序") private OrderProcess prevProcess; @TableField(exist = false) @ApiModelProperty("下一序") private OrderProcess nextProcess; public OrderProcess setTenantId(final String tenantId) { this.tenantId = tenantId; return this; } public OrderProcess setRemark(final String remark) { this.remark = remark; return this; } public OrderProcess setPlanId(final Long planId) { this.planId = planId; return this; } public OrderProcess setOrderId(final Long orderId) { this.orderId = orderId; return this; } public OrderProcess setSort(final Integer sort) { this.sort = sort; return this; } public OrderProcess setProcessCode(final String processCode) { this.processCode = processCode; return this; } public OrderProcess setProcessName(final String processName) { this.processName = processName; return this; } public OrderProcess setProgramId(final Long programId) { this.programId = programId; return this; } public OrderProcess setProgramName(final String programName) { this.programName = programName; return this; } public OrderProcess setProcessStatusBefore(final Integer processStatusBefore) { this.processStatusBefore = processStatusBefore; return this; } public OrderProcess setProcessStatus(final Integer processStatus) { this.processStatus = processStatus; return this; } public OrderProcess setInputNum(final Integer inputNum) { this.inputNum = inputNum; return this; } public OrderProcess setQualifyNum(final Integer qualifyNum) { this.qualifyNum = qualifyNum; return this; } public OrderProcess setScrappedNum(final Integer scrappedNum) { this.scrappedNum = scrappedNum; return this; } public OrderProcess setStandardTime(final Integer standardTime) { this.standardTime = standardTime; return this; } public OrderProcess setStartTime(final Date startTime) { this.startTime = startTime; return this; } public OrderProcess setEndTime(final Date endTime) { this.endTime = endTime; return this; } public OrderProcess setWorkstationId(final String workstationId) { this.workstationId = workstationId; return this; } public OrderProcess setWorkstationName(final String workstationName) { this.workstationName = workstationName; return this; } public OrderProcess setArtBagId(final Long artBagId) { this.artBagId = artBagId; return this; } public OrderProcess setArtBagName(final String artBagName) { this.artBagName = artBagName; return this; } public OrderProcess setPrepareTime(final Integer prepareTime) { this.prepareTime = prepareTime; return this; } public OrderProcess setDisassemblyTime(final Integer disassemblyTime) { this.disassemblyTime = disassemblyTime; return this; } public OrderProcess setTransportTime(final Integer transportTime) { this.transportTime = transportTime; return this; } public OrderProcess setWhetherTest(final Integer whetherTest) { this.whetherTest = whetherTest; return this; } public OrderProcess setWhetherParallel(final Integer whetherParallel) { this.whetherParallel = whetherParallel; return this; } public OrderProcess setMainSequenceId(final Long mainSequenceId) { this.mainSequenceId = mainSequenceId; return this; } public OrderProcess setPrevProcess(final OrderProcess prevProcess) { this.prevProcess = prevProcess; return this; } public OrderProcess setNextProcess(final OrderProcess nextProcess) { this.nextProcess = nextProcess; return this; } public String toString() { return "OrderProcess(tenantId=" + getTenantId() + ", remark=" + getRemark() + ", planId=" + getPlanId() + ", orderId=" + getOrderId() + ", sort=" + getSort() + ", processCode=" + getProcessCode() + ", processName=" + getProcessName() + ", programId=" + getProgramId() + ", programName=" + getProgramName() + ", processStatusBefore=" + getProcessStatusBefore() + ", processStatus=" + getProcessStatus() + ", inputNum=" + getInputNum() + ", qualifyNum=" + getQualifyNum() + ", scrappedNum=" + getScrappedNum() + ", standardTime=" + getStandardTime() + ", startTime=" + getStartTime() + ", endTime=" + getEndTime() + ", workstationId=" + getWorkstationId() + ", workstationName=" + getWorkstationName() + ", artBagId=" + getArtBagId() + ", artBagName=" + getArtBagName() + ", prepareTime=" + getPrepareTime() + ", disassemblyTime=" + getDisassemblyTime() + ", transportTime=" + getTransportTime() + ", whetherTest=" + getWhetherTest() + ", whetherParallel=" + getWhetherParallel() + ", mainSequenceId=" + getMainSequenceId() + ", prevProcess=" + getPrevProcess() + ", nextProcess=" + getNextProcess() + ")"; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof OrderProcess) { OrderProcess other = (OrderProcess) o; if (other.canEqual(this) && super.equals(o)) { Object this$planId = getPlanId(); Object other$planId = other.getPlanId(); if (this$planId == null) { if (other$planId != null) { return false; } } else if (!this$planId.equals(other$planId)) { return false; } Object this$orderId = getOrderId(); Object other$orderId = other.getOrderId(); if (this$orderId == null) { if (other$orderId != null) { return false; } } else if (!this$orderId.equals(other$orderId)) { return false; } Object this$sort = getSort(); Object other$sort = other.getSort(); if (this$sort == null) { if (other$sort != null) { return false; } } else if (!this$sort.equals(other$sort)) { return false; } Object this$programId = getProgramId(); Object other$programId = other.getProgramId(); if (this$programId == null) { if (other$programId != null) { return false; } } else if (!this$programId.equals(other$programId)) { return false; } Object this$processStatusBefore = getProcessStatusBefore(); Object other$processStatusBefore = other.getProcessStatusBefore(); if (this$processStatusBefore == null) { if (other$processStatusBefore != null) { return false; } } else if (!this$processStatusBefore.equals(other$processStatusBefore)) { return false; } Object this$processStatus = getProcessStatus(); Object other$processStatus = other.getProcessStatus(); if (this$processStatus == null) { if (other$processStatus != null) { return false; } } else if (!this$processStatus.equals(other$processStatus)) { return false; } Object this$inputNum = getInputNum(); Object other$inputNum = other.getInputNum(); if (this$inputNum == null) { if (other$inputNum != null) { return false; } } else if (!this$inputNum.equals(other$inputNum)) { return false; } Object this$qualifyNum = getQualifyNum(); Object other$qualifyNum = other.getQualifyNum(); if (this$qualifyNum == null) { if (other$qualifyNum != null) { return false; } } else if (!this$qualifyNum.equals(other$qualifyNum)) { return false; } Object this$scrappedNum = getScrappedNum(); Object other$scrappedNum = other.getScrappedNum(); if (this$scrappedNum == null) { if (other$scrappedNum != null) { return false; } } else if (!this$scrappedNum.equals(other$scrappedNum)) { return false; } Object this$standardTime = getStandardTime(); Object other$standardTime = other.getStandardTime(); if (this$standardTime == null) { if (other$standardTime != null) { return false; } } else if (!this$standardTime.equals(other$standardTime)) { return false; } Object this$artBagId = getArtBagId(); Object other$artBagId = other.getArtBagId(); if (this$artBagId == null) { if (other$artBagId != null) { return false; } } else if (!this$artBagId.equals(other$artBagId)) { return false; } Object this$prepareTime = getPrepareTime(); Object other$prepareTime = other.getPrepareTime(); if (this$prepareTime == null) { if (other$prepareTime != null) { return false; } } else if (!this$prepareTime.equals(other$prepareTime)) { return false; } Object this$disassemblyTime = getDisassemblyTime(); Object other$disassemblyTime = other.getDisassemblyTime(); if (this$disassemblyTime == null) { if (other$disassemblyTime != null) { return false; } } else if (!this$disassemblyTime.equals(other$disassemblyTime)) { return false; } Object this$transportTime = getTransportTime(); Object other$transportTime = other.getTransportTime(); if (this$transportTime == null) { if (other$transportTime != null) { return false; } } else if (!this$transportTime.equals(other$transportTime)) { return false; } Object this$whetherTest = getWhetherTest(); Object other$whetherTest = other.getWhetherTest(); if (this$whetherTest == null) { if (other$whetherTest != null) { return false; } } else if (!this$whetherTest.equals(other$whetherTest)) { return false; } Object this$whetherParallel = getWhetherParallel(); Object other$whetherParallel = other.getWhetherParallel(); if (this$whetherParallel == null) { if (other$whetherParallel != null) { return false; } } else if (!this$whetherParallel.equals(other$whetherParallel)) { return false; } Object this$mainSequenceId = getMainSequenceId(); Object other$mainSequenceId = other.getMainSequenceId(); if (this$mainSequenceId == null) { if (other$mainSequenceId != null) { return false; } } else if (!this$mainSequenceId.equals(other$mainSequenceId)) { return false; } Object this$tenantId = getTenantId(); Object other$tenantId = other.getTenantId(); if (this$tenantId == null) { if (other$tenantId != null) { return false; } } else if (!this$tenantId.equals(other$tenantId)) { return false; } Object this$remark = getRemark(); Object other$remark = other.getRemark(); if (this$remark == null) { if (other$remark != null) { return false; } } else if (!this$remark.equals(other$remark)) { return false; } Object this$processCode = getProcessCode(); Object other$processCode = other.getProcessCode(); if (this$processCode == null) { if (other$processCode != null) { return false; } } else if (!this$processCode.equals(other$processCode)) { return false; } Object this$processName = getProcessName(); Object other$processName = other.getProcessName(); if (this$processName == null) { if (other$processName != null) { return false; } } else if (!this$processName.equals(other$processName)) { return false; } Object this$programName = getProgramName(); Object other$programName = other.getProgramName(); if (this$programName == null) { if (other$programName != null) { return false; } } else if (!this$programName.equals(other$programName)) { return false; } Object this$startTime = getStartTime(); Object other$startTime = other.getStartTime(); if (this$startTime == null) { if (other$startTime != null) { return false; } } else if (!this$startTime.equals(other$startTime)) { return false; } Object this$endTime = getEndTime(); Object other$endTime = other.getEndTime(); if (this$endTime == null) { if (other$endTime != null) { return false; } } else if (!this$endTime.equals(other$endTime)) { return false; } Object this$workstationId = getWorkstationId(); Object other$workstationId = other.getWorkstationId(); if (this$workstationId == null) { if (other$workstationId != null) { return false; } } else if (!this$workstationId.equals(other$workstationId)) { return false; } Object this$workstationName = getWorkstationName(); Object other$workstationName = other.getWorkstationName(); if (this$workstationName == null) { if (other$workstationName != null) { return false; } } else if (!this$workstationName.equals(other$workstationName)) { return false; } Object this$artBagName = getArtBagName(); Object other$artBagName = other.getArtBagName(); if (this$artBagName == null) { if (other$artBagName != null) { return false; } } else if (!this$artBagName.equals(other$artBagName)) { return false; } Object this$prevProcess = getPrevProcess(); Object other$prevProcess = other.getPrevProcess(); if (this$prevProcess == null) { if (other$prevProcess != null) { return false; } } else if (!this$prevProcess.equals(other$prevProcess)) { return false; } Object this$nextProcess = getNextProcess(); Object other$nextProcess = other.getNextProcess(); return this$nextProcess == null ? other$nextProcess == null : this$nextProcess.equals(other$nextProcess); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof OrderProcess; } public int hashCode() { int result = super.hashCode(); Object $planId = getPlanId(); int result2 = (result * 59) + ($planId == null ? 43 : $planId.hashCode()); Object $orderId = getOrderId(); int result3 = (result2 * 59) + ($orderId == null ? 43 : $orderId.hashCode()); Object $sort = getSort(); int result4 = (result3 * 59) + ($sort == null ? 43 : $sort.hashCode()); Object $programId = getProgramId(); int result5 = (result4 * 59) + ($programId == null ? 43 : $programId.hashCode()); Object $processStatusBefore = getProcessStatusBefore(); int result6 = (result5 * 59) + ($processStatusBefore == null ? 43 : $processStatusBefore.hashCode()); Object $processStatus = getProcessStatus(); int result7 = (result6 * 59) + ($processStatus == null ? 43 : $processStatus.hashCode()); Object $inputNum = getInputNum(); int result8 = (result7 * 59) + ($inputNum == null ? 43 : $inputNum.hashCode()); Object $qualifyNum = getQualifyNum(); int result9 = (result8 * 59) + ($qualifyNum == null ? 43 : $qualifyNum.hashCode()); Object $scrappedNum = getScrappedNum(); int result10 = (result9 * 59) + ($scrappedNum == null ? 43 : $scrappedNum.hashCode()); Object $standardTime = getStandardTime(); int result11 = (result10 * 59) + ($standardTime == null ? 43 : $standardTime.hashCode()); Object $artBagId = getArtBagId(); int result12 = (result11 * 59) + ($artBagId == null ? 43 : $artBagId.hashCode()); Object $prepareTime = getPrepareTime(); int result13 = (result12 * 59) + ($prepareTime == null ? 43 : $prepareTime.hashCode()); Object $disassemblyTime = getDisassemblyTime(); int result14 = (result13 * 59) + ($disassemblyTime == null ? 43 : $disassemblyTime.hashCode()); Object $transportTime = getTransportTime(); int result15 = (result14 * 59) + ($transportTime == null ? 43 : $transportTime.hashCode()); Object $whetherTest = getWhetherTest(); int result16 = (result15 * 59) + ($whetherTest == null ? 43 : $whetherTest.hashCode()); Object $whetherParallel = getWhetherParallel(); int result17 = (result16 * 59) + ($whetherParallel == null ? 43 : $whetherParallel.hashCode()); Object $mainSequenceId = getMainSequenceId(); int result18 = (result17 * 59) + ($mainSequenceId == null ? 43 : $mainSequenceId.hashCode()); Object $tenantId = getTenantId(); int result19 = (result18 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode()); Object $remark = getRemark(); int result20 = (result19 * 59) + ($remark == null ? 43 : $remark.hashCode()); Object $processCode = getProcessCode(); int result21 = (result20 * 59) + ($processCode == null ? 43 : $processCode.hashCode()); Object $processName = getProcessName(); int result22 = (result21 * 59) + ($processName == null ? 43 : $processName.hashCode()); Object $programName = getProgramName(); int result23 = (result22 * 59) + ($programName == null ? 43 : $programName.hashCode()); Object $startTime = getStartTime(); int result24 = (result23 * 59) + ($startTime == null ? 43 : $startTime.hashCode()); Object $endTime = getEndTime(); int result25 = (result24 * 59) + ($endTime == null ? 43 : $endTime.hashCode()); Object $workstationId = getWorkstationId(); int result26 = (result25 * 59) + ($workstationId == null ? 43 : $workstationId.hashCode()); Object $workstationName = getWorkstationName(); int result27 = (result26 * 59) + ($workstationName == null ? 43 : $workstationName.hashCode()); Object $artBagName = getArtBagName(); int result28 = (result27 * 59) + ($artBagName == null ? 43 : $artBagName.hashCode()); Object $prevProcess = getPrevProcess(); int result29 = (result28 * 59) + ($prevProcess == null ? 43 : $prevProcess.hashCode()); Object $nextProcess = getNextProcess(); return (result29 * 59) + ($nextProcess == null ? 43 : $nextProcess.hashCode()); } public String getTenantId() { return this.tenantId; } public String getRemark() { return this.remark; } public Long getPlanId() { return this.planId; } public Long getOrderId() { return this.orderId; } public Integer getSort() { return this.sort; } public String getProcessCode() { return this.processCode; } public String getProcessName() { return this.processName; } public Long getProgramId() { return this.programId; } public String getProgramName() { return this.programName; } public Integer getProcessStatusBefore() { return this.processStatusBefore; } public Integer getProcessStatus() { return this.processStatus; } public Integer getInputNum() { return this.inputNum; } public Integer getQualifyNum() { return this.qualifyNum; } public Integer getScrappedNum() { return this.scrappedNum; } public Integer getStandardTime() { return this.standardTime; } public Date getStartTime() { return this.startTime; } public Date getEndTime() { return this.endTime; } public String getWorkstationId() { return this.workstationId; } public String getWorkstationName() { return this.workstationName; } public Long getArtBagId() { return this.artBagId; } public String getArtBagName() { return this.artBagName; } public Integer getPrepareTime() { return this.prepareTime; } public Integer getDisassemblyTime() { return this.disassemblyTime; } public Integer getTransportTime() { return this.transportTime; } public Integer getWhetherTest() { return this.whetherTest; } public Integer getWhetherParallel() { return this.whetherParallel; } public Long getMainSequenceId() { return this.mainSequenceId; } public OrderProcess getPrevProcess() { return this.prevProcess; } public OrderProcess getNextProcess() { return this.nextProcess; } @ApiModelProperty("末序") public Boolean isLastProcess() { return Boolean.valueOf(this.nextProcess == null); } @ApiModelProperty("首序") public Boolean isFirstProcess() { return Boolean.valueOf(this.prevProcess == null); } @ApiModelProperty("主序") public Boolean isSubProcess() { return Boolean.valueOf(this.mainSequenceId == null); } public int getTotalReportNumber() { return this.qualifyNum.intValue() + this.scrappedNum.intValue(); } }