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,