✨ Introducing new features. 微服务版本适配cxygzl flowable

This commit is contained in:
lbw committed 2023-07-31 15:08:03 +08:00
1 parent 1812decae3
commit 884367ea38
4 files changed
+29

No files matched your search

@@ -1,13 +1,17 @@
package com.pig4cloud.pigx.flow.task.dto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 首页统计数据
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class IndexPageStatistics {
/**
@@ -17,6 +17,16 @@ public class TaskController {
private final ITaskService taskService;
/**
* 查询首页数据看板
* @return
*/
@SneakyThrows
@GetMapping("queryTaskData")
public R queryTaskData() {
return taskService.queryTaskData();
}
/**
* 查询任务
* @param taskId
@@ -58,4 +58,10 @@ public interface ITaskService {
*/
R back(TaskParamDto taskParamDto);
/**
* 查询首页数据看板
* @return
*/
R queryTaskData();
}
@@ -50,6 +50,15 @@ public class TaskServiceImpl implements ITaskService {
private final ObjectMapper objectMapper;
/**
* 查询首页数据看板
* @return
*/
@Override
public R queryTaskData() {
return flowEngineService.querySimpleData(SecurityUtils.getUser().getId());
}
/**
* 查询任务
* @param taskId