From 4b4cae4db7c41999c9731ddb0baf34e241de59b8 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 11 Apr 2025 17:51:36 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B8=9F=E0=B8=B4=E0=B8=A5=E0=B8=94=E0=B9=8C=20rootName=20?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=9A?= =?UTF-8?q?=E0=B8=B1=E0=B8=8D=E0=B8=8A=E0=B8=B52?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ReportController.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index 1cf3256f..7d2cb752 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -385,7 +385,6 @@ export class ReportController extends Controller { }, }); } - return new HttpSuccess({ data: mapData, total: total, @@ -5604,7 +5603,15 @@ export class ReportController extends Controller { } } } - return new HttpSuccess({ template: "report2", reportName: "report2", data: { data } }); + + return new HttpSuccess({ + template: "report2", + reportName: "report2", + data: { + rootName: orgRootData.length > 0 ? orgRootData[0].orgRootName : "-", + data: data + } + }); } /** * API Report3