From 66e91fed7a31f4524dcc616b8e9ae5730246e93c Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Fri, 30 Aug 2024 15:55:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=B1=95=E7=A4=BA=E6=9C=AA?= =?UTF-8?q?=E5=BC=80=E7=8F=AD=E5=B0=8F=E7=8F=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/common/service/impl/ClassEntityServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/peanut/modules/common/service/impl/ClassEntityServiceImpl.java b/src/main/java/com/peanut/modules/common/service/impl/ClassEntityServiceImpl.java index 39f5ba08..6788c36d 100644 --- a/src/main/java/com/peanut/modules/common/service/impl/ClassEntityServiceImpl.java +++ b/src/main/java/com/peanut/modules/common/service/impl/ClassEntityServiceImpl.java @@ -548,6 +548,7 @@ public class ClassEntityServiceImpl extends ServiceImpl getClassNoUser() { MPJLambdaWrapper wrapper = new MPJLambdaWrapper<>(); wrapper.selectAll(ClassEntity.class); + wrapper.eq(ClassEntity::getState,"0"); String classSql = "select 1 from ( select c.id from class c left join class_course cc on cc.model_id = c.model_id left join class_user cu on cu.class_id = c.id where c.del_flag = 0 and cc.del_flag = 0 and cu.del_flag = 0 and cu.user_id = "+ShiroUtils.getUId()+" ) s where s.id = t.id"; String courseSql = "select 1 from (select cc.model_id from class_course cc where cc.del_flag = 0 and cc.course_id in (select cc.course_id from class_course cc left join class_model cm on cm.id = cc.model_id left join class c on c.model_id = cm.id left join class_user cu on cu.class_id = c.id where cc.del_flag = 0 and cm.del_flag = 0 and c.del_flag = 0 and cu.del_flag = 0 and cu.user_id = "+ShiroUtils.getUId()+")) q where q.model_id = t.model_id"; wrapper.notExists(classSql);