接口注释补充完善
This commit is contained in:
parent
4b6da02ff4
commit
713d9e0197
@ -165,7 +165,8 @@ public class SqMenuController extends BaseController
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Long[] menuIds={1L,2L,3L};
|
// Long[] menuIds={1L,2L,3L};
|
||||||
Long[] menuIds= sqMenuService.selectBymenuidParentid(4L);//所有的父级目录
|
//所有的父级目录
|
||||||
|
Long[] menuIds= sqMenuService.selectBymenuidParentid(4L);
|
||||||
sqMenuService.updateCountAdd(menuIds,5);
|
sqMenuService.updateCountAdd(menuIds,5);
|
||||||
|
|
||||||
logger.info("执行完毕");
|
logger.info("执行完毕");
|
||||||
|
@ -16,12 +16,12 @@ public interface SqMenuMapper extends MyMapper<SqMenu>
|
|||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @auther: Wang
|
* 查询用户的所有目录菜单
|
||||||
* @date: 2020/08/16 20:04
|
*
|
||||||
* 功能描述:查询用户的 所有书签菜单
|
* @param userid 用户userid
|
||||||
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
public List<SqMenu> selecByUserID(Long userid);
|
||||||
public List<SqMenu> selecByUserID(Long id);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询书签菜单
|
* 查询书签菜单
|
||||||
@ -56,9 +56,10 @@ public interface SqMenuMapper extends MyMapper<SqMenu>
|
|||||||
public int updateSqMenu(SqMenu sqMenu);
|
public int updateSqMenu(SqMenu sqMenu);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除书签菜单
|
* 删除书签菜单信息
|
||||||
*
|
*
|
||||||
* @param menuId 书签菜单ID
|
* @param menuId 书签目录菜单emnuID
|
||||||
|
* @param userId 用户userID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteSqMenuById(@Param("menuId")Long menuId,@Param("userId")Long userId);
|
public int deleteSqMenuById(@Param("menuId")Long menuId,@Param("userId")Long userId);
|
||||||
@ -72,17 +73,19 @@ public interface SqMenuMapper extends MyMapper<SqMenu>
|
|||||||
public int deleteSqMenuByIds(Long[] menuIds);
|
public int deleteSqMenuByIds(Long[] menuIds);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量减少目录下书签数量 -1
|
* 批量减少目录下书签数量
|
||||||
*
|
*
|
||||||
* @param menuIds
|
* @param menuIds 目录menuId串
|
||||||
|
* @param icount 减少数量
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateCountReduce(@Param("menuIds")Long[] menuIds,@Param("icount")int icount);
|
public int updateCountReduce(@Param("menuIds")Long[] menuIds,@Param("icount")int icount);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量添加目录下书签数量 +1
|
* 批量添加目录下书签数量
|
||||||
*
|
*
|
||||||
* @param menuIds +1
|
* @param menuIds 目录menuId串
|
||||||
|
* @param icount 添加数量
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateCountAdd(@Param("menuIds")Long[] menuIds,@Param("icount")int icount);
|
public int updateCountAdd(@Param("menuIds")Long[] menuIds,@Param("icount")int icount);
|
||||||
|
@ -16,7 +16,7 @@ public interface ISqMenuService
|
|||||||
/**
|
/**
|
||||||
* 查询 目录菜单的 所有父级ID
|
* 查询 目录菜单的 所有父级ID
|
||||||
*
|
*
|
||||||
* @param menuId
|
* @param menuId 目录ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public Long[] selectBymenuidParentid(Long menuId);
|
public Long[] selectBymenuidParentid(Long menuId);
|
||||||
@ -24,7 +24,8 @@ public interface ISqMenuService
|
|||||||
/**
|
/**
|
||||||
* 批量减少目录下书签数量
|
* 批量减少目录下书签数量
|
||||||
*
|
*
|
||||||
* @param menuIds
|
* @param menuIds 目录menuId串
|
||||||
|
* @param icount 减少数量
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateCountReduce(Long[] menuIds,int icount);
|
public int updateCountReduce(Long[] menuIds,int icount);
|
||||||
@ -32,16 +33,19 @@ public interface ISqMenuService
|
|||||||
/**
|
/**
|
||||||
* 批量添加目录下书签数量
|
* 批量添加目录下书签数量
|
||||||
*
|
*
|
||||||
* @param menuIds
|
* @param menuIds 目录menuId串
|
||||||
|
* @param icount 添加数量
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateCountAdd(Long[] menuIds,int icount);
|
public int updateCountAdd(Long[] menuIds,int icount);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @auther: Wang
|
* 查询用户的所有目录菜单
|
||||||
* @date: 2020/08/16 20:04
|
*
|
||||||
* 功能描述:查询用户的 所有书签菜单
|
* @param userid 用户userid
|
||||||
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public List<SqMenu> selecByUserID(Long id);
|
public List<SqMenu> selecByUserID(Long userid);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -87,7 +91,8 @@ public interface ISqMenuService
|
|||||||
/**
|
/**
|
||||||
* 删除书签菜单信息
|
* 删除书签菜单信息
|
||||||
*
|
*
|
||||||
* @param menuId 书签菜单ID
|
* @param menuId 书签目录菜单emnuID
|
||||||
|
* @param userId 用户userID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteSqMenuById(Long menuId,Long userId);
|
public int deleteSqMenuById(Long menuId,Long userId);
|
||||||
|
@ -28,7 +28,7 @@ public class SqMenuServiceImpl implements ISqMenuService
|
|||||||
* 查询 目录菜单的 所有父级ID
|
* 查询 目录菜单的 所有父级ID
|
||||||
*
|
*
|
||||||
* @param menuId
|
* @param menuId
|
||||||
* @return 结果
|
* @return 所有的父级MenuID 串
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Long[] selectBymenuidParentid(Long menuId){
|
public Long[] selectBymenuidParentid(Long menuId){
|
||||||
@ -47,15 +47,15 @@ public class SqMenuServiceImpl implements ISqMenuService
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @auther: Wang
|
* 查询用户的所有目录菜单
|
||||||
* @date: 2020/08/16 20:04
|
*
|
||||||
* 功能描述:查询用户的 所有书签菜单
|
* @param userid 用户userid
|
||||||
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<SqMenu> selecByUserID(Long id) {
|
public List<SqMenu> selecByUserID(Long userid) {
|
||||||
SqMenu sqMenu=new SqMenu();
|
SqMenu sqMenu=new SqMenu();
|
||||||
sqMenu.setUserId(id);
|
sqMenu.setUserId(userid);
|
||||||
|
|
||||||
return sqMenuMapper.selectSqMenuList(sqMenu);
|
return sqMenuMapper.selectSqMenuList(sqMenu);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,7 +123,8 @@ public class SqMenuServiceImpl implements ISqMenuService
|
|||||||
/**
|
/**
|
||||||
* 删除书签菜单信息
|
* 删除书签菜单信息
|
||||||
*
|
*
|
||||||
* @param menuId 书签菜单ID
|
* @param menuId 书签目录菜单emnuID
|
||||||
|
* @param userId 用户userID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@ -132,11 +133,11 @@ public class SqMenuServiceImpl implements ISqMenuService
|
|||||||
return sqMenuMapper.deleteSqMenuById(menuId,userId);
|
return sqMenuMapper.deleteSqMenuById(menuId,userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量减少目录下书签数量
|
* 批量减少目录下书签数量
|
||||||
*
|
*
|
||||||
* @param menuIds
|
* @param menuIds 目录menuId串
|
||||||
|
* @param icount 减少数量
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@ -147,7 +148,8 @@ public class SqMenuServiceImpl implements ISqMenuService
|
|||||||
/**
|
/**
|
||||||
* 批量添加目录下书签数量
|
* 批量添加目录下书签数量
|
||||||
*
|
*
|
||||||
* @param menuIds
|
* @param menuIds 目录menuId串
|
||||||
|
* @param icount 添加数量
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user