| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.vincent.rsf.server.manager.enums.TaskType; |
| | | import com.vincent.rsf.server.system.constant.DictTypeCode; |
| | | import com.vincent.rsf.server.system.entity.DictData; |
| | | import com.vincent.rsf.server.system.service.DictDataService; |
| | |
| | | @TableField(exist = false,select = false) |
| | | @ApiModelProperty(value = "是否可点击完成(有当前步骤且非终态)") |
| | | private Boolean canComplete; |
| | | |
| | | /** 是否可取消:流程步骤能对应上 taskStatus 且未到最后一步(9999) 时为 true */ |
| | | @TableField(exist = false, select = false) |
| | | @ApiModelProperty(value = "是否可取消") |
| | | private Boolean canCancel; |
| | | |
| | | @ApiModelProperty("上级任务ID") |
| | | private Long parentId; |
| | |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private Date updateTime; |
| | | |
| | | @Version |
| | | private Integer version; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | |
| | | } |
| | | |
| | | public String getTaskType$() { |
| | | if (Cools.isEmpty(this.taskType)) { |
| | | return null; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictDatas = dictDataService.getOne(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_TASK_TYPE) |
| | | .eq(DictData::getValue, this.taskType)); |
| | | if (Objects.isNull(dictDatas) || Objects.isNull(dictDatas.getLabel())) { |
| | | return null; |
| | | } |
| | | return dictDatas.getValue() + "." + dictDatas.getLabel(); |
| | | return TaskType.getTypeDesc(taskType); |
| | | } |
| | | |
| | | public String getStartTime$(){ |