From 38f9471ecf47b7c15b352113bc0f5a2ec1e64e7b Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 16 七月 2024 09:24:13 +0800 Subject: [PATCH] 登录返回vo修改,个人中心接口,用户列表权限验证 --- src/main/resources/mapper/ClassesUserMapper.xml | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/ClassesUserMapper.xml b/src/main/resources/mapper/ClassesUserMapper.xml index 7306815..63de525 100644 --- a/src/main/resources/mapper/ClassesUserMapper.xml +++ b/src/main/resources/mapper/ClassesUserMapper.xml @@ -70,4 +70,11 @@ from t_classes_user where user_id = #{userId} and deleted = 0 </select> + + <select id="getClassesNameByUserId" resultType="java.lang.String"> + select tc.class_name + from t_classes_user tcu + left join t_classes tc on tcu.classes_id = tc.id + where user_id = #{userId} and tcu.deleted = 0 and tc.deleted =0 + </select> </mapper> -- Gitblit v1.8.0