mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 04:08:43 +08:00 
			
		
		
		
	修改创建菜单时permission为空,缓存KEY 为空的BUG ,判断 reqVO.permission 为空时,不做 @CacheEvict 的操作
This commit is contained in:
		@@ -45,7 +45,7 @@ public class MenuServiceImpl implements MenuService {
 | 
			
		||||
    private TenantService tenantService;
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    @CacheEvict(value = RedisKeyConstants.PERMISSION_MENU_ID_LIST, key = "#reqVO.permission")
 | 
			
		||||
    @CacheEvict(value = RedisKeyConstants.PERMISSION_MENU_ID_LIST, condition = "#reqVO.permission != null",  key = "#reqVO.permission")
 | 
			
		||||
    public Long createMenu(MenuCreateReqVO reqVO) {
 | 
			
		||||
        // 校验父菜单存在
 | 
			
		||||
        validateParentMenu(reqVO.getParentId(), null);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user