From caf2599a9869244ded811018811c37a2aabac3fc Mon Sep 17 00:00:00 2001 From: vince <757871790@qq.com> Date: 星期三, 08 一月 2025 11:29:05 +0800 Subject: [PATCH] 优化测温协议 --- src/main/java/com/fzzy/api/entity/Api1105.java | 44 ++++++++++++++++++++++++++++++++------------ 1 files changed, 32 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/fzzy/api/entity/Api1105.java b/src/main/java/com/fzzy/api/entity/Api1105.java index 06c73aa..4856e46 100644 --- a/src/main/java/com/fzzy/api/entity/Api1105.java +++ b/src/main/java/com/fzzy/api/entity/Api1105.java @@ -3,9 +3,8 @@ import com.alibaba.fastjson.annotation.JSONField; import com.bstek.dorado.annotation.PropertyDef; -import lombok.Data; -import lombok.EqualsAndHashCode; - +import lombok.Getter; +import lombok.Setter; import javax.persistence.Column; import javax.persistence.Entity; @@ -18,17 +17,15 @@ /** * 鎺ュ彛琛�-璐т綅淇℃伅 */ -@Data +@Getter +@Setter @Entity @Table(name = "API_1105") -@EqualsAndHashCode(callSuper=false) -public class Api1105 extends ApiParent implements Serializable { +public class Api1105 implements Serializable { - /** - * - */ private static final long serialVersionUID = -6967028172020353365L; + /*----------鍥芥爣瀛楁----------*/ @Id @PropertyDef(label = "璐т綅浠g爜" ) @Column(name = "hwdm", length = 30) @@ -44,12 +41,12 @@ @PropertyDef(label = "璐т綅鍚敤鏃ユ湡" ) @JSONField(format = "yyyy-MM-dd") - @Column(name = "hwqyrq", nullable = false) + @Column(name = "hwqyrq") private Date hwqyrq; @PropertyDef(label = "璐т綅瀹归噺" ) @Column(name = "hwrl", precision = 20, scale = 6) - private double hwrl; + private Double hwrl; @PropertyDef(label = "淇濈鍗曚綅" ) @Column(name = "bgdw", length = 128) @@ -65,7 +62,30 @@ @PropertyDef(label = "鏈�鍚庢洿鏂版椂闂�" ) @JSONField(format = "yyyy-MM-dd HH:mm:ss") - @Column(name = "zhgxsj", nullable = false) + @Column(name = "zhgxsj") private Date zhgxsj; + + /*----------涓婃捣甯傚钩鍙拌鑼冨瓧娈�----------*/ + @PropertyDef(label = "鏍囪浣�") + @Column(name = "bjw", length = 40) + private String bjw; + + + /*----------鎺ュ彛绯荤粺鑷畾涔夊瓧娈�----------*/ + @JSONField(serialize = false) + @PropertyDef(label = "涓氬姟id") + @Column(name = "bizId", length = 40) + private String bizId; + + @JSONField(serialize = false) + @PropertyDef(label = "搴撳尯浠g爜") + @Column(name = "kqdm", length = 21) + private String kqdm; + + @JSONField(serialize = false) + @PropertyDef(label = "鍚屾鏃堕棿", description = "浠庣伯搴撶郴缁熷悓姝ュ埌鎺ュ彛绠$悊涓績鐨勬椂闂�") + @Column(name = "syncTime") + private Date syncTime; + } -- Gitblit v1.9.3