From 5650dea6d7af782ce5c054d4c68dc9d2477c0c86 Mon Sep 17 00:00:00 2001 From: "jiakun.lin" Date: Fri, 12 Mar 2021 10:54:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=9E=E9=AA=8C=E4=BA=BA?= =?UTF-8?q?=E6=95=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/tms/ExperimentalTeachingDao.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/resources/mapper/tms/ExperimentalTeachingDao.xml b/src/main/resources/mapper/tms/ExperimentalTeachingDao.xml index 20f318c..8c28e2e 100644 --- a/src/main/resources/mapper/tms/ExperimentalTeachingDao.xml +++ b/src/main/resources/mapper/tms/ExperimentalTeachingDao.xml @@ -55,7 +55,19 @@ experimental_name, project_id, project_name, - ( SELECT count( * ) FROM tms_project_record WHERE projectId = project_id AND tms_project_record.isdel = 0 ) AS experimental_number, + ( + SELECT + count( * ) + FROM + tms_project_record tpr, + tms_experimental_report ter + WHERE + tpr.projectId = t.project_id + AND ter.eventId = tpr.recordId + AND ter.projectId = t.id + AND tpr.isdel = 0 + AND ter.isdel = 0 + ) AS experimental_number, experiment_duration, type, start_time,