Commit 3bd38d56 by zhouhaibao

[+]增加时间注解

1 parent 554f2b9e
package cn.com.glsx.process.job.xxljob.core;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
public class XxlJobInfo {
......@@ -8,8 +11,13 @@ public class XxlJobInfo {
private int jobGroup; // 执行器主键ID
private String jobDesc;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08:00")
private Date addTime;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08:00")
private Date updateTime;
private String author; // 负责人
......@@ -29,6 +37,9 @@ public class XxlJobInfo {
private String glueType; // GLUE类型 #com.xxl.job.core.glue.GlueTypeEnum
private String glueSource; // GLUE源代码
private String glueRemark; // GLUE备注
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08:00")
private Date glueUpdatetime; // GLUE更新时间
private String childJobId; // 子任务ID,多个逗号分隔
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!