* 设备表
@@ -35,7 +48,7 @@
/**
* 主键
*/
- @TableId(value = "id", type = IdType.AUTO)
+ @TableId(value = "id", type = IdType.ID_WORKER)
private Long id;
/**
@@ -112,6 +125,11 @@
@TableField("install_date")
private Date installDate;
/**
+ * 安装时间字符串
+ */
+ @TableField(exist = false)
+ private String installDateFmt;
+ /**
* 记录更新时间
*/
@JSONField(serializeUsing = DateDeserializer.class)
@@ -127,6 +145,65 @@
return this.id;
}
+ public static final Map
* 设备表
@@ -35,7 +48,7 @@
/**
* 主键
*/
- @TableId(value = "id", type = IdType.AUTO)
+ @TableId(value = "id", type = IdType.ID_WORKER)
private Long id;
/**
@@ -112,6 +125,11 @@
@TableField("install_date")
private Date installDate;
/**
+ * 安装时间字符串
+ */
+ @TableField(exist = false)
+ private String installDateFmt;
+ /**
* 记录更新时间
*/
@JSONField(serializeUsing = DateDeserializer.class)
@@ -127,6 +145,65 @@
return this.id;
}
+ public static final Map
* 设备表
@@ -35,7 +48,7 @@
/**
* 主键
*/
- @TableId(value = "id", type = IdType.AUTO)
+ @TableId(value = "id", type = IdType.ID_WORKER)
private Long id;
/**
@@ -112,6 +125,11 @@
@TableField("install_date")
private Date installDate;
/**
+ * 安装时间字符串
+ */
+ @TableField(exist = false)
+ private String installDateFmt;
+ /**
* 记录更新时间
*/
@JSONField(serializeUsing = DateDeserializer.class)
@@ -127,6 +145,65 @@
return this.id;
}
+ public static final Map
* 设备表
@@ -35,7 +48,7 @@
/**
* 主键
*/
- @TableId(value = "id", type = IdType.AUTO)
+ @TableId(value = "id", type = IdType.ID_WORKER)
private Long id;
/**
@@ -112,6 +125,11 @@
@TableField("install_date")
private Date installDate;
/**
+ * 安装时间字符串
+ */
+ @TableField(exist = false)
+ private String installDateFmt;
+ /**
* 记录更新时间
*/
@JSONField(serializeUsing = DateDeserializer.class)
@@ -127,6 +145,65 @@
return this.id;
}
+ public static final Map
* 设备表
@@ -35,7 +48,7 @@
/**
* 主键
*/
- @TableId(value = "id", type = IdType.AUTO)
+ @TableId(value = "id", type = IdType.ID_WORKER)
private Long id;
/**
@@ -112,6 +125,11 @@
@TableField("install_date")
private Date installDate;
/**
+ * 安装时间字符串
+ */
+ @TableField(exist = false)
+ private String installDateFmt;
+ /**
* 记录更新时间
*/
@JSONField(serializeUsing = DateDeserializer.class)
@@ -127,6 +145,65 @@
return this.id;
}
+ public static final Map