1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- /**
- * Copyright (c) 2016-2019 人人开源 All rights reserved.
- *
- * https://www.renren.io
- *
- * 版权所有,侵权必究!
- */
- package io.renren.modules.job.entity;
- import com.baomidou.mybatisplus.annotation.TableId;
- import com.baomidou.mybatisplus.annotation.TableName;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import lombok.Data;
- import javax.validation.constraints.NotBlank;
- import java.io.Serializable;
- import java.util.Date;
- /**
- * 定时任务
- *
- * @author Mark sunlightcs@gmail.com
- */
- @Data
- @TableName("schedule_job")
- public class ScheduleJobEntity implements Serializable {
- private static final long serialVersionUID = 1L;
-
- /**
- * 任务调度参数key
- */
- public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";
-
- /**
- * 任务id
- */
- @TableId
- private Long jobId;
- /**
- * spring bean名称
- */
- @NotBlank(message="bean名称不能为空")
- private String beanName;
-
- /**
- * 参数
- */
- private String params;
-
- /**
- * cron表达式
- */
- @NotBlank(message="cron表达式不能为空")
- private String cronExpression;
- /**
- * 任务状态
- */
- private Integer status;
- /**
- * 备注
- */
- private String remark;
- /**
- * 创建时间
- */
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
- private Date createTime;
- }
|