From 3c66101539d09da73d66b7f307e810b95e4ba6f9 Mon Sep 17 00:00:00 2001 From: DengMin <16679070171@qq.com> Date: Thu, 3 Mar 2022 13:42:12 +0800 Subject: [PATCH] 通知修改 --- src/main/resources/mapper/MemberMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/mapper/MemberMapper.xml b/src/main/resources/mapper/MemberMapper.xml index b40214f..7f77847 100644 --- a/src/main/resources/mapper/MemberMapper.xml +++ b/src/main/resources/mapper/MemberMapper.xml @@ -316,7 +316,7 @@ FROM member m LEFT JOIN class_member_mapping cm ON cm.member_id = m.id - LEFT JOIN ( SELECT member_id, count( 1 ) AS ts FROM exercise_done_result WHERE score >= 60 GROUP BY class_id ) AS r ON r.member_id = m.id + LEFT JOIN ( SELECT member_id, count( 1 ) AS ts, class_id FROM exercise_done_result WHERE score >= 60 GROUP BY class_id ) AS r ON r.member_id = m.id AND r.class_id = cm.class_id WHERE cm.class_id = #{classId} AND r.ts is NULL -- libgit2 0.25.0