|
@@ -766,6 +766,13 @@ async def create_inspection_task(
|
|
|
db.add(new_task_log)
|
|
|
|
|
|
db.commit()
|
|
|
+
|
|
|
+ # 标记消息已读
|
|
|
+ child_task_info = db.query(RiskManagementRescueResourcesTaskChildrenTask).filter(RiskManagementRescueResourcesTaskChildrenTask.id == children_task_id).first()
|
|
|
+ if child_task_info is not None:
|
|
|
+ logger.info("标记[数据采集任务]已读 {}", str(child_task_info.task_id))
|
|
|
+ db_msg_center.update_msg_read(db, user_id, "数据采集", str(child_task_info.task_id))
|
|
|
+
|
|
|
# 返回创建成功的响应
|
|
|
return {
|
|
|
"code": 200,
|