定时任务

dashboard
yun-zuoyi
yunhao.wang 6 years ago
parent f2d7279e94
commit 08d8281fd5

@ -1,4 +1,4 @@
package cn.estsh.i3plus.pojo.platform.bean; package cn.estsh.i3plus.pojo.platform.platbean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@ -26,46 +26,41 @@ import javax.persistence.Table;
@DynamicInsert @DynamicInsert
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Table(name="SYS_TASK_TIME_RECORDING") @Table(name="SYS_LOG_TASK_TIME")
@Api(value="定时任务执行记录",description = "定时任务执行记录") @Api(value="定时任务执行日志",description = "定时任务执行记录")
public class SysTaskTimeRecording extends BaseBean { public class SysLogTaskTime extends BaseBean {
@Column(name="NAME") @Column(name="NAME")
@ApiParam(value ="任务名称") @ApiParam(value ="任务名称")
private String name; private String name;
@Column(name="GROUP_NAME")
@ApiParam(value ="任务组名称")
private String groupName;
@Column(name="TIME_TASK_ID") @Column(name="TIME_TASK_ID")
@ApiParam(value ="任务编号" , example = "-1") @ApiParam(value ="任务编号" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long timeTaskId; private Long timeTaskId;
@Column(name="TIME_ID") @Column(name="TIME_EXPRESSION_NAME_Rdd")
@ApiParam(value ="时间表达式ID" , example = "-1") @ApiParam(value ="时间表达式名称")
@JsonSerialize(using = ToStringSerializer.class) private String timeExpressionNameRdd;
private Long timeId;
@Column(name="TIME_EXPRESSION_RDD") @Column(name="TIME_EXPRESSION_CONTENT_RDD")
@ApiParam(value ="时间表达式") @ApiParam(value ="时间表达式")
private String timeExpressionRdd; private String timeExpressionContentRdd;
@Column(name="TASK_START_DATE_TIME") @Column(name="EXECUTE_TIME")
@ApiParam(value ="任务开始时间") @ApiParam(value ="执行耗时")
private String taskStartDateTime; @JsonSerialize(using = ToStringSerializer.class)
private Long executeTime;
@Column(name="TASK_END_DATE_TIME")
@ApiParam(value ="任务结束时间") @Column(name="TASK_STATUS")
private String taskEndDateTime;
@Column(name="TASK_STATUS_ID")
@ApiParam(value ="任务完成情况(枚举1正常2失败)") @ApiParam(value ="任务完成情况(枚举1正常2失败)")
private Integer taskStatusId; private Integer taskStatus;
@Column(name="TASK_LOG")
@ApiParam(value ="任务日志")
private String taskLog;
@Column(name="TASK_LOG_ERROR") @Column(name="TASK_LOG_ERROR")
@ApiParam(value ="任务异常日志") @ApiParam(value ="任务异常日志")
private String taskLogError; private String taskLogError;
} }

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.platform.platrepositorymongo;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseMongoRepository;
import cn.estsh.i3plus.pojo.platform.platbean.SysLogTaskTime;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2018-12-20 22:35
* @Modify:
**/
public interface SysLogTaskTimeRepository extends BaseMongoRepository<SysLogTaskTime, Long> {
}

@ -1,7 +1,7 @@
package cn.estsh.i3plus.pojo.platform.repository; package cn.estsh.i3plus.pojo.platform.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.platform.bean.SysTaskTimeRecording; import cn.estsh.i3plus.pojo.platform.platbean.SysLogTaskTime;
/** /**
* @Description : * @Description :
@ -10,5 +10,5 @@ import cn.estsh.i3plus.pojo.platform.bean.SysTaskTimeRecording;
* @Date : 2018-10-22 12:03:01.409 * @Date : 2018-10-22 12:03:01.409
* @Modify : * @Modify :
**/ **/
public interface SysTaskTimeRecordingRepository extends BaseRepository<SysTaskTimeRecording, Long> { public interface SysTaskTimeRecordingRepository extends BaseRepository<SysLogTaskTime, Long> {
} }

Loading…
Cancel
Save