删除目录,就吧该目录下书签设置为删除状态
This commit is contained in:
@ -70,4 +70,12 @@ public interface SqBookmarkMapper extends MyMapper<SqBookmark>
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSqBookmarkByIds(Long[] bookmarkIds);
|
||||
|
||||
/**
|
||||
* 修改目录下书签状态为 删除状态
|
||||
*
|
||||
* @param
|
||||
* @return 结果
|
||||
*/
|
||||
public void updateSqBookmarkBymenuId(Long menuId);
|
||||
}
|
||||
|
@ -73,4 +73,12 @@ public interface ISqBookmarkService
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSqBookmarkById(Long bookmarkId);
|
||||
|
||||
/**
|
||||
* 修改目录下书签状态为 删除状态
|
||||
*
|
||||
* @param
|
||||
* @return 结果
|
||||
*/
|
||||
public void updateSqBookmarkBymenuId(Long menuId);
|
||||
}
|
||||
|
@ -111,4 +111,16 @@ public class SqBookmarkServiceImpl implements ISqBookmarkService
|
||||
{
|
||||
return sqBookmarkMapper.deleteSqBookmarkById(bookmarkId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改目录下书签状态为 删除状态
|
||||
*
|
||||
* @param
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public void updateSqBookmarkBymenuId(Long menuId) {
|
||||
sqBookmarkMapper.updateSqBookmarkBymenuId(menuId);
|
||||
}
|
||||
}
|
||||
|
@ -97,6 +97,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
where bookmark_id = #{bookmarkId}
|
||||
</update>
|
||||
|
||||
<update id="updateSqBookmarkBymenuId" parameterType="Long">
|
||||
update sq_bookmark set IDelete = 1 where menu_id = #{menuId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSqBookmarkById" parameterType="Long">
|
||||
delete from sq_bookmark where bookmark_id = #{bookmarkId}
|
||||
</delete>
|
||||
|
Reference in New Issue
Block a user