¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.dnc.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.jeecg.modules.dnc.dto.ComponentExt; |
| | | import org.jeecg.modules.dnc.entity.ComponentInfo; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface ComponentInfoMapper extends BaseMapper<ComponentInfo> { |
| | | /** |
| | | * è·åææçé¨ä»¶ç¶åå
³ç³» |
| | | * @return |
| | | */ |
| | | List<ComponentExt> findExtAll(); |
| | | /** |
| | | * æ ¹æ®ç¨æ·idè·åé¨ä»¶ä¿¡æ¯ |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | List<ComponentExt> getByUserPerms(@Param("userId") String userId); |
| | | |
| | | /** |
| | | * æ ¹æ®ç¨æ·idè·åé¨ä»¶ä¿¡æ¯ å䏿¥è¯¢ç¶ |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | List<ComponentExt> getByUserPermsAs(@Param("userId") String userId); |
| | | /** |
| | | * æ ¹æ®ç¶èç¹æ¥è¯¢ææåèç¹æ°æ® |
| | | * @return |
| | | */ |
| | | List<ComponentExt> findByParentId(@Param("parentId") String parentId); |
| | | /** |
| | | * æ ¹æ®ç¨æ·idåç¶èç¹idè·åé¨ä»¶ä¿¡æ¯ |
| | | * @return |
| | | */ |
| | | List<ComponentExt> getByParentIdAndUserPerms(@Param("parentId") String parentId, @Param("userId") String userId); |
| | | |
| | | @Select("SELECT * FROM nc_component_info WHERE component_id = #{componentId}") |
| | | ComponentInfo selectById(@Param("componentId") String componentId); |
| | | |
| | | // é彿¥è¯¢é¨ä»¶å±çº§ç»æ |
| | | List<ComponentInfo> findComponentHierarchy(@Param("componentId") String componentId); |
| | | |
| | | } |