From b2b9e959447664bceb4381630358230a2ee5a1ab Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 30 九月 2024 10:46:19 +0800 Subject: [PATCH] 1 --- src/main/java/com/se/simu/domain/po/DataPo.java | 55 +++++++++++++++++-------------------------------------- 1 files changed, 17 insertions(+), 38 deletions(-) diff --git a/src/main/java/com/se/simu/domain/po/DataPo.java b/src/main/java/com/se/simu/domain/po/DataPo.java index 40d82d4..fd04549 100644 --- a/src/main/java/com/se/simu/domain/po/DataPo.java +++ b/src/main/java/com/se/simu/domain/po/DataPo.java @@ -1,6 +1,10 @@ package com.se.simu.domain.po; +import com.alibaba.fastjson.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; + +import java.util.Date; /** * 浠跨湡鏁版嵁瀹炰綋绫� @@ -20,6 +24,11 @@ @ApiModelProperty("杈撳嚭璺緞") private String outPath; + + @ApiModelProperty("寮�濮嬫椂闂�") + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + private Date startTime; @ApiModelProperty("鏈�灏廥") private Double minx; @@ -82,15 +91,6 @@ return minx + "," + miny + "," + maxx + "," + maxy; } - public DataPo(String name, String inPath, String outPath, Double total, Integer duration, Integer isFlood) { - this.name = name; - this.inPath = inPath; - this.outPath = outPath; - this.total = total; - this.duration = duration; - this.isFlood = isFlood; - } - public DataPo(String name, String inPath, String outPath, Double minx, Double miny, Double maxx, Double maxy, Double total, Integer duration) { this.name = name; this.inPath = inPath; @@ -101,35 +101,6 @@ this.maxy = maxy; this.total = total; this.duration = duration; - } - - public boolean setExtent(Double minx, Double miny, Double maxx, Double maxy) { - this.minx = minx; - this.miny = miny; - this.maxx = maxx; - this.maxy = maxy; - - return true; - } - - public boolean setFlood(Integer floodStart, Integer floodEnd, Double floodHeight, String floodType) { - this.isFlood = 1; - this.floodStart = floodStart; - this.floodEnd = floodEnd; - this.floodHeight = floodHeight; - this.floodType = floodType; - - return true; - } - - public boolean setFloodExtent(Double floodMinx, Double floodMiny, Double floodMaxx, Double floodMaxy) { - this.isFlood = 1; - this.floodMinx = floodMinx; - this.floodMiny = floodMiny; - this.floodMaxx = floodMaxx; - this.floodMaxy = floodMaxy; - - return true; } public Integer getPid() { @@ -164,6 +135,14 @@ this.outPath = outPath; } + public Date getStartTime() { + return startTime; + } + + public void setStartTime(Date startTime) { + this.startTime = startTime; + } + public Double getMinx() { return minx; } -- Gitblit v1.9.3