提交 0578484b 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 74849c3f
package cn.ibizlab.core.task.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
/**
* 实体[任务信息]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "JOBS_INFO",resultMap = "JobsInfoResultMap")
public class JobsInfo extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@DEField(isKeyField=true)
@TableId(value= "id",type=IdType.UUID)
@JSONField(name = "id")
@JsonProperty("id")
private BigInteger id;
/**
* 租户ID
*/
@DEField(name = "tenant_id")
@TableField(value = "tenant_id")
@JSONField(name = "tenant_id")
@JsonProperty("tenant_id")
private String tenantId;
/**
* 服务名
*/
@TableField(value = "app")
@JSONField(name = "app")
@JsonProperty("app")
private String app;
/**
* 任务执行CRON
*/
@TableField(value = "cron")
@JSONField(name = "cron")
@JsonProperty("cron")
private String cron;
/**
* 执行器任务HANDLER
*/
@TableField(value = "handler")
@JSONField(name = "handler")
@JsonProperty("handler")
private String handler;
/**
* 执行器任务参数
*/
@TableField(value = "param")
@JSONField(name = "param")
@JsonProperty("param")
private String param;
/**
* 任务执行超时时间(秒)
*/
@DEField(defaultValue = "0")
@TableField(value = "timeout")
@JSONField(name = "timeout")
@JsonProperty("timeout")
private Integer timeout;
/**
* 失败重试次数
*/
@DEField(defaultValue = "0")
@TableField(value = "fail_retry_count")
@JSONField(name = "fail_retry_count")
@JsonProperty("fail_retry_count")
private Integer failRetryCount;
/**
* 上次调度时间
*/
@DEField(name = "last_time")
@TableField(value = "last_time")
@JSONField(name = "last_time")
@JsonProperty("last_time")
private BigInteger lastTime;
/**
* 下次调度时间
*/
@DEField(name = "next_time")
@TableField(value = "next_time")
@JSONField(name = "next_time")
@JsonProperty("next_time")
private BigInteger nextTime;
/**
* 所有者
*/
@TableField(value = "author")
@JSONField(name = "author")
@JsonProperty("author")
private String author;
/**
* 备注
*/
@TableField(value = "remark")
@JSONField(name = "remark")
@JsonProperty("remark")
private String remark;
/**
* 状态(0、启用 1、已禁用)
*/
@TableField(value = "status")
@JSONField(name = "status")
@JsonProperty("status")
private Integer status;
/**
* 更新时间
*/
@DEField(name = "update_time")
@TableField(value = "update_time")
@JSONField(name = "update_time")
@JsonProperty("update_time")
private BigInteger updateTime;
/**
* 创建时间
*/
@DEField(name = "create_time")
@TableField(value = "create_time")
@JSONField(name = "create_time")
@JsonProperty("create_time")
private BigInteger createTime;
/**
* 设置 [租户ID]
*/
public void setTenantId(String tenantId){
this.tenantId = tenantId ;
this.modify("tenant_id",tenantId);
}
/**
* 设置 [服务名]
*/
public void setApp(String app){
this.app = app ;
this.modify("app",app);
}
/**
* 设置 [任务执行CRON]
*/
public void setCron(String cron){
this.cron = cron ;
this.modify("cron",cron);
}
/**
* 设置 [执行器任务HANDLER]
*/
public void setHandler(String handler){
this.handler = handler ;
this.modify("handler",handler);
}
/**
* 设置 [执行器任务参数]
*/
public void setParam(String param){
this.param = param ;
this.modify("param",param);
}
/**
* 设置 [任务执行超时时间(秒)]
*/
public void setTimeout(Integer timeout){
this.timeout = timeout ;
this.modify("timeout",timeout);
}
/**
* 设置 [失败重试次数]
*/
public void setFailRetryCount(Integer failRetryCount){
this.failRetryCount = failRetryCount ;
this.modify("fail_retry_count",failRetryCount);
}
/**
* 设置 [上次调度时间]
*/
public void setLastTime(BigInteger lastTime){
this.lastTime = lastTime ;
this.modify("last_time",lastTime);
}
/**
* 设置 [下次调度时间]
*/
public void setNextTime(BigInteger nextTime){
this.nextTime = nextTime ;
this.modify("next_time",nextTime);
}
/**
* 设置 [所有者]
*/
public void setAuthor(String author){
this.author = author ;
this.modify("author",author);
}
/**
* 设置 [备注]
*/
public void setRemark(String remark){
this.remark = remark ;
this.modify("remark",remark);
}
/**
* 设置 [状态(0、启用 1、已禁用)]
*/
public void setStatus(Integer status){
this.status = status ;
this.modify("status",status);
}
/**
* 设置 [更新时间]
*/
public void setUpdateTime(BigInteger updateTime){
this.updateTime = updateTime ;
this.modify("update_time",updateTime);
}
/**
* 设置 [创建时间]
*/
public void setCreateTime(BigInteger createTime){
this.createTime = createTime ;
this.modify("create_time",createTime);
}
}
!!!!模版产生代码错误:Syntax error in template "CODETEMPL_zh_CN" in line 132, column 9:
Encountered "</#list>", but was expecting one of:
<ATTEMPT>
<IF>
<ELSE_IF>
<LIST>
<ITEMS>
<SEP>
<FOREACH>
<SWITCH>
<ASSIGN>
<GLOBALASSIGN>
<LOCALASSIGN>
<_INCLUDE>
<IMPORT>
<FUNCTION>
<MACRO>
<TRANSFORM>
<VISIT>
<STOP>
<RETURN>
<CALL>
<SETTING>
<COMPRESS>
<COMMENT>
<TERSE_COMMENT>
<NOPARSE>
<END_IF>
<ELSE>
<BREAK>
<SIMPLE_RETURN>
<HALT>
<FLUSH>
<TRIM>
<LTRIM>
<RTRIM>
<NOTRIM>
<SIMPLE_NESTED>
<NESTED>
<SIMPLE_RECURSE>
<RECURSE>
<FALLBACK>
<ESCAPE>
<NOESCAPE>
<UNIFIED_CALL>
<STATIC_TEXT_WS>
<STATIC_TEXT_NON_WS>
<STATIC_TEXT_FALSE_ALARM>
"${"
"#{"
\ No newline at end of file
package cn.ibizlab.core.task.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
/**
* 实体[任务锁]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "JOBS_LOCK",resultMap = "JobsLockResultMap")
public class JobsLock extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@DEField(isKeyField=true)
@TableId(value= "id",type=IdType.UUID)
@JSONField(name = "id")
@JsonProperty("id")
private BigInteger id;
/**
* 名称
*/
@TableField(value = "name")
@JSONField(name = "name")
@JsonProperty("name")
private String name;
/**
* 持有者
*/
@TableField(value = "owner")
@JSONField(name = "owner")
@JsonProperty("owner")
private String owner;
/**
* 创建时间
*/
@DEField(name = "create_time")
@TableField(value = "create_time")
@JSONField(name = "create_time")
@JsonProperty("create_time")
private BigInteger createTime;
/**
* 设置 [名称]
*/
public void setName(String name){
this.name = name ;
this.modify("name",name);
}
/**
* 设置 [持有者]
*/
public void setOwner(String owner){
this.owner = owner ;
this.modify("owner",owner);
}
/**
* 设置 [创建时间]
*/
public void setCreateTime(BigInteger createTime){
this.createTime = createTime ;
this.modify("create_time",createTime);
}
}
!!!!模版产生代码错误:Syntax error in template "CODETEMPL_zh_CN" in line 132, column 9:
Encountered "</#list>", but was expecting one of:
<ATTEMPT>
<IF>
<ELSE_IF>
<LIST>
<ITEMS>
<SEP>
<FOREACH>
<SWITCH>
<ASSIGN>
<GLOBALASSIGN>
<LOCALASSIGN>
<_INCLUDE>
<IMPORT>
<FUNCTION>
<MACRO>
<TRANSFORM>
<VISIT>
<STOP>
<RETURN>
<CALL>
<SETTING>
<COMPRESS>
<COMMENT>
<TERSE_COMMENT>
<NOPARSE>
<END_IF>
<ELSE>
<BREAK>
<SIMPLE_RETURN>
<HALT>
<FLUSH>
<TRIM>
<LTRIM>
<RTRIM>
<NOTRIM>
<SIMPLE_NESTED>
<NESTED>
<SIMPLE_RECURSE>
<RECURSE>
<FALLBACK>
<ESCAPE>
<NOESCAPE>
<UNIFIED_CALL>
<STATIC_TEXT_WS>
<STATIC_TEXT_NON_WS>
<STATIC_TEXT_FALSE_ALARM>
"${"
"#{"
\ No newline at end of file
package cn.ibizlab.core.task.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
/**
* 实体[任务调度日志]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "JOBS_LOG",resultMap = "JobsLogResultMap")
public class JobsLog extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@DEField(isKeyField=true)
@TableId(value= "id",type=IdType.UUID)
@JSONField(name = "id")
@JsonProperty("id")
private BigInteger id;
/**
* 任务ID
*/
@DEField(name = "job_id")
@TableField(value = "job_id")
@JSONField(name = "job_id")
@JsonProperty("job_id")
private BigInteger jobId;
/**
* 执行地址
*/
@TableField(value = "address")
@JSONField(name = "address")
@JsonProperty("address")
private String address;
/**
* 执行器任务HANDLER
*/
@TableField(value = "handler")
@JSONField(name = "handler")
@JsonProperty("handler")
private String handler;
/**
* 执行器任务参数
*/
@TableField(value = "param")
@JSONField(name = "param")
@JsonProperty("param")
private String param;
/**
* 失败重试次数
*/
@DEField(defaultValue = "0")
@TableField(value = "fail_retry_count")
@JSONField(name = "fail_retry_count")
@JsonProperty("fail_retry_count")
private Integer failRetryCount;
/**
* 触发器调度返回码
*/
@DEField(defaultValue = "0")
@TableField(value = "trigger_code")
@JSONField(name = "trigger_code")
@JsonProperty("trigger_code")
private Integer triggerCode;
/**
* 触发器调度类型
*/
@DEField(name = "trigger_type")
@TableField(value = "trigger_type")
@JSONField(name = "trigger_type")
@JsonProperty("trigger_type")
private String triggerType;
/**
* 触发器调度类型
*/
@DEField(name = "trigger_msg")
@TableField(value = "trigger_msg")
@JSONField(name = "trigger_msg")
@JsonProperty("trigger_msg")
private String triggerMsg;
/**
* 创建时间
*/
@DEField(name = "create_time")
@TableField(value = "create_time")
@JSONField(name = "create_time")
@JsonProperty("create_time")
private BigInteger createTime;
/**
* 设置 [任务ID]
*/
public void setJobId(BigInteger jobId){
this.jobId = jobId ;
this.modify("job_id",jobId);
}
/**
* 设置 [执行地址]
*/
public void setAddress(String address){
this.address = address ;
this.modify("address",address);
}
/**
* 设置 [执行器任务HANDLER]
*/
public void setHandler(String handler){
this.handler = handler ;
this.modify("handler",handler);
}
/**
* 设置 [执行器任务参数]
*/
public void setParam(String param){
this.param = param ;
this.modify("param",param);
}
/**
* 设置 [失败重试次数]
*/
public void setFailRetryCount(Integer failRetryCount){
this.failRetryCount = failRetryCount ;
this.modify("fail_retry_count",failRetryCount);
}
/**
* 设置 [触发器调度返回码]
*/
public void setTriggerCode(Integer triggerCode){
this.triggerCode = triggerCode ;
this.modify("trigger_code",triggerCode);
}
/**
* 设置 [触发器调度类型]
*/
public void setTriggerType(String triggerType){
this.triggerType = triggerType ;
this.modify("trigger_type",triggerType);
}
/**
* 设置 [触发器调度类型]
*/
public void setTriggerMsg(String triggerMsg){
this.triggerMsg = triggerMsg ;
this.modify("trigger_msg",triggerMsg);
}
/**
* 设置 [创建时间]
*/
public void setCreateTime(BigInteger createTime){
this.createTime = createTime ;
this.modify("create_time",createTime);
}
}
!!!!模版产生代码错误:Syntax error in template "CODETEMPL_zh_CN" in line 132, column 9:
Encountered "</#list>", but was expecting one of:
<ATTEMPT>
<IF>
<ELSE_IF>
<LIST>
<ITEMS>
<SEP>
<FOREACH>
<SWITCH>
<ASSIGN>
<GLOBALASSIGN>
<LOCALASSIGN>
<_INCLUDE>
<IMPORT>
<FUNCTION>
<MACRO>
<TRANSFORM>
<VISIT>
<STOP>
<RETURN>
<CALL>
<SETTING>
<COMPRESS>
<COMMENT>
<TERSE_COMMENT>
<NOPARSE>
<END_IF>
<ELSE>
<BREAK>
<SIMPLE_RETURN>
<HALT>
<FLUSH>
<TRIM>
<LTRIM>
<RTRIM>
<NOTRIM>
<SIMPLE_NESTED>
<NESTED>
<SIMPLE_RECURSE>
<RECURSE>
<FALLBACK>
<ESCAPE>
<NOESCAPE>
<UNIFIED_CALL>
<STATIC_TEXT_WS>
<STATIC_TEXT_NON_WS>
<STATIC_TEXT_FALSE_ALARM>
"${"
"#{"
\ No newline at end of file
package cn.ibizlab.core.task.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
/**
* 实体[任务注册信息]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "JOBS_REGISTRY",resultMap = "JobsRegistryResultMap")
public class JobsRegistry extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@DEField(isKeyField=true)
@TableId(value= "id",type=IdType.UUID)
@JSONField(name = "id")
@JsonProperty("id")
private BigInteger id;
/**
* 服务名
*/
@TableField(value = "app")
@JSONField(name = "app")
@JsonProperty("app")
private String app;
/**
* 执行地址
*/
@TableField(value = "address")
@JSONField(name = "address")
@JsonProperty("address")
private String address;
/**
* 状态(0、启用 1、已禁用)
*/
@TableField(value = "status")
@JSONField(name = "status")
@JsonProperty("status")
private Integer status;
/**
* 更新时间
*/
@DEField(name = "update_time")
@TableField(value = "update_time")
@JSONField(name = "update_time")
@JsonProperty("update_time")
private BigInteger updateTime;
/**
* 设置 [服务名]
*/
public void setApp(String app){
this.app = app ;
this.modify("app",app);
}
/**
* 设置 [执行地址]
*/
public void setAddress(String address){
this.address = address ;
this.modify("address",address);
}
/**
* 设置 [状态(0、启用 1、已禁用)]
*/
public void setStatus(Integer status){
this.status = status ;
this.modify("status",status);
}
/**
* 设置 [更新时间]
*/
public void setUpdateTime(BigInteger updateTime){
this.updateTime = updateTime ;
this.modify("update_time",updateTime);
}
}
!!!!模版产生代码错误:Syntax error in template "CODETEMPL_zh_CN" in line 132, column 9:
Encountered "</#list>", but was expecting one of:
<ATTEMPT>
<IF>
<ELSE_IF>
<LIST>
<ITEMS>
<SEP>
<FOREACH>
<SWITCH>
<ASSIGN>
<GLOBALASSIGN>
<LOCALASSIGN>
<_INCLUDE>
<IMPORT>
<FUNCTION>
<MACRO>
<TRANSFORM>
<VISIT>
<STOP>
<RETURN>
<CALL>
<SETTING>
<COMPRESS>
<COMMENT>
<TERSE_COMMENT>
<NOPARSE>
<END_IF>
<ELSE>
<BREAK>
<SIMPLE_RETURN>
<HALT>
<FLUSH>
<TRIM>
<LTRIM>
<RTRIM>
<NOTRIM>
<SIMPLE_NESTED>
<NESTED>
<SIMPLE_RECURSE>
<RECURSE>
<FALLBACK>
<ESCAPE>
<NOESCAPE>
<UNIFIED_CALL>
<STATIC_TEXT_WS>
<STATIC_TEXT_NON_WS>
<STATIC_TEXT_FALSE_ALARM>
"${"
"#{"
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册