!13 fix(#IVY9T): 字典表维护页面字典代码长度大于50时字符串被截断

Merge pull request !13 from kasenhoo/dev-hotfix
This commit is contained in:
kasenhoo 2019-04-26 22:57:50 +08:00 committed by Argo
commit 8d4b0952da
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ namespace Bootstrap.DataAccess
{
if (dict.Category.Length > 50) dict.Category = dict.Category.Substring(0, 50);
if (dict.Name.Length > 50) dict.Name = dict.Name.Substring(0, 50);
if (dict.Code.Length > 50) dict.Code = dict.Code.Substring(0, 50);
if (dict.Code.Length > 500) dict.Code = dict.Code.Substring(0, 500);
DbManager.Create().Save(dict);
return true;