Commit d8fa8de7 authored by daniel's avatar daniel

feat(bag): 时间处理

parent 2d01fde0
......@@ -77,7 +77,7 @@ public abstract class JaapRecord<T> extends JRecord<T> {
this.createBy = createBy;
}
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
public Date getCreateDate() {
return createDate;
}
......@@ -95,7 +95,7 @@ public abstract class JaapRecord<T> extends JRecord<T> {
this.updateBy = updateBy;
}
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
public Date getUpdateDate() {
return updateDate;
}
......
......@@ -2,15 +2,13 @@ package com.dlbridge.jadp.plugins.partner.bean;
import com.dlbridge.jadp.common.persistence.JaapRecord;
import com.dlbridge.jadp.common.utils.excel.annotation.ExcelField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.sql.Date;
@EqualsAndHashCode(callSuper = false)
......@@ -36,14 +34,14 @@ public class BagDelivery extends JaapRecord<BagDelivery> {
@ExcelField(title = "姓名")
private String name;
@ApiModelProperty(value = "创建时间", notes = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ExcelField(title = "创建时间")
private Date createDate;
// @ApiModelProperty(value = "创建时间", notes = "创建时间")
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
// @ExcelField(title = "创建时间")
// private Date createDate;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty(value = "更新时间", notes = "更新时间")
private Date updateDate;
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
// @ApiModelProperty(value = "更新时间", notes = "更新时间")
// private Date updateDate;
@ApiModelProperty(value = "参赛号", notes = "参赛号")
@ExcelField(title = "参赛号")
......
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