Commit 7a3cc8b7 authored by duanruiming's avatar duanruiming

[update] 优化时间格式

parent 887ecb7d
package net.wanji.databus.dao.entity; package net.wanji.databus.dao.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -48,7 +49,9 @@ public class GreenwaveCrossPO { ...@@ -48,7 +49,9 @@ public class GreenwaveCrossPO {
@ApiModelProperty(value = "修改时间",notes = "") @ApiModelProperty(value = "修改时间",notes = "")
private Date gmtModified ; private Date gmtModified ;
@ApiModelProperty(value = "开始时间",notes = "") @ApiModelProperty(value = "开始时间",notes = "")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss", timezone = "GMT+8")
private String startTime; private String startTime;
@ApiModelProperty(value = "结束时间",notes = "") @ApiModelProperty(value = "结束时间",notes = "")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss", timezone = "GMT+8")
private String endTime; private String endTime;
} }
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