/* * 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.basic.entity; import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.extension.activerecord.Model; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.*; import java.math.BigDecimal; import java.time.LocalDateTime; /** * 零件 * * @author fenglang * @date 2020-08-17 14:37:35 */ @Data @TableName("basic_part") @EqualsAndHashCode(callSuper = true) @ApiModel(value = "零件") @RequiredArgsConstructor @NoArgsConstructor public class Part extends Model { private static final long serialVersionUID = 1L; /** * id */ @TableId @ApiModelProperty(value = "id") @NonNull private Long id; /** * 创建时间 */ @TableField(fill = FieldFill.INSERT) @ApiModelProperty(value = "创建时间") private LocalDateTime createTime; /** * 更新时间 */ @TableField(fill = FieldFill.INSERT_UPDATE) @ApiModelProperty(value = "更新时间") private LocalDateTime updateTime; /** * 创建者 */ @TableField(fill = FieldFill.INSERT) @ApiModelProperty(value = "创建者") private String createUser; /** * 更新者 */ @TableField(fill = FieldFill.INSERT_UPDATE) @ApiModelProperty(value = "更新者") private String updateUser; /** * 零件族Id */ @LinkedField(sourceTable = "basic_part_family", sourceField = "id") @ApiModelProperty(value = "零件族Id") private Long partFamilyId; /** * 零件号 */ @Unique @ApiModelProperty(value = "零件号") @NonNull private String partNo; /** * 名称 */ @ApiModelProperty(value = "名称") private String partName; /** * 名称 */ @ApiModelProperty(value = "检测规则id") private Long testRuleId; /** * 零件类型 */ @ApiModelProperty(value = "零件类型") private String materialType; /** * 单位 */ @ApiModelProperty(value = "单位") private String unit; /** * 单位2 */ @ApiModelProperty(value = "单位2") private String sunit; /** * 描述 */ @ApiModelProperty(value = "描述") private String description; /** * 原先的品类 现在改为 一级分类 */ @ApiModelProperty(value = "一级分类") private String assortment; /** * 原先的种类 现在改为 二级分类 */ @ApiModelProperty(value = "二级分类") private String category; /** * 三級分類 */ @ApiModelProperty(value = "三级分类") private String threeLevelClassification; /** * 规格 */ @ApiModelProperty(value = "规格") private String specs; /** * 图号 */ @ApiModelProperty(value = "图号") private String drawingNumber; /** * EAN编码 */ @ApiModelProperty(value = "EAN编码") private String ean; /** * 电压等级 */ @ApiModelProperty(value = "电压等级") private String voltageLevel; /** * 重量 */ @ApiModelProperty(value = "重量") private BigDecimal weight; /** * 零件族名称 */ @TableField(exist = false) @ApiModelProperty(value = "零件族名称") private String partFamilyName; /** * 是否有效 */ @TableLogic private Boolean active; /** * 是系统号管理 */ @ApiModelProperty(value = "是否用系统编号管理") private Boolean useSystemNo; /** * IFSs是否启用批次管理 默认是 f * f:NOT LOT TRACKING * t:LOT TRACKING */ @ApiModelProperty(value = "IFS启用批次管理") private Boolean lotTrackingIfs; /** * 必填字段 * 版本号 默认是1 */ @ApiModelProperty(value = "版本号") private String engChgLevel; /** * 必填字段 默认是A * 只有 A,K,P * A:计划撤离或批次对批次。最大,最小或倍数数量可覆盖 * K:低于直通计划。无需附加字段 * P:虚拟零件计划。无需附加字段 */ @ApiModelProperty(value = "计划方法") private String planningMethod; /** * 特性1 */ @ApiModelProperty(value = "特性1") private String characteristic1; /** * 特性2 */ @ApiModelProperty(value = "特性2") private String characteristic2; /** * 特性3 */ @ApiModelProperty(value = "特性3") private String characteristic3; /** * 型号 */ @ApiModelProperty(value = "型号") private String partModel; /** * 检验员 */ @ApiModelProperty(value = "检验员") private String examiner; /** * 零件属性 */ @ApiModelProperty(value = "零件属性") private String materialAttribute; /** * 产品名称 */ @ApiModelProperty(value = "产品名称") private String prodName; /** * 节距 */ @ApiModelProperty(value = "节距") private String partPitch; @ApiModelProperty(value = "是否原材料检") private Integer testRuleType; }