QuartzJob.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package com.sky.ioc.entity;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import lombok.Data;
  5. import org.springframework.format.annotation.DateTimeFormat;
  6. import java.io.Serializable;
  7. import java.util.Date;
  8. @Data
  9. @TableName("sys_quartz_job")
  10. public class QuartzJob implements Serializable {
  11. private static final long serialVersionUID = 1L;
  12. /**
  13. * id
  14. */
  15. @TableId(type = IdType.AUTO)
  16. private Integer id;
  17. /**
  18. * 创建人
  19. */
  20. private String createBy;
  21. /**任务分组
  22. * 1 系统
  23. * 2 默认
  24. * */
  25. private Integer groupType;
  26. /**任务名*/
  27. private String name;
  28. /**
  29. * 修改人
  30. */
  31. private String updateBy;
  32. /**
  33. * 任务类名
  34. */
  35. private String jobClassName;
  36. /**
  37. * cron表达式
  38. */
  39. private String cronExpression;
  40. /**
  41. * 参数
  42. */
  43. private String parameter;
  44. /**
  45. * 描述
  46. */
  47. private String description;
  48. /**
  49. * 状态 0正常 -1停止
  50. */
  51. private Integer status;
  52. /**
  53. * 删除状态
  54. */
  55. @TableLogic
  56. private Integer delFlag;
  57. /**
  58. * 创建时间
  59. */
  60. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  61. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  62. @TableField(fill = FieldFill.INSERT)
  63. private Date createTime;
  64. /**
  65. * 修改时间
  66. */
  67. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  68. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  69. @TableField(fill = FieldFill.INSERT_UPDATE)
  70. private Date updateTime;
  71. }