ScheduleJobLogEntity.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /**
  2. * Copyright (c) 2016-2019 人人开源 All rights reserved.
  3. *
  4. * https://www.renren.io
  5. *
  6. * 版权所有,侵权必究!
  7. */
  8. package io.renren.modules.job.entity;
  9. import com.baomidou.mybatisplus.annotation.TableId;
  10. import com.baomidou.mybatisplus.annotation.TableName;
  11. import com.fasterxml.jackson.annotation.JsonFormat;
  12. import lombok.Data;
  13. import java.io.Serializable;
  14. import java.util.Date;
  15. /**
  16. * 定时任务日志
  17. *
  18. * @author Mark sunlightcs@gmail.com
  19. */
  20. @Data
  21. @TableName("schedule_job_log")
  22. public class ScheduleJobLogEntity implements Serializable {
  23. private static final long serialVersionUID = 1L;
  24. /**
  25. * 日志id
  26. */
  27. @TableId
  28. private Long logId;
  29. /**
  30. * 任务id
  31. */
  32. private Long jobId;
  33. /**
  34. * spring bean名称
  35. */
  36. private String beanName;
  37. /**
  38. * 参数
  39. */
  40. private String params;
  41. /**
  42. * 任务状态 0:成功 1:失败
  43. */
  44. private Integer status;
  45. /**
  46. * 失败信息
  47. */
  48. private String error;
  49. /**
  50. * 耗时(单位:毫秒)
  51. */
  52. private Integer times;
  53. /**
  54. * 创建时间
  55. */
  56. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  57. private Date createTime;
  58. }