fix:定时任务空指针的问题

yun-zuoyi
汪云昊 5 years ago
parent a45d1ed104
commit 15aa885cf8

@ -90,6 +90,10 @@ public class SysLogTaskTime extends BaseBean {
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description")
private Integer taskStatus;
public int getTaskStatusVal() {
return taskStatus == null ? CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue() : taskStatus;
}
@Column(name="TASK_LOG_ERROR")
@ApiParam(value ="任务异常日志")
private String taskLogError;

Loading…
Cancel
Save