1.配网趋势代码提交
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.njcn.influx.pojo.bo;
|
||||
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.njcn.influx.utils.InstantDateSerializer;
|
||||
import lombok.Data;
|
||||
@@ -7,6 +8,7 @@ import org.influxdb.annotation.Column;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.Instant;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
@@ -32,7 +34,10 @@ public class HarmonicHistoryData implements Serializable {
|
||||
private Instant timeId;
|
||||
|
||||
public void setTimeId(Instant timeId) {
|
||||
this.timeId = timeId;
|
||||
this.time = timeId;
|
||||
if(ObjUtil.isNotNull(timeId)){
|
||||
Instant instant = timeId.plusMillis(TimeUnit.HOURS.toMillis(8));
|
||||
this.time = instant;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user