|
|
|
@ -27,6 +27,7 @@ import static com.yunxi.scm.framework.common.util.collection.CollectionUtils.con
|
|
|
|
|
import static com.yunxi.scm.module.system.dal.dataobject.permission.MenuDO.ID_ROOT;
|
|
|
|
|
import static com.yunxi.scm.module.system.enums.ErrorCodeConstants.*;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 菜单 Service 实现
|
|
|
|
|
*
|
|
|
|
@ -45,7 +46,9 @@ 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, key = "#reqVO.permission", condition="#reqVO.permission != null")
|
|
|
|
|
// @CacheEvict(value = RedisKeyConstants.PERMISSION_MENU_ID_LIST, key = "#reqVO.permission",
|
|
|
|
|
// condition="T(com.yunxi.scm.module.system.enums.permission.MenuTypeEnum).isNoDIR(#reqVO.type)")
|
|
|
|
|
public Long createMenu(MenuCreateReqVO reqVO) {
|
|
|
|
|
// 校验父菜单存在
|
|
|
|
|
validateParentMenu(reqVO.getParentId(), null);
|
|
|
|
|