|
|
@@ -3,6 +3,8 @@ package com.fs.hisStore.service.impl;
|
|
|
import java.util.List;
|
|
|
import com.fs.common.utils.DateUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.cache.annotation.CacheEvict;
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.fs.hisStore.mapper.FsMenuScrmMapper;
|
|
|
import com.fs.hisStore.domain.FsMenuScrm;
|
|
|
@@ -10,7 +12,7 @@ import com.fs.hisStore.service.IFsMenuScrmService;
|
|
|
|
|
|
/**
|
|
|
* 用户端菜单管理Service业务层处理
|
|
|
- *
|
|
|
+ *
|
|
|
* @author fs
|
|
|
* @date 2022-03-15
|
|
|
*/
|
|
|
@@ -22,7 +24,7 @@ public class FsMenuScrmServiceImpl implements IFsMenuScrmService
|
|
|
|
|
|
/**
|
|
|
* 查询用户端菜单管理
|
|
|
- *
|
|
|
+ *
|
|
|
* @param menuId 用户端菜单管理ID
|
|
|
* @return 用户端菜单管理
|
|
|
*/
|
|
|
@@ -34,23 +36,25 @@ public class FsMenuScrmServiceImpl implements IFsMenuScrmService
|
|
|
|
|
|
/**
|
|
|
* 查询用户端菜单管理列表
|
|
|
- *
|
|
|
- * @param fsMenu 用户端菜单管理
|
|
|
+ *
|
|
|
+ * @param param 用户端菜单管理
|
|
|
* @return 用户端菜单管理
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<FsMenuScrm> selectFsMenuList(FsMenuScrm fsMenu)
|
|
|
+ @Cacheable(value = "selectFsMenuList", key = "#param")
|
|
|
+ public List<FsMenuScrm> selectFsMenuList(FsMenuScrm param)
|
|
|
{
|
|
|
- return fsMenuMapper.selectFsMenuList(fsMenu);
|
|
|
+ return fsMenuMapper.selectFsMenuList(param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 新增用户端菜单管理
|
|
|
- *
|
|
|
+ *
|
|
|
* @param fsMenu 用户端菜单管理
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
+ @CacheEvict(value = "selectFsMenuList",allEntries = true)
|
|
|
public int insertFsMenu(FsMenuScrm fsMenu)
|
|
|
{
|
|
|
fsMenu.setCreateTime(DateUtils.getNowDate());
|
|
|
@@ -59,11 +63,12 @@ public class FsMenuScrmServiceImpl implements IFsMenuScrmService
|
|
|
|
|
|
/**
|
|
|
* 修改用户端菜单管理
|
|
|
- *
|
|
|
+ *
|
|
|
* @param fsMenu 用户端菜单管理
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
+ @CacheEvict(value = "selectFsMenuList",allEntries = true)
|
|
|
public int updateFsMenu(FsMenuScrm fsMenu)
|
|
|
{
|
|
|
fsMenu.setUpdateTime(DateUtils.getNowDate());
|
|
|
@@ -72,11 +77,12 @@ public class FsMenuScrmServiceImpl implements IFsMenuScrmService
|
|
|
|
|
|
/**
|
|
|
* 批量删除用户端菜单管理
|
|
|
- *
|
|
|
+ *
|
|
|
* @param menuIds 需要删除的用户端菜单管理ID
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
+ @CacheEvict(value = "selectFsMenuList",allEntries = true)
|
|
|
public int deleteFsMenuByIds(Long[] menuIds)
|
|
|
{
|
|
|
return fsMenuMapper.deleteFsMenuByIds(menuIds);
|
|
|
@@ -84,11 +90,12 @@ public class FsMenuScrmServiceImpl implements IFsMenuScrmService
|
|
|
|
|
|
/**
|
|
|
* 删除用户端菜单管理信息
|
|
|
- *
|
|
|
+ *
|
|
|
* @param menuId 用户端菜单管理ID
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
+ @CacheEvict(value = "selectFsMenuList",allEntries = true)
|
|
|
public int deleteFsMenuById(Long menuId)
|
|
|
{
|
|
|
return fsMenuMapper.deleteFsMenuById(menuId);
|