All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nb6868.onex.job.entity.JobEntity Maven / Gradle / Ivy

There is a newer version: 4.2.3
Show newest version
package com.nb6868.onex.job.entity;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.nb6868.onex.common.pojo.BaseTenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

/**
 * 定时任务
 *
 * @author Charles [email protected]
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sys_job", autoResultMap = true)
@Alias("sys_job")
public class JobEntity extends BaseTenantEntity {

    /**
     * 名称
     */
    private String code;
    /**
     * 状态
     */
    private Integer state;
    /**
     * cron表达式
     */
    private String cron;
    /**
     * 日志类型
     */
    private String logType;
    /**
     * 参数
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private JSONObject params;
    /**
     * 备注
     */
    private String remark;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy