|
|
@@ -0,0 +1,99 @@
|
|
|
+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.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+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 imcs_
|
|
|
+ * @since 2022-01-23
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@NoArgsConstructor
|
|
|
+@ToString(callSuper = true)
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@Accessors(chain = true)
|
|
|
+@TableName("imcs_b_bom_procedure_tool")
|
|
|
+@ApiModel(value = "BBomProcedureTool", description = "工序刀具")
|
|
|
+@AllArgsConstructor
|
|
|
+public class BBomProcedureTool extends Entity<Long> {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 工序ID
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "工序ID")
|
|
|
+ @TableField("procedure_id")
|
|
|
+ @Excel(name = "工序ID")
|
|
|
+ private Long procedureId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 刀具名称
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "刀具名称")
|
|
|
+ @Length(max = 256, message = "刀具名称长度不能超过256")
|
|
|
+ @TableField(value = "tool_name", condition = LIKE)
|
|
|
+ @Excel(name = "刀具名称")
|
|
|
+ private String toolName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 数量
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "数量")
|
|
|
+ @TableField("count")
|
|
|
+ @Excel(name = "数量")
|
|
|
+ private Integer count;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 文件路径
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "文件路径")
|
|
|
+ @Length(max = 256, message = "文件路径长度不能超过256")
|
|
|
+ @TableField(value = "use_time", condition = LIKE)
|
|
|
+ @Excel(name = "文件路径")
|
|
|
+ private String useTime;
|
|
|
+
|
|
|
+
|
|
|
+ @Builder
|
|
|
+ public BBomProcedureTool(Long id, LocalDateTime createTime, Long createUser, LocalDateTime updateTime, Long updateUser,
|
|
|
+ Long procedureId, String toolName, Integer count, String useTime) {
|
|
|
+ this.id = id;
|
|
|
+ this.createTime = createTime;
|
|
|
+ this.createUser = createUser;
|
|
|
+ this.updateTime = updateTime;
|
|
|
+ this.updateUser = updateUser;
|
|
|
+ this.procedureId = procedureId;
|
|
|
+ this.toolName = toolName;
|
|
|
+ this.count = count;
|
|
|
+ this.useTime = useTime;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|