新增 批量添加目录下书签数量 数量可以自定义

This commit is contained in:
WangHao
2020-08-30 17:35:01 +08:00
parent fd61ceda4c
commit 102b94e4d1
7 changed files with 62 additions and 35 deletions

View File

@ -77,7 +77,7 @@ public interface SqMenuMapper extends MyMapper<SqMenu>
* @param menuIds
* @return 结果
*/
public int updateCountReduce(Long[] menuIds);
public int updateCountReduce(@Param("menuIds")Long[] menuIds,@Param("icount")int icount);
/**
* 批量添加目录下书签数量 +1
@ -85,7 +85,7 @@ public interface SqMenuMapper extends MyMapper<SqMenu>
* @param menuIds +1
* @return 结果
*/
public int updateCountAdd(Long[] menuIds);
public int updateCountAdd(@Param("menuIds")Long[] menuIds,@Param("icount")int icount);
}

View File

@ -13,20 +13,20 @@ public interface ISqMenuService
{
/**
* 批量减少目录下书签数量 -1
* 批量减少目录下书签数量
*
* @param menuIds
* @return 结果
*/
public int updateCountReduce(Long[] menuIds);
public int updateCountReduce(Long[] menuIds,int icount);
/**
* 批量添加目录下书签数量 +1
* 批量添加目录下书签数量
*
* @param menuIds +1
* @param menuIds
* @return 结果
*/
public int updateCountAdd(Long[] menuIds);
public int updateCountAdd(Long[] menuIds,int icount);
/**
* @auther: Wang
* @date: 2020/08/16 20:04

View File

@ -108,24 +108,24 @@ public class SqMenuServiceImpl implements ISqMenuService
/**
* 批量减少目录下书签数量 -1
* 批量减少目录下书签数量
*
* @param menuIds
* @return 结果
*/
@Override
public int updateCountReduce(Long[] menuIds){
return sqMenuMapper.updateCountReduce(menuIds);
public int updateCountReduce(Long[] menuIds,int icount){
return sqMenuMapper.updateCountReduce(menuIds,icount);
}
/**
* 批量添加目录下书签数量 +1
* 批量添加目录下书签数量
*
* @param menuIds +1
* @param menuIds
* @return 结果
*/
@Override
public int updateCountAdd(Long[] menuIds){
return sqMenuMapper.updateCountAdd(menuIds);
public int updateCountAdd(Long[] menuIds,int icount){
return sqMenuMapper.updateCountAdd(menuIds,icount);
}
}