From 52f92e3728e82e525e88fe893181bb1283b760e8 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期二, 05 八月 2025 10:35:36 +0800 Subject: [PATCH] fix: s --- FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs b/FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs index 5bf2ae7..3464351 100644 --- a/FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs +++ b/FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs @@ -40,10 +40,10 @@ { var entity = new Menu(); entity.Path = $"{parent.Path}{parent.Code}/"; - entity.Type = EnumMenuType.Button; + entity.Type = EnumMenuType.Field; entity.VisitLevel = parent.VisitLevel; request.Adapt(entity); - if (await CheckExist(entity)) throw Oops.Oh(EnumErrorCodeType.s405, "鑿滃崟缂栧彿"); + if (await CheckExist(entity)) throw Oops.Oh(EnumErrorCodeType.s406, "鑿滃崟缂栧彿"); await rep.InsertAsync(entity); return entity.Id; } @@ -59,6 +59,7 @@ return await rep.AsQueryable().AsNoTracking() .AnyAsync(it => it.ParentId == entity.ParentId + && it.Type == entity.Type && it.Group == entity.Group && it.Code == entity.Code && it.Id != entity.Id); -- Gitblit v1.9.1