安全:隔离报表选项扫码与首页数据
This commit is contained in:
@@ -11,6 +11,8 @@ from common.aspect.pre_auth import CurrentUserDependency, PreAuthDependency
|
||||
from common.router import APIRouterPro
|
||||
from common.vo import PageResponseModel
|
||||
from module_admin.entity.vo.user_vo import CurrentUserModel
|
||||
from module_business.dependency.test_batch_dependency import TestBatchScopeDependency
|
||||
from module_business.domain.test_batch_scope import TestBatchScope
|
||||
from module_business.entity.vo.report_vo import (
|
||||
ConsumptionReportModel,
|
||||
ConsumptionReportQueryModel,
|
||||
@@ -46,8 +48,9 @@ async def get_pallet_inventory_report_list(
|
||||
query_object: Annotated[PalletInventoryReportQueryModel, Query()],
|
||||
query_db: Annotated[AsyncSession, DBSessionDependency()],
|
||||
current_user: Annotated[CurrentUserModel, CurrentUserDependency()],
|
||||
test_scope: Annotated[TestBatchScope, TestBatchScopeDependency()],
|
||||
) -> Response:
|
||||
result = await ReportService.get_pallet_inventory_list_services(query_db, query_object, current_user)
|
||||
result = await ReportService.get_pallet_inventory_list_services(query_db, query_object, current_user, test_scope)
|
||||
return ResponseUtil.success(model_content=result)
|
||||
|
||||
|
||||
@@ -62,8 +65,9 @@ async def get_filling_report_list(
|
||||
query_object: Annotated[FillingReportQueryModel, Query()],
|
||||
query_db: Annotated[AsyncSession, DBSessionDependency()],
|
||||
current_user: Annotated[CurrentUserModel, CurrentUserDependency()],
|
||||
test_scope: Annotated[TestBatchScope, TestBatchScopeDependency()],
|
||||
) -> Response:
|
||||
result = await ReportService.get_filling_report_list_services(query_db, query_object, current_user)
|
||||
result = await ReportService.get_filling_report_list_services(query_db, query_object, current_user, test_scope)
|
||||
return ResponseUtil.success(model_content=result)
|
||||
|
||||
|
||||
@@ -78,8 +82,9 @@ async def get_shipment_report_list(
|
||||
query_object: Annotated[ShipmentReportQueryModel, Query()],
|
||||
query_db: Annotated[AsyncSession, DBSessionDependency()],
|
||||
current_user: Annotated[CurrentUserModel, CurrentUserDependency()],
|
||||
test_scope: Annotated[TestBatchScope, TestBatchScopeDependency()],
|
||||
) -> Response:
|
||||
result = await ReportService.get_shipment_report_list_services(query_db, query_object, current_user)
|
||||
result = await ReportService.get_shipment_report_list_services(query_db, query_object, current_user, test_scope)
|
||||
return ResponseUtil.success(model_content=result)
|
||||
|
||||
|
||||
@@ -94,8 +99,9 @@ async def get_consumption_report_list(
|
||||
query_object: Annotated[ConsumptionReportQueryModel, Query()],
|
||||
query_db: Annotated[AsyncSession, DBSessionDependency()],
|
||||
current_user: Annotated[CurrentUserModel, CurrentUserDependency()],
|
||||
test_scope: Annotated[TestBatchScope, TestBatchScopeDependency()],
|
||||
) -> Response:
|
||||
result = await ReportService.get_consumption_report_list_services(query_db, query_object, current_user)
|
||||
result = await ReportService.get_consumption_report_list_services(query_db, query_object, current_user, test_scope)
|
||||
return ResponseUtil.success(model_content=result)
|
||||
|
||||
|
||||
@@ -110,8 +116,9 @@ async def get_return_report_list(
|
||||
query_object: Annotated[ReturnReportQueryModel, Query()],
|
||||
query_db: Annotated[AsyncSession, DBSessionDependency()],
|
||||
current_user: Annotated[CurrentUserModel, CurrentUserDependency()],
|
||||
test_scope: Annotated[TestBatchScope, TestBatchScopeDependency()],
|
||||
) -> Response:
|
||||
result = await ReportService.get_return_report_list_services(query_db, query_object, current_user)
|
||||
result = await ReportService.get_return_report_list_services(query_db, query_object, current_user, test_scope)
|
||||
return ResponseUtil.success(model_content=result)
|
||||
|
||||
|
||||
@@ -126,6 +133,7 @@ async def get_pallet_trace_report_list(
|
||||
query_object: Annotated[PalletTraceReportQueryModel, Query()],
|
||||
query_db: Annotated[AsyncSession, DBSessionDependency()],
|
||||
current_user: Annotated[CurrentUserModel, CurrentUserDependency()],
|
||||
test_scope: Annotated[TestBatchScope, TestBatchScopeDependency()],
|
||||
) -> Response:
|
||||
result = await ReportService.get_pallet_trace_list_services(query_db, query_object, current_user)
|
||||
result = await ReportService.get_pallet_trace_list_services(query_db, query_object, current_user, test_scope)
|
||||
return ResponseUtil.success(model_content=result)
|
||||
|
||||
Reference in New Issue
Block a user