Browse Source

no message

libushang 8 months ago
parent
commit
76427a0522
1 changed files with 5 additions and 0 deletions
  1. 5 0
      routers/api/riskManagement/task.py

+ 5 - 0
routers/api/riskManagement/task.py

@@ -339,6 +339,7 @@ async def delete_inspection_task(
 
 @router.get('/children/task/list')
 async def get_inspection_task_list(
+    search_keyword: str =Query(None, description='任务名称'),
     type: str =Query(None, description='类型'),
     page: int = Query(1, gt=0, description='页码'),
     pageSize: int = Query(10, gt=0, description='每页条目数量'),
@@ -405,6 +406,7 @@ async def get_inspection_task_list(
                 task_info = {
                     "id": task.id,
                     "business": task.type,
+                    "task_range": task.task_range,
                     "cycle": task.cycle,
                     "area_code":area_code,
                     "area": area_code_get_ancestors_names(db,area_code_get_area_info(db,area_code)),
@@ -526,6 +528,7 @@ async def get_inspection_task_list(
                     task_info = {
                         "id": task.id,
                         "business": task.type,
+                        "task_range": task.task_range,
                         "cycle": task.cycle,
                         "area_code":area_code,
                         "area": area_code_get_ancestors_names(db,area_code_get_area_info(db,area_code)),
@@ -561,6 +564,7 @@ async def get_inspection_task_list(
 
 @router.get('/children/task/records')
 async def get_children_task_records_list(
+    search_keyword: str =Query(None, description='任务名称'),
     type: str =Query(None,  description='类型'),
     page: int = Query(1, gt=0, description='页码'),
     pageSize: int = Query(10, gt=0, description='每页条目数量'),
@@ -598,6 +602,7 @@ async def get_children_task_records_list(
             task_info = {
                 "id": task.children_task_id,
                 "business": children_task.type,
+                "task_range": children_task.task_range,
                 "cycle": children_task.cycle,
                 "area_code": task.area_code,
                 "area": area_code_get_ancestors_names(db, area_code_get_area_info(db, task.area_code)),