|
|
@@ -0,0 +1,151 @@
|
|
|
+package com.github.zuihou.business.centralToolMagazine.entity;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+
|
|
|
+import cn.afterturn.easypoi.excel.annotation.Excel;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import java.time.LocalDate;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.github.zuihou.base.entity.Entity;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import javax.validation.constraints.Size;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Map;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Builder;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+import lombok.ToString;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+
|
|
|
+
|
|
|
+import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ * 实体类
|
|
|
+ * 刀柄
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author zuihou
|
|
|
+ * @since 2024-01-19
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@NoArgsConstructor
|
|
|
+@ToString(callSuper = true)
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@Accessors(chain = true)
|
|
|
+@TableName("imcs_tool_handle")
|
|
|
+@ApiModel(value = "ToolHandle", description = "刀柄")
|
|
|
+@AllArgsConstructor
|
|
|
+public class ToolHandle extends Entity<Long> {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+ @TableField(exist = false)
|
|
|
+ private Map<String, Object> echoMap = new HashMap<>();
|
|
|
+ /**
|
|
|
+ * 刀柄名称
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "刀柄名称")
|
|
|
+ @Size(max = 255, message = "刀柄名称长度不能超过255")
|
|
|
+ @TableField(value = "handle_name", condition = LIKE)
|
|
|
+ @Excel(name = "刀柄名称")
|
|
|
+ private String handleName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 刀柄型号
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "刀柄编号")
|
|
|
+ @Size(max = 255, message = "刀柄编号长度不能超过255")
|
|
|
+ @TableField(value = "handle_code", condition = LIKE)
|
|
|
+ @Excel(name = "刀柄编号")
|
|
|
+ private String handleCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 刀柄材料
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "刀柄材料")
|
|
|
+ @Size(max = 255, message = "刀柄材料长度不能超过255")
|
|
|
+ @TableField(value = "handle_material", condition = LIKE)
|
|
|
+ @Excel(name = "刀柄材料")
|
|
|
+ private String handleMaterial;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 刀柄长度
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "刀柄长度")
|
|
|
+ @TableField(value = "handle_length")
|
|
|
+ @Excel(name = "刀柄长度")
|
|
|
+ private BigDecimal handleLength;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 刀柄直径
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "刀柄直径")
|
|
|
+ @TableField(value = "handle_diameter")
|
|
|
+ @Excel(name = "刀柄直径")
|
|
|
+ private BigDecimal handleDiameter;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 刀柄重量
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "刀柄重量")
|
|
|
+ @TableField(value = "handle_weight")
|
|
|
+ @Excel(name = "刀柄重量")
|
|
|
+ private BigDecimal handleWeight;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 生产厂家
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "生产厂家")
|
|
|
+ @Size(max = 255, message = "生产厂家长度不能超过255")
|
|
|
+ @TableField(value = "manufacturer", condition = LIKE)
|
|
|
+ @Excel(name = "生产厂家")
|
|
|
+ private String manufacturer;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 制造日期
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "制造日期")
|
|
|
+ @TableField(value = "manufacturing_date")
|
|
|
+ @Excel(name = "制造日期", format = "yyyy-MM-dd", width = 20)
|
|
|
+ private LocalDate manufacturingDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 使用状态
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "使用状态")
|
|
|
+ @Size(max = 50, message = "使用状态长度不能超过50")
|
|
|
+ @TableField(value = "usage_status", condition = LIKE)
|
|
|
+ @Excel(name = "使用状态")
|
|
|
+ private String usageStatus;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "刀具ID")
|
|
|
+ @TableField("tool_id")
|
|
|
+ @Excel(name = "刀具ID")
|
|
|
+ private Long toolId;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @Builder
|
|
|
+ public ToolHandle(Long id, LocalDateTime createTime,
|
|
|
+ String handleName, String handleCode, String handleMaterial, BigDecimal handleLength, BigDecimal handleDiameter,
|
|
|
+ BigDecimal handleWeight, String manufacturer, LocalDate manufacturingDate, String usageStatus, Long createUser) {
|
|
|
+ this.id = id;
|
|
|
+ this.createTime = createTime;
|
|
|
+ this.handleName = handleName;
|
|
|
+ this.handleCode = handleCode;
|
|
|
+ this.handleMaterial = handleMaterial;
|
|
|
+ this.handleLength = handleLength;
|
|
|
+ this.handleDiameter = handleDiameter;
|
|
|
+ this.handleWeight = handleWeight;
|
|
|
+ this.manufacturer = manufacturer;
|
|
|
+ this.manufacturingDate = manufacturingDate;
|
|
|
+ this.usageStatus = usageStatus;
|
|
|
+ this.createUser = createUser;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|