新增全部书签和回收站
This commit is contained in:
		| @@ -23,6 +23,13 @@ public interface SqBookmarkMapper extends MyMapper<SqBookmark> | ||||
|      * @return 书签管理 | ||||
|      */ | ||||
|     public List<SqBookmark> selectBymenuIdUserID(@Param("menuID") Long menuID, @Param("userID") Long userID); | ||||
|     /** | ||||
|      * @auther: Wang | ||||
|      * @date: 2020/08/29 23:03 | ||||
|      * 功能描述: 回收站 | ||||
|      */ | ||||
|  | ||||
|     public List<SqBookmark> selectBydelete(@Param("userID") Long userID); | ||||
|     /** | ||||
|      * 查询书签管理 | ||||
|      * | ||||
|   | ||||
| @@ -81,4 +81,15 @@ public interface ISqBookmarkService | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public void updateSqBookmarkBymenuId(Long menuId); | ||||
|     /** | ||||
|      * 回收站 | ||||
|      * @return | ||||
|      */ | ||||
|     public List<SqBookmark> selectBydelete(Long userId); | ||||
|  | ||||
|     /** | ||||
|      * 用户全部书签 | ||||
|      * @return | ||||
|      */ | ||||
|     List<SqBookmark> selectByUseridList(Long userId); | ||||
| } | ||||
|   | ||||
| @@ -2,6 +2,7 @@ package com.ruoyi.bookmark.service.impl; | ||||
|  | ||||
| import java.util.List; | ||||
| import com.ruoyi.common.utils.DateUtils; | ||||
| import com.sun.org.apache.bcel.internal.generic.NEW; | ||||
| import org.apache.ibatis.annotations.Param; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.stereotype.Service; | ||||
| @@ -122,5 +123,24 @@ public class SqBookmarkServiceImpl implements ISqBookmarkService | ||||
|     @Override | ||||
|     public void updateSqBookmarkBymenuId(Long menuId) { | ||||
|          sqBookmarkMapper.updateSqBookmarkBymenuId(menuId); | ||||
|  | ||||
|     } | ||||
|     /** | ||||
|      * 回收站 | ||||
|      * @return | ||||
|      */ | ||||
|     @Override | ||||
|     public List<SqBookmark> selectBydelete(Long userId) { | ||||
|         return sqBookmarkMapper.selectBydelete(userId); | ||||
|     } | ||||
|     /** | ||||
|      * 用户全部书签 | ||||
|      * @return | ||||
|      */ | ||||
|     @Override | ||||
|     public List<SqBookmark> selectByUseridList(Long userId) { | ||||
|         SqBookmark sqBookmark= new SqBookmark(); | ||||
|         sqBookmark.setUserid(userId); | ||||
|         return sqBookmarkMapper.select(sqBookmark); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user