瀏覽代碼

Merge branch 'master' into kitchenmanage

tmp
zhaoy 9 月之前
父節點
當前提交
0aa1ae5357
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      BPA.SAAS.Manage.Application/System/Services/MenuService.cs

+ 4
- 4
BPA.SAAS.Manage.Application/System/Services/MenuService.cs 查看文件

@@ -102,10 +102,10 @@ namespace BPA.SAAS.Manage.Application.System.Services
public async Task<bool> Add(MenuDtoInput input)
{
var dicttypes = _db.Queryable<BPA_Menu>().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("菜单名称过长");


Loading…
取消
儲存