From c1a499c5ea40c2ba778bc065a7a80530be885c5c Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Wed, 31 Jan 2024 15:41:24 +0800 Subject: [PATCH] z --- .../System/Services/MenuService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BPA.SAAS.Manage.Application/System/Services/MenuService.cs b/BPA.SAAS.Manage.Application/System/Services/MenuService.cs index 883efeb..7abe8f4 100644 --- a/BPA.SAAS.Manage.Application/System/Services/MenuService.cs +++ b/BPA.SAAS.Manage.Application/System/Services/MenuService.cs @@ -131,10 +131,10 @@ namespace BPA.SAAS.Manage.Application.System.Services public async Task Add(MenuDtoInput input) { var dicttypes = _db.Queryable().Where(a => a.Code == input.Code).ToList(); - //if (dicttypes.Count() > 0) - //{ - // throw Oops.Oh("编码已存在"); - //} + if (dicttypes.Count() > 0) + { + throw Oops.Oh("编码已存在"); + } if (input.Name.Length > 20) { throw Oops.Oh("菜单名称过长");