/* * Copyright (c) 2018-2025, ztt All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the pig4cloud.com developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: ztt */ package com.chinaztt.mes.production.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.extension.activerecord.Model; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.math.BigDecimal; /** * 模具登记表 * * @author cxf * @date 2021-10-25 13:07:30 */ @Data @TableName("production_mould_register") @EqualsAndHashCode(callSuper = true) @ApiModel(value = "模具登记表") public class MouldRegister extends Model { private static final long serialVersionUID = 1L; public static final int TYPE_OPERATION = 1; public static final int TYPE_STEP = 2; /** * id */ @TableId @ApiModelProperty(value = "id") private Long id; /** * 设备 */ @ApiModelProperty(value = "设备") private String equipmentName; /** * 设备id */ @ApiModelProperty(value = "设备id") private Long equipmentId; /** * 模具 */ @ApiModelProperty(value = "模具编号") private String mouldCode; /** * 模具名称 */ @ApiModelProperty(value = "模具名称") private String mouldName; /** * 工步 */ @ApiModelProperty(value = "工步") private String stepName; /** * 工步id */ @ApiModelProperty(value = "工步id") private Long stepId; /** * 寿命转换系数 */ @ApiModelProperty(value = "寿命转换系数") private BigDecimal lifeConversionFactor; /** * 工作站id */ @ApiModelProperty(value = "工作站id") private Long workstationId; /** * 类型:1工序,2工步 */ @ApiModelProperty(value = "类型:1工序,2工步") private Integer type; /** * 工序id */ @ApiModelProperty(value = "工序id") private Long operationId; /** * 是否有效 */ @ApiModelProperty(value = "是否有效") @TableLogic private Boolean active; @ApiModelProperty(value = "工单id") private Long operationTaskId; @ApiModelProperty(value = "零件号") private String partNo; }