From daf67bd6dda56bfcfb2f3807b6826145baf90b15 Mon Sep 17 00:00:00 2001 From: "Lihong@123456" <1090591095@qq.com> Date: Tue, 15 Dec 2020 12:30:59 +0800 Subject: [PATCH 1/2] 1 --- wisdomcar/src/main/resources/mapper_dao/StatisticsDao.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wisdomcar/src/main/resources/mapper_dao/StatisticsDao.xml b/wisdomcar/src/main/resources/mapper_dao/StatisticsDao.xml index cbae8cb4..c6acae1b 100644 --- a/wisdomcar/src/main/resources/mapper_dao/StatisticsDao.xml +++ b/wisdomcar/src/main/resources/mapper_dao/StatisticsDao.xml @@ -35,7 +35,7 @@ FROM select tfar.begin_time/1000 as time from - t_first_aid_record tfar ,(select id from t_first_aid tfa where tfa.hospital_id=#{id} and tfa.rec_status=0 ORDER BY tfa.begin_time) t - where tfar.rec_status=0 and t.id = tfar.first_aid_id + t_step ts LEFT JOIN t_first_aid_record tfar on ts.id = tfar.step_id , + (select id from t_first_aid tfa where tfa.hospital_id =#{id} and tfa.rec_status=0 ORDER BY tfa.begin_time) t + where tfar.rec_status=0 and t.id = tfar.first_aid_id and ts.rec_status = 0 and ts.step_type = 1 + ORDER BY ts.sequence asc