helongyang
昨天 cb25acc46bf41863e068b6f968f1592b7a14d1c9
´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/WIDESEA_Core/Utilities/EntityProperties.cs
@@ -88,16 +88,19 @@
                else
                {
                    int length = sugarColumn.Length;
                    if (length == 0) { return (true, null, value); }
                    //判断双字节与单字段
                    else if (length < 8000 &&
                        ((dbType.Substring(0, 1) != "n"
                        && Encoding.UTF8.GetBytes(val.ToCharArray()).Length > length)
                         || val.Length > length)
                         )
                    if (sugarColumn != null)
                    {
                        reslutMsg = $"最多只能【{length}】个字符。";
                        int length = sugarColumn.Length;
                        if (length == 0) { return (true, null, null); }
                        //判断双字节与单字段
                        else if (length < 8000 &&
                            ((dbType.Substring(0, 1) != "n"
                            && Encoding.UTF8.GetBytes(val.ToCharArray()).Length > length)
                             || val.Length > length)
                             )
                        {
                            reslutMsg = $"最多只能【{length}】个字符。";
                        }
                    }
                }
            }