From c635d78b479510ebe2556a420948effcd30a0731 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期六, 21 十二月 2024 18:40:43 +0800 Subject: [PATCH] 新建德森项目分支 --- zy-asrs-common/src/main/java/com/zy/asrs/common/sys/mapper/RoleResourceMapper.java | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/zy-asrs-common/src/main/java/com/zy/asrs/common/sys/mapper/RoleResourceMapper.java b/zy-asrs-common/src/main/java/com/zy/asrs/common/sys/mapper/RoleResourceMapper.java index c85a382..887d972 100644 --- a/zy-asrs-common/src/main/java/com/zy/asrs/common/sys/mapper/RoleResourceMapper.java +++ b/zy-asrs-common/src/main/java/com/zy/asrs/common/sys/mapper/RoleResourceMapper.java @@ -1,20 +1,20 @@ -package com.zy.asrs.common.sys.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.zy.asrs.common.sys.entity.Resource; -import com.zy.asrs.common.sys.entity.RoleResource; -import org.apache.ibatis.annotations.Mapper; -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Select; -import org.springframework.stereotype.Repository; - -import java.util.List; - -@Mapper -@Repository -public interface RoleResourceMapper extends BaseMapper<RoleResource> { - - @Select("select sr.* from sys_resource sr left join sys_role_resource srr on srr.resource_id = sr.id left join sys_user su on su.role_id = srr.role_id where 1 = 1 and su.id = #{userId} and sr. level = 3 and sr.resource_id = #{fatherResourceId} and sr. status = 1 order by sr.sort") - List<Resource> getMenuButtomResource(@Param("fatherResourceId") Long fatherResourceId, @Param("userId") Long userId); - -} +package com.zy.asrs.common.sys.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.zy.asrs.common.sys.entity.Resource; +import com.zy.asrs.common.sys.entity.RoleResource; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; + +import java.util.List; + +@Mapper +@Repository +public interface RoleResourceMapper extends BaseMapper<RoleResource> { + + @Select("select sr.* from sys_resource sr left join sys_role_resource srr on srr.resource_id = sr.id left join sys_user su on su.role_id = srr.role_id where 1 = 1 and su.id = #{userId} and sr. level = 3 and sr.resource_id = #{fatherResourceId} and sr. status = 1 order by sr.sort") + List<Resource> getMenuButtomResource(@Param("fatherResourceId") Long fatherResourceId, @Param("userId") Long userId); + +} -- Gitblit v1.9.1