Commit be1cfdc0 authored by duanruiming's avatar duanruiming

[update] 微观大数据平台-日期字段优化

parent 077be371
......@@ -1715,7 +1715,7 @@ public class TrendServiceImpl implements TrendService {
}
hotspotCrossVO.setDetailList(dirDetails);
Date currentDate = new Date(entry.getKey() * 1000L);
hotspotCrossVO.setTimeStamp(org.apache.commons.lang3.time.DateUtils.addHours(currentDate, 8));
hotspotCrossVO.setTimeStamp(currentDate);
// 相差八小时
hotspotCrossVO.setHourMinute(DateUtils.format(currentDate, "HH:mm"));
hotspotCrossVO.setCrossId(abnormalCrossListVO.getId());
......
package net.wanji.opt.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;
......@@ -16,6 +17,7 @@ import java.util.List;
@ApiModel(value = "重点路口监测实体", description = "重点路口监测实体")
public class HotspotCrossVO {
private String crossId;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date timeStamp;
private String hourMinute;
private List<DirDetail> detailList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment