This commit is contained in:
zhouhefeng
2026-05-20 08:54:05 +08:00
parent b3a84786c3
commit 3f76d2c6cb
105 changed files with 28881 additions and 296 deletions
@@ -213,6 +213,7 @@ public class FlowTodoCenterController {
public Result statistics() {
// 查询我发起的流程
int startedCount = dao.count(ProcessInstance.class, Cnd.where(ProcessInstance::getOperator, "=", SecurityUtil.getUserId()));
int completedCount = dao.count(ProcessInstance.class, Cnd.where(ProcessInstance::getOperator, "=", SecurityUtil.getUserId()).and(ProcessInstance::getState, "=", 20));
// 查询我的待办任务
Sql todoSql = Sqls.create("""
SELECT
@@ -262,7 +263,7 @@ public class FlowTodoCenterController {
dao.execute(msgSql);
int msgCount = msgSql.getInt();
return Result.success(Map.of("startedCount", startedCount, "todoCount", todoCount, "doneCount", doneCount, "notifications", msgCount));
return Result.success(Map.of("startedCount", startedCount, "completedCount", completedCount, "todoCount", todoCount, "doneCount", doneCount, "notifications", msgCount));
}
}