|
|
@@ -0,0 +1,169 @@
|
|
|
+package com.github.zuihou.business.productionReadyCenter.entity;
|
|
|
+
|
|
|
+import cn.afterturn.easypoi.excel.annotation.Excel;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.github.zuihou.base.entity.Entity;
|
|
|
+import com.github.zuihou.common.constant.DictionaryType;
|
|
|
+import com.github.zuihou.injection.annonation.InjectionField;
|
|
|
+import com.github.zuihou.model.RemoteData;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.*;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+import org.hibernate.validator.constraints.Length;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotEmpty;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;
|
|
|
+import static com.github.zuihou.common.constant.InjectionFieldConstants.DICTIONARY_ITEM_CLASS;
|
|
|
+import static com.github.zuihou.common.constant.InjectionFieldConstants.DICTIONARY_ITEM_METHOD;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ * 实体类
|
|
|
+ * 工装夹具
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author imcs
|
|
|
+ * @since 2020-11-19
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@NoArgsConstructor
|
|
|
+@ToString(callSuper = true)
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@Accessors(chain = true)
|
|
|
+@TableName("imcs_m_frock_clamp")
|
|
|
+@ApiModel(value = "MToolClamp", description = "工装夹具")
|
|
|
+@AllArgsConstructor
|
|
|
+public class MToolClamp extends Entity<Long> {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 编号
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "物料编号")
|
|
|
+ @Length(max = 256, message = "物料编号长度不能超过256")
|
|
|
+ @TableField(value = "no", condition = LIKE)
|
|
|
+ @Excel(name = "物料编号")
|
|
|
+ private String no;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 模型名称
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "物料名称")
|
|
|
+ @NotEmpty(message = "物料名称不能为空")
|
|
|
+ @Length(max = 128, message = "物料名称长度不能超过128")
|
|
|
+ @TableField(value = "name", condition = LIKE)
|
|
|
+ @Excel(name = "物料名称")
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 状态(1-启用0-停用)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "状态(1-启用0-停用)")
|
|
|
+ @Length(max = 4, message = "状态(1-启用0-停用)长度不能超过4")
|
|
|
+ @TableField(value = "status", condition = LIKE)
|
|
|
+ @Excel(name = "状态(1-启用0-停用)")
|
|
|
+ private String status;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 型号
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "规格型号")
|
|
|
+ @Length(max = 128, message = "规格型号长度不能超过128")
|
|
|
+ @TableField(value = "model", condition = LIKE)
|
|
|
+ @Excel(name = "规格型号")
|
|
|
+ private String model;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "有效期(月)")
|
|
|
+ @TableField(value = "expiry_date", condition = LIKE)
|
|
|
+ private Integer expiryDate;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "周期(月)")
|
|
|
+ @TableField(value = "period", condition = LIKE)
|
|
|
+ private Integer period;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "数量")
|
|
|
+ @TableField(value = "num", condition = LIKE)
|
|
|
+ private Integer num;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分类
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "分类")
|
|
|
+ @Length(max = 50, message = "分类长度不能超过50")
|
|
|
+ @InjectionField(api = DICTIONARY_ITEM_CLASS, method = DICTIONARY_ITEM_METHOD, dictType = DictionaryType.METERIAL_CATEGORY)
|
|
|
+ @TableField(value = "category", condition = LIKE)
|
|
|
+ @Excel(name = "分类")
|
|
|
+ private RemoteData<String, String> category;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 品牌
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "生产分厂/制造商")
|
|
|
+ @Length(max = 255, message = "生产分厂/制造商长度不能超过255")
|
|
|
+ @InjectionField(api = DICTIONARY_ITEM_CLASS, method = DICTIONARY_ITEM_METHOD, dictType = DictionaryType.METERIAL_BRAND)
|
|
|
+ @TableField(value = "brand", condition = LIKE)
|
|
|
+ @Excel(name = "生产分厂/制造商")
|
|
|
+ private RemoteData<String, String> brand;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "图号")
|
|
|
+ @Length(max = 255, message = "图号不能超过255")
|
|
|
+ @TableField(value = "map_no", condition = LIKE)
|
|
|
+ @Excel(name = "图号")
|
|
|
+ private String mapNo;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "入场日期")
|
|
|
+ @Length(max = 255, message = "入场日期不能超过128")
|
|
|
+ @TableField(value = "join_date", condition = LIKE)
|
|
|
+ @Excel(name = "入场日期")
|
|
|
+ private String joinDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 物料类型
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "物料类型")
|
|
|
+ @Length(max = 4, message = "物料类型长度不能超过4")
|
|
|
+ @InjectionField(api = DICTIONARY_ITEM_CLASS, method = DICTIONARY_ITEM_METHOD, dictType = DictionaryType.MATERIAL_TYPE)
|
|
|
+ @TableField(value = "material_type", condition = LIKE)
|
|
|
+ @Excel(name = "物料类型")
|
|
|
+ private RemoteData<String, String> materialType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 同步状态 0:未同步 1:已同步
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "同步状态 0:未同步 1:已同步")
|
|
|
+ @Length(max = 1, message = "同步状态 0:未同步 1:已同步 长度不能超过1")
|
|
|
+ @TableField(value = "syn_flag")
|
|
|
+ private int synFlag;
|
|
|
+
|
|
|
+
|
|
|
+ @Builder
|
|
|
+ public MToolClamp(Long id, LocalDateTime createTime, Long createUser, LocalDateTime updateTime, Long updateUser,
|
|
|
+ String no, String name, String status, String model, RemoteData<String, String> category, String mapNo, int period,int expiryDate,
|
|
|
+ int num, String joinDate, RemoteData<String, String> brand, RemoteData<String, String> materialType,int synFlag) {
|
|
|
+ this.id = id;
|
|
|
+ this.createTime = createTime;
|
|
|
+ this.createUser = createUser;
|
|
|
+ this.updateTime = updateTime;
|
|
|
+ this.updateUser = updateUser;
|
|
|
+ this.no = no;
|
|
|
+ this.name = name;
|
|
|
+ this.status = status;
|
|
|
+ this.model = model;
|
|
|
+ this.category = category;
|
|
|
+ this.brand = brand;
|
|
|
+ this.mapNo = mapNo;
|
|
|
+ this.period = period;
|
|
|
+ this.expiryDate = expiryDate;
|
|
|
+ this.joinDate = joinDate;
|
|
|
+ this.materialType = materialType;
|
|
|
+ this.num = num;
|
|
|
+ this.synFlag = synFlag;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|