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 java.util.List; import com.qianwen.core.mp.base.BaseEntity; import com.qianwen.smartman.modules.coproduction.enums.OrderStatusEnum; @ApiModel(value = "Order对象", description = "计划工单") @TableName("blade_order") /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/entity/Order.class */ public class Order extends BaseEntity { private static final long serialVersionUID = 1; @ApiModelProperty("所属租户") private String tenantId; @ApiModelProperty("工单号") private String orderCode; @ApiModelProperty("派发数量") private Integer assignNum; @ApiModelProperty("报废数量") private Integer scrappedNum; @ApiModelProperty("合格数量") private Integer qualifyNum; @ApiModelProperty("工单状态(1:待加工,2:加工中,3:暂停,4:关闭,5:完工)") private Integer orderStatus; @ApiModelProperty("计划ID") private Long planId; @ApiModelProperty("变更前工单状态") private Integer orderStatusBefore; @TableField(value = "start_time", updateStrategy = FieldStrategy.IGNORED) @ApiModelProperty("开始时间") private Date startTime; @TableField(value = "end_time", updateStrategy = FieldStrategy.IGNORED) @ApiModelProperty("结束时间") private Date endTime; @ApiModelProperty("描述") private String description; @TableField(exist = false) @ApiModelProperty("工单下工序") private List orderProcessList; @TableField(exist = false) @ApiModelProperty("工单删除数量") private Integer delOrderNum; public Order setTenantId(final String tenantId) { this.tenantId = tenantId; return this; } public Order setOrderCode(final String orderCode) { this.orderCode = orderCode; return this; } public Order setAssignNum(final Integer assignNum) { this.assignNum = assignNum; return this; } public Order setScrappedNum(final Integer scrappedNum) { this.scrappedNum = scrappedNum; return this; } public Order setQualifyNum(final Integer qualifyNum) { this.qualifyNum = qualifyNum; return this; } public Order setOrderStatus(final Integer orderStatus) { this.orderStatus = orderStatus; return this; } public Order setPlanId(final Long planId) { this.planId = planId; return this; } public Order setOrderStatusBefore(final Integer orderStatusBefore) { this.orderStatusBefore = orderStatusBefore; return this; } public Order setStartTime(final Date startTime) { this.startTime = startTime; return this; } public Order setEndTime(final Date endTime) { this.endTime = endTime; return this; } public Order setDescription(final String description) { this.description = description; return this; } public Order setOrderProcessList(final List orderProcessList) { this.orderProcessList = orderProcessList; return this; } public Order setDelOrderNum(final Integer delOrderNum) { this.delOrderNum = delOrderNum; return this; } public String toString() { return "Order(tenantId=" + getTenantId() + ", orderCode=" + getOrderCode() + ", assignNum=" + getAssignNum() + ", scrappedNum=" + getScrappedNum() + ", qualifyNum=" + getQualifyNum() + ", orderStatus=" + getOrderStatus() + ", planId=" + getPlanId() + ", orderStatusBefore=" + getOrderStatusBefore() + ", startTime=" + getStartTime() + ", endTime=" + getEndTime() + ", description=" + getDescription() + ", orderProcessList=" + getOrderProcessList() + ", delOrderNum=" + getDelOrderNum() + ")"; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof Order) { Order other = (Order) o; if (other.canEqual(this) && super.equals(o)) { Object this$assignNum = getAssignNum(); Object other$assignNum = other.getAssignNum(); if (this$assignNum == null) { if (other$assignNum != null) { return false; } } else if (!this$assignNum.equals(other$assignNum)) { 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$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$orderStatus = getOrderStatus(); Object other$orderStatus = other.getOrderStatus(); if (this$orderStatus == null) { if (other$orderStatus != null) { return false; } } else if (!this$orderStatus.equals(other$orderStatus)) { return false; } 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$orderStatusBefore = getOrderStatusBefore(); Object other$orderStatusBefore = other.getOrderStatusBefore(); if (this$orderStatusBefore == null) { if (other$orderStatusBefore != null) { return false; } } else if (!this$orderStatusBefore.equals(other$orderStatusBefore)) { return false; } Object this$delOrderNum = getDelOrderNum(); Object other$delOrderNum = other.getDelOrderNum(); if (this$delOrderNum == null) { if (other$delOrderNum != null) { return false; } } else if (!this$delOrderNum.equals(other$delOrderNum)) { 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$orderCode = getOrderCode(); Object other$orderCode = other.getOrderCode(); if (this$orderCode == null) { if (other$orderCode != null) { return false; } } else if (!this$orderCode.equals(other$orderCode)) { 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$description = getDescription(); Object other$description = other.getDescription(); if (this$description == null) { if (other$description != null) { return false; } } else if (!this$description.equals(other$description)) { return false; } Object this$orderProcessList = getOrderProcessList(); Object other$orderProcessList = other.getOrderProcessList(); return this$orderProcessList == null ? other$orderProcessList == null : this$orderProcessList.equals(other$orderProcessList); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof Order; } public int hashCode() { int result = super.hashCode(); Object $assignNum = getAssignNum(); int result2 = (result * 59) + ($assignNum == null ? 43 : $assignNum.hashCode()); Object $scrappedNum = getScrappedNum(); int result3 = (result2 * 59) + ($scrappedNum == null ? 43 : $scrappedNum.hashCode()); Object $qualifyNum = getQualifyNum(); int result4 = (result3 * 59) + ($qualifyNum == null ? 43 : $qualifyNum.hashCode()); Object $orderStatus = getOrderStatus(); int result5 = (result4 * 59) + ($orderStatus == null ? 43 : $orderStatus.hashCode()); Object $planId = getPlanId(); int result6 = (result5 * 59) + ($planId == null ? 43 : $planId.hashCode()); Object $orderStatusBefore = getOrderStatusBefore(); int result7 = (result6 * 59) + ($orderStatusBefore == null ? 43 : $orderStatusBefore.hashCode()); Object $delOrderNum = getDelOrderNum(); int result8 = (result7 * 59) + ($delOrderNum == null ? 43 : $delOrderNum.hashCode()); Object $tenantId = getTenantId(); int result9 = (result8 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode()); Object $orderCode = getOrderCode(); int result10 = (result9 * 59) + ($orderCode == null ? 43 : $orderCode.hashCode()); Object $startTime = getStartTime(); int result11 = (result10 * 59) + ($startTime == null ? 43 : $startTime.hashCode()); Object $endTime = getEndTime(); int result12 = (result11 * 59) + ($endTime == null ? 43 : $endTime.hashCode()); Object $description = getDescription(); int result13 = (result12 * 59) + ($description == null ? 43 : $description.hashCode()); Object $orderProcessList = getOrderProcessList(); return (result13 * 59) + ($orderProcessList == null ? 43 : $orderProcessList.hashCode()); } public Order() { } public String getTenantId() { return this.tenantId; } public String getOrderCode() { return this.orderCode; } public Integer getAssignNum() { return this.assignNum; } public Integer getScrappedNum() { return this.scrappedNum; } public Integer getQualifyNum() { return this.qualifyNum; } public Integer getOrderStatus() { return this.orderStatus; } public Long getPlanId() { return this.planId; } public Integer getOrderStatusBefore() { return this.orderStatusBefore; } public Date getStartTime() { return this.startTime; } public Date getEndTime() { return this.endTime; } public String getDescription() { return this.description; } public Order(Long planId, String orderCode, Integer assignNum) { this.planId = planId; this.orderCode = orderCode; this.assignNum = assignNum; this.orderStatus = OrderStatusEnum.NOT_STARTED.getCode(); } public List getOrderProcessList() { return this.orderProcessList; } public Integer getDelOrderNum() { return this.delOrderNum; } }