|
|
@@ -0,0 +1,319 @@
|
|
|
+package com.github.zuihou.business.productionResourceCenter.entity;
|
|
|
+
|
|
|
+import cn.afterturn.easypoi.excel.annotation.Excel;
|
|
|
+import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
|
|
|
+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 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-10-13
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@NoArgsConstructor
|
|
|
+@ToString(callSuper = true)
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@Accessors(chain = true)
|
|
|
+@TableName("imcs_tenant_productionresource")
|
|
|
+@ApiModel(value = "Productionresource", description = "生产资源、边缘盒子表")
|
|
|
+@AllArgsConstructor
|
|
|
+public class Productionresource extends Entity<Long> {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 企业ID
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "企业ID")
|
|
|
+ @TableField("tenant_id")
|
|
|
+ @Excel(name = "企业ID")
|
|
|
+ private Long tenantId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 产线ID
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "产线ID")
|
|
|
+ @TableField("productionline_id")
|
|
|
+ @Excel(name = "产线ID")
|
|
|
+ private Long productionlineId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 边缘盒子Id(当类型是生产资源得时候)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "边缘盒子Id(当类型是生产资源得时候)")
|
|
|
+ @TableField("box_id")
|
|
|
+ @Excel(name = "边缘盒子Id(当类型是生产资源得时候)")
|
|
|
+ private Long boxId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 类型(1-边缘盒子2-生产资源)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "类型(1-边缘盒子2-生产资源)")
|
|
|
+ @Length(max = 4, message = "类型(1-边缘盒子2-生产资源)长度不能超过4")
|
|
|
+ @TableField(value = "type", condition = LIKE)
|
|
|
+ @InjectionField(api = DICTIONARY_ITEM_CLASS, method = DICTIONARY_ITEM_METHOD, dictType = DictionaryType.RESOURCES_TYPE)
|
|
|
+ @Excel(name = "类型(1-边缘盒子2-生产资源)")
|
|
|
+ private RemoteData<String, String> type;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分类
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "分类")
|
|
|
+ @Length(max = 4, message = "分类长度不能超过4")
|
|
|
+ @TableField(exist=false)
|
|
|
+ @InjectionField(api = DICTIONARY_ITEM_CLASS, method = DICTIONARY_ITEM_METHOD, dictType = DictionaryType.RESOURCES_CATEGORY)
|
|
|
+ @ExcelEntity(name = "category")
|
|
|
+ @Excel(name = "分类")
|
|
|
+ private RemoteData<String, String> category;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 模块ID
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "模块ID")
|
|
|
+ @Length(max = 32, message = "模块ID长度不能超过32")
|
|
|
+ @TableField(value = "module_id", condition = LIKE)
|
|
|
+ @Excel(name = "模块ID")
|
|
|
+ private String moduleId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 名称
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "名称")
|
|
|
+ @Length(max = 256, message = "名称长度不能超过256")
|
|
|
+ @TableField(value = "name", condition = LIKE)
|
|
|
+ @Excel(name = "名称")
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 编号
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "编号")
|
|
|
+ @Length(max = 32, message = "编号长度不能超过32")
|
|
|
+ @TableField(value = "code", condition = LIKE)
|
|
|
+ @Excel(name = "编号")
|
|
|
+ private String code;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 在线状态(0-离线1-在线2-未激活)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "在线状态(0-离线1-在线2-未激活)")
|
|
|
+ @Length(max = 4, message = "在线状态(0-离线1-在线2-未激活)长度不能超过4")
|
|
|
+ @TableField(value = "online_status", condition = LIKE)
|
|
|
+ @Excel(name = "在线状态(0-离线1-在线2-未激活)")
|
|
|
+ private String onlineStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 状态(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 = 32, message = "资产编号长度不能超过32")
|
|
|
+ @TableField(value = "capital_no", condition = LIKE)
|
|
|
+ @Excel(name = "资产编号")
|
|
|
+ private String capitalNo;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 资产名称
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "资产名称")
|
|
|
+ @Length(max = 256, message = "资产名称长度不能超过256")
|
|
|
+ @TableField(value = "capital_name", condition = LIKE)
|
|
|
+ @Excel(name = "资产名称")
|
|
|
+ private String capitalName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 资产类别
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "资产类别")
|
|
|
+ @Length(max = 10, message = "资产类别长度不能超过10")
|
|
|
+ @TableField(value = "capital_type", condition = LIKE)
|
|
|
+ @Excel(name = "资产名称")
|
|
|
+ private String capitalType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 型号规格
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "型号规格")
|
|
|
+ @Length(max = 256, message = "型号规格长度不能超过256")
|
|
|
+ @TableField(value = "mode_specification", condition = LIKE)
|
|
|
+ @Excel(name = "型号规格")
|
|
|
+ private String modeSpecification;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 资产原值
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "资产原值")
|
|
|
+ @Length(max = 256, message = "资产原值长度不能超过256")
|
|
|
+ @TableField(value = "capital_price", condition = LIKE)
|
|
|
+ @Excel(name = "资产原值")
|
|
|
+ private String capitalPrice;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 出厂年月
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "出厂年月")
|
|
|
+ @Length(max = 256, message = "出厂年月长度不能超过256")
|
|
|
+ @TableField(value = "production_date", condition = LIKE)
|
|
|
+ @Excel(name = "出厂年月")
|
|
|
+ private String productionDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 出厂编号
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "出厂编号")
|
|
|
+ @Length(max = 256, message = "出厂编号长度不能超过256")
|
|
|
+ @TableField(value = "production_no", condition = LIKE)
|
|
|
+ @Excel(name = "出厂编号")
|
|
|
+ private String productionNo;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 制造厂家
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "制造厂家")
|
|
|
+ @Length(max = 256, message = "出厂编号长度不能超过256")
|
|
|
+ @TableField(value = "manufacturer", condition = LIKE)
|
|
|
+ @Excel(name = "制造厂家")
|
|
|
+ private String manufacturer;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 备注
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "备注")
|
|
|
+ @Length(max = 256, message = "备注长度不能超过256")
|
|
|
+ @TableField(value = "remark", condition = LIKE)
|
|
|
+ @Excel(name = "备注")
|
|
|
+ private String remark;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 生产资源类型(1-企业管理中的 2-全部资源管理)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "生产资源类型(1-企业管理中的 2-全部资源管理)")
|
|
|
+ @Length(max = 4, message = "生产资源类型(1-企业管理中的 2-全部资源管理)长度不能超过4")
|
|
|
+ @TableField(value = "resources_type", condition = LIKE)
|
|
|
+ @Excel(name = "生产资源类型(1-企业管理中的 2-全部资源管理)")
|
|
|
+ private String resourcesType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 生产资源种类(1-基础机器类 2-ARV搬运类 3-机器人操作类)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "生产资源种类(1-基础机器类 2-ARV搬运类 3-机器人操作类)")
|
|
|
+ @Length(max = 4, message = "生产资源种类(1-基础机器类 2-ARV搬运类 3-机器人操作类)长度不能超过4")
|
|
|
+ @TableField(value = "resources_category", condition = LIKE)
|
|
|
+ @Excel(name = "生产资源种类(1-基础机器类 2-ARV搬运类 3-机器人操作类)")
|
|
|
+ private String resourcesCategory;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * IP
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "IP")
|
|
|
+ @Length(max = 4, message = "IP 长度不能超过64")
|
|
|
+ @TableField(value = "ip", condition = LIKE)
|
|
|
+ @Excel(name = "IP")
|
|
|
+ private String ip;
|
|
|
+ /**
|
|
|
+ * 端口号
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "端口号")
|
|
|
+ @Length(max = 4, message = "端口号 长度不能超过32")
|
|
|
+ @TableField(value = "port", condition = LIKE)
|
|
|
+ @Excel(name = "端口号")
|
|
|
+ private String port;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "产线名称")
|
|
|
+ @TableField(exist=false)
|
|
|
+ private String lineDesc;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "模型名称")
|
|
|
+ @TableField(exist=false)
|
|
|
+ private String moduleDesc;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "企业名称")
|
|
|
+ @TableField(exist=false)
|
|
|
+ private String tenantDesc;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "字段")
|
|
|
+ @TableField(exist=false)
|
|
|
+ private String field;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "图片")
|
|
|
+ @TableField(exist=false)
|
|
|
+ private String pic;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "采集任务ID")
|
|
|
+ @TableField("GATHER_TASK_ID")
|
|
|
+ private int gatherTaskId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "手爪数量")
|
|
|
+ @TableField("hand_num")
|
|
|
+ private Integer handNum;
|
|
|
+ @ApiModelProperty(value = "工作台数量")
|
|
|
+ @TableField("workbench_num")
|
|
|
+ private Integer workbenchNum;
|
|
|
+ @ApiModelProperty(value = "缓存库数量")
|
|
|
+ @TableField("cache_storge_num")
|
|
|
+ private Integer cacheStorgeNum;
|
|
|
+ @ApiModelProperty(value = "最大移动速度")
|
|
|
+ @TableField("max_speed")
|
|
|
+ private Float maxSpeed;
|
|
|
+ @ApiModelProperty(value = "可放子盘数量")
|
|
|
+ @TableField("tray_num")
|
|
|
+ private Integer trayNum;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @Builder
|
|
|
+ public Productionresource(Long id, LocalDateTime createTime, Long createUser, LocalDateTime updateTime, Long updateUser,
|
|
|
+ Long tenantId, Long productionlineId, Long boxId, RemoteData<String, String> type, RemoteData<String, String> category,
|
|
|
+ String moduleId, String name, String code, String status, String remark, String resourcesType, String onlineStatus, String ip, String port) {
|
|
|
+ this.id = id;
|
|
|
+ this.createTime = createTime;
|
|
|
+ this.createUser = createUser;
|
|
|
+ this.updateTime = updateTime;
|
|
|
+ this.updateUser = updateUser;
|
|
|
+ this.tenantId = tenantId;
|
|
|
+ this.productionlineId = productionlineId;
|
|
|
+ this.boxId = boxId;
|
|
|
+ this.type = type;
|
|
|
+ this.category = category;
|
|
|
+ this.moduleId = moduleId;
|
|
|
+ this.name = name;
|
|
|
+ this.code = code;
|
|
|
+ this.status = status;
|
|
|
+ this.remark = remark;
|
|
|
+ this.resourcesType = resourcesType;
|
|
|
+ this.onlineStatus = onlineStatus;
|
|
|
+ this.ip = ip;
|
|
|
+ this.port = port;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|