diff --git a/src/main/java/com/qgs/dc/influx/param/InsertParam.java b/src/main/java/com/qgs/dc/influx/param/InsertParam.java index 58d462d..06696d7 100644 --- a/src/main/java/com/qgs/dc/influx/param/InsertParam.java +++ b/src/main/java/com/qgs/dc/influx/param/InsertParam.java @@ -1,5 +1,6 @@ package com.qgs.dc.influx.param; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.qgs.dc.influx.template.Event; import lombok.Data; @@ -11,6 +12,7 @@ import java.util.List; * @DATE: 2022/10/13 16:10 */ @Data +@JsonPropertyOrder(value = {"list","measurement"}) public class InsertParam { List list; String measurement; diff --git a/src/main/java/com/qgs/dc/influx/template/Event.java b/src/main/java/com/qgs/dc/influx/template/Event.java index 822df54..4a472c4 100644 --- a/src/main/java/com/qgs/dc/influx/template/Event.java +++ b/src/main/java/com/qgs/dc/influx/template/Event.java @@ -1,5 +1,6 @@ package com.qgs.dc.influx.template; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.influxdb.annotations.Column; import com.influxdb.annotations.Measurement; import lombok.Data; @@ -12,6 +13,7 @@ import java.time.Instant; * @DATE: 2022/6/25 11:13 */ @Data +@JsonPropertyOrder(value = {"time","transationId","argName","argValue"}) public class Event { private Instant time;