提交
This commit is contained in:
1 parent
276299ff27
commit
c6c3a37fa7
241 files changed
+17841
-15059
No files matched your search
@@ -158,7 +158,7 @@ async def list_process_defs(
|
||||
):
|
||||
tenant_no = _user.get("tenant_no", "zkxw")
|
||||
items, total = wf_crud.list_process_defs(
|
||||
db, page=page, page_size=pageSize, keyword=keyword, status=status, tenant_no=tenant_no
|
||||
db, page=page, page_size=pageSize, keyword=keyword, status=status, tenant_no=tenant_no, user_info=_user
|
||||
)
|
||||
tp = wf_crud.total_pages(total, pageSize)
|
||||
return success_response({"list": items, "total": total, "page": page, "pageSize": pageSize, "totalPages": tp})
|
||||
@@ -261,7 +261,7 @@ async def list_versions(
|
||||
db: Session = Depends(get_db),
|
||||
):
|
||||
tenant_no = _user.get("tenant_no", "zkxw")
|
||||
items = wf_crud.list_versions(db, def_id, tenant_no=tenant_no)
|
||||
items = wf_crud.list_versions(db, def_id, tenant_no=tenant_no, user_info=_user)
|
||||
return success_response(items)
|
||||
|
||||
|
||||
@@ -347,7 +347,7 @@ async def list_my_instances(
|
||||
tenant_no = user.get("tenant_no", "zkxw")
|
||||
items, total = wf_crud.list_my_instances(
|
||||
db, user_id, page=page, page_size=pageSize,
|
||||
keyword=keyword, status=status, tenant_no=tenant_no,
|
||||
keyword=keyword, status=status, tenant_no=tenant_no, user_info=user,
|
||||
)
|
||||
_enrich_task_list(db, items)
|
||||
tp = wf_crud.total_pages(total, pageSize)
|
||||
@@ -428,7 +428,7 @@ async def list_pending_tasks(
|
||||
user_id = user.get("user_id") or user.get("id")
|
||||
tenant_no = user.get("tenant_no", "zkxw")
|
||||
items, total = wf_crud.list_pending_tasks(
|
||||
db, user_id, page=page, page_size=pageSize, keyword=keyword, tenant_no=tenant_no
|
||||
db, user_id, page=page, page_size=pageSize, keyword=keyword, tenant_no=tenant_no, user_info=user
|
||||
)
|
||||
_enrich_task_list(db, items)
|
||||
tp = wf_crud.total_pages(total, pageSize)
|
||||
@@ -446,7 +446,7 @@ async def list_completed_tasks(
|
||||
user_id = user.get("user_id") or user.get("id")
|
||||
tenant_no = user.get("tenant_no", "zkxw")
|
||||
items, total = wf_crud.list_completed_tasks(
|
||||
db, user_id, page=page, page_size=pageSize, keyword=keyword, tenant_no=tenant_no
|
||||
db, user_id, page=page, page_size=pageSize, keyword=keyword, tenant_no=tenant_no, user_info=user
|
||||
)
|
||||
_enrich_task_list(db, items)
|
||||
tp = wf_crud.total_pages(total, pageSize)
|
||||
|
||||
Reference in new issue
Block a user