|
|
|
|
@ -52,6 +52,25 @@ async def get_transaction_datas(
|
|
|
|
|
message="Data retrieved successfully",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
@router.get("/export-all", response_model=StandardResponse[PlantTransactionDataSimulationsPagination])
|
|
|
|
|
async def get_transaction_datas_export_all(
|
|
|
|
|
db_session: DbSession,
|
|
|
|
|
common: CommonParameters,
|
|
|
|
|
simulation_id: UUID = Query(..., description="Simulation identifier"),
|
|
|
|
|
):
|
|
|
|
|
"""Get all transaction_data for export."""
|
|
|
|
|
common["all"] = True
|
|
|
|
|
plant_transaction_data = await get_all(
|
|
|
|
|
db_session=db_session,
|
|
|
|
|
items_per_page=-1,
|
|
|
|
|
common=common,
|
|
|
|
|
simulation_id=simulation_id,
|
|
|
|
|
)
|
|
|
|
|
return StandardResponse(
|
|
|
|
|
data=plant_transaction_data,
|
|
|
|
|
message="All Plant Transaction Data Simulations retrieved successfully",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
@router.get("/charts", response_model=StandardResponse[PlantChartDataSimulations])
|
|
|
|
|
async def get_chart_data(
|
|
|
|
|
db_session: DbSession,
|
|
|
|
|
|