格式化119时间

wushunjie
吴顺杰 10 months ago
parent 70e3f26704
commit 9b9dad6963

@ -1,9 +1,11 @@
package com.yingji.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
@ -21,97 +23,132 @@ import java.util.Date;
public class Fire implements Serializable {
private static final long serialVersionUID = -96682169109217319L;
/**
* id
*/
@ApiModelProperty(value = "主键id")
private String id;
/**
*
*/
@ApiModelProperty(value = "行政区划")
private String xzqh;
/**
*
*/
@ApiModelProperty(value = "案件编号")
private String ajbh;
/**
*
*/
@ApiModelProperty(value = "案件描述")
private String ajms;
/**
*
*/
@ApiModelProperty(value = "归队时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date gdsj;
private String jjyxm;
/**
*
*/
@ApiModelProperty(value = "时间戳")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date sjc;
/**
*
*/
@ApiModelProperty(value = "纬度")
private String wd;
/**
*
*/
@ApiModelProperty(value = "经度")
private String jd;
/**
*
*/
@ApiModelProperty(value = "备注信息")
private String bcxx;
/**
*
*/
@ApiModelProperty(value = "结束时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date jssj;
/**
*
*/
@ApiModelProperty(value = "案发地址")
private String afdz;
/**
*
*/
@ApiModelProperty(value = "出动时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date cdsj;
/**
*
*/
@ApiModelProperty(value = "立案方式代码")
private String lafsdm;
/**
* topic
*/
@ApiModelProperty(value = "topic")
private String topic;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date xdsj;
/**
*
*/
@ApiModelProperty(value = "立案时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date lasj;
/**
*
*/
@ApiModelProperty(value = "行政区划名称")
private String xzqhmc;
/**
*
*/
@ApiModelProperty(value = "到达现场时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date ddxcsj;
/**
*
*/
@ApiModelProperty(value = "创建时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
}

@ -144,4 +144,11 @@ public class EventsResponse implements Serializable {
@ApiModelProperty(value = "事件编码 主键")
private String eventId;
/**
*
*/
@ApiModelProperty(value = "事故类型编码")
@Alias("AccidentType")
private String accidentType;
}

Loading…
Cancel
Save