字典类型新增是否系统字典字段

This commit is contained in:
不做码农
2021-12-19 19:52:59 +08:00
parent a2644859bd
commit 8f413ebbf6
6 changed files with 49 additions and 22 deletions

View File

@@ -3,6 +3,7 @@ using Infrastructure.Enums;
using Infrastructure.Model;
using Microsoft.AspNetCore.Mvc;
using System;
using ZR.Admin.WebApi.Extensions;
using ZR.Admin.WebApi.Filters;
using ZR.Common;
using ZR.Model;
@@ -89,7 +90,7 @@ namespace ZR.Admin.WebApi.Controllers.System
return ToResponse(ApiResult.Error($"修改字典'{dict.DictName}'失败,字典类型已存在"));
}
//设置添加人
dict.Update_by = HttpContext.User.Identity.Name;
dict.Update_by = HttpContext.GetName();
return SUCCESS(SysDictService.UpdateDictType(dict));
}