|
|
@@ -0,0 +1,157 @@
|
|
|
+package com.github.zuihou.business.productionReadyCenter.entity;
|
|
|
+
|
|
|
+import cn.afterturn.easypoi.excel.annotation.Excel;
|
|
|
+import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.github.zuihou.base.entity.Entity;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import javax.validation.constraints.NotEmpty;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+import org.hibernate.validator.constraints.Length;
|
|
|
+import org.hibernate.validator.constraints.Range;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Builder;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+import lombok.ToString;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+import com.github.zuihou.common.constant.DictionaryType;
|
|
|
+import static com.github.zuihou.utils.DateUtils.DEFAULT_DATE_TIME_FORMAT;
|
|
|
+
|
|
|
+import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ * 实体类
|
|
|
+ *
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author zuihou
|
|
|
+ * @since 2021-12-26
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@NoArgsConstructor
|
|
|
+@ToString(callSuper = true)
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@Accessors(chain = true)
|
|
|
+@TableName("imcs_cutting_tool")
|
|
|
+@ApiModel(value = "CuttingTool", description = "")
|
|
|
+@AllArgsConstructor
|
|
|
+public class CuttingTool extends Entity<Long> {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 刀具名称
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "刀具名称")
|
|
|
+ @NotEmpty(message = "刀具名称不能为空")
|
|
|
+ @Length(max = 128, message = "刀具名称长度不能超过128")
|
|
|
+ @TableField(value = "cutting_tool_name", condition = LIKE)
|
|
|
+ @Excel(name = "刀具名称")
|
|
|
+ private String cuttingToolName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 停止位
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "停止位")
|
|
|
+ @Length(max = 32, message = "停止位长度不能超过32")
|
|
|
+ @TableField(value = "stop_bit", condition = LIKE)
|
|
|
+ @Excel(name = "停止位")
|
|
|
+ private String stopBit;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 刀具类型
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "刀具类型")
|
|
|
+ @Length(max = 4, message = "刀具类型长度不能超过4")
|
|
|
+ @TableField(value = "cutting_tool_type", condition = LIKE)
|
|
|
+ @Excel(name = "刀具类型")
|
|
|
+ private String cuttingToolType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 外部名称
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "外部名称")
|
|
|
+ @Length(max = 128, message = "外部名称长度不能超过128")
|
|
|
+ @TableField(value = "source_name", condition = LIKE)
|
|
|
+ @Excel(name = "外部名称")
|
|
|
+ private String sourceName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 品牌
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "品牌")
|
|
|
+ @Length(max = 128, message = "品牌长度不能超过128")
|
|
|
+ @TableField(value = "brand", condition = LIKE)
|
|
|
+ @Excel(name = "品牌")
|
|
|
+ private String brand;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 来源
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "来源")
|
|
|
+ @Length(max = 255, message = "来源长度不能超过255")
|
|
|
+ @TableField(value = "source", condition = LIKE)
|
|
|
+ @Excel(name = "来源")
|
|
|
+ private String source;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 所在机床
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "所在机床")
|
|
|
+ @Length(max = 128, message = "所在机床长度不能超过128")
|
|
|
+ @TableField(value = "machine", condition = LIKE)
|
|
|
+ @Excel(name = "所在机床")
|
|
|
+ private String machine;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "")
|
|
|
+ @TableField("num")
|
|
|
+ @Excel(name = "")
|
|
|
+ private Integer num;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 规格
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "规格")
|
|
|
+ @Length(max = 255, message = "规格长度不能超过255")
|
|
|
+ @TableField(value = "specifications", condition = LIKE)
|
|
|
+ @Excel(name = "规格")
|
|
|
+ private String specifications;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 状态 1-启用 0-禁用
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "状态 1-启用 0-禁用")
|
|
|
+ @Length(max = 1, message = "状态 1-启用 0-禁用长度不能超过1")
|
|
|
+ @TableField(value = "status", condition = LIKE)
|
|
|
+ @Excel(name = "状态 1-启用 0-禁用")
|
|
|
+ private String status;
|
|
|
+
|
|
|
+
|
|
|
+ @Builder
|
|
|
+ public CuttingTool(Long id, Long createUser, LocalDateTime createTime, Long updateUser, LocalDateTime updateTime,
|
|
|
+ String cuttingToolName, String stopBit, String cuttingToolType, String sourceName, String brand,
|
|
|
+ String source, String machine, Integer num, String specifications, String status) {
|
|
|
+ this.id = id;
|
|
|
+ this.createUser = createUser;
|
|
|
+ this.createTime = createTime;
|
|
|
+ this.updateUser = updateUser;
|
|
|
+ this.updateTime = updateTime;
|
|
|
+ this.cuttingToolName = cuttingToolName;
|
|
|
+ this.stopBit = stopBit;
|
|
|
+ this.cuttingToolType = cuttingToolType;
|
|
|
+ this.sourceName = sourceName;
|
|
|
+ this.brand = brand;
|
|
|
+ this.source = source;
|
|
|
+ this.machine = machine;
|
|
|
+ this.num = num;
|
|
|
+ this.specifications = specifications;
|
|
|
+ this.status = status;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|