|
@@ -1,5 +1,6 @@
|
|
|
package com.github.zuihou.business.productionresource.entity;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
import com.github.zuihou.base.entity.Entity;
|
|
|
import com.github.zuihou.base.entity.SuperEntity;
|
|
@@ -21,19 +22,19 @@ import javax.validation.constraints.NotNull;
|
|
|
@ApiModel(value = "EquStatus", description = "设备-状态")
|
|
|
@ToString(callSuper = true) @EqualsAndHashCode(callSuper = true)
|
|
|
@Data @Builder @NoArgsConstructor @AllArgsConstructor @Accessors(chain = true)
|
|
|
-public class EquStatus extends SuperEntity<Long>
|
|
|
+public class EquStatus extends SuperEntity<String>
|
|
|
{
|
|
|
/**
|
|
|
* 设备ID
|
|
|
*/
|
|
|
@ApiModelProperty(value = "设备ID")
|
|
|
@NotNull(message = "缺失equId参数")
|
|
|
- private Long equId;
|
|
|
+ private String equId;
|
|
|
|
|
|
/**
|
|
|
- * 状态
|
|
|
+ * 状态(0 - 离线,1 - 在线,2 - 异常,3 - 缺料)
|
|
|
*/
|
|
|
- @ApiModelProperty(value = "状态")
|
|
|
+ @ApiModelProperty(value = "状态(0 - 离线,1 - 在线,2 - 异常,3 - 缺料)")
|
|
|
@NotNull(message = "缺失status参数")
|
|
|
private Integer status;
|
|
|
|
|
@@ -45,4 +46,12 @@ public class EquStatus extends SuperEntity<Long>
|
|
|
private String message;
|
|
|
|
|
|
// TODO 补充分页查询映射属性列表
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String code;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String plcName;
|
|
|
}
|