Commit 66968977 by fz

1.日志创建时间由参数传递

1 parent b1c721bc
package com.glsx.smart.pojo.request;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Data
public class SmartCarKeyShareLogRequest {
......@@ -13,5 +17,10 @@ public class SmartCarKeyShareLogRequest {
private String shareKeyId;
//上报时间 yyyy-MM-dd
private String logDate;
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@JsonFormat(
pattern = "yyyy-MM-dd HH:mm:ss",
timezone = "GMT+8"
)
private Date logDate;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!