From 99042da077ad98e38340f96cb03ffcf4d249ab87 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 01 十一月 2024 13:49:21 +0800 Subject: [PATCH] 1 --- src/main/java/com/yssh/entity/DistanceSuYuan.java | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yssh/entity/DistanceSuYuan.java b/src/main/java/com/yssh/entity/DistanceSuYuan.java index 9d9a6bb..25c3484 100644 --- a/src/main/java/com/yssh/entity/DistanceSuYuan.java +++ b/src/main/java/com/yssh/entity/DistanceSuYuan.java @@ -11,8 +11,6 @@ import lombok.NoArgsConstructor; import lombok.ToString; -@NoArgsConstructor -@AllArgsConstructor @ToString public class DistanceSuYuan implements Serializable, Comparable<DistanceSuYuan> { private static final long serialVersionUID = -115407591473808022L; @@ -48,6 +46,25 @@ private double lat; + public DistanceSuYuan() { + } + + public DistanceSuYuan(String name, String vocsName, double vocsValue, String id, Integer x, Integer y, double u, double v, String addr, double windSpeed, double windDirection, double lon, double lat) { + this.name = name; + this.vocsName = vocsName; + this.vocsValue = vocsValue; + this.id = id; + this.x = x; + this.y = y; + this.u = u; + this.v = v; + this.addr = addr; + this.windSpeed = windSpeed; + this.windDirection = windDirection; + this.lon = lon; + this.lat = lat; + } + public String getId() { return id; } -- Gitblit v1.9.3