From 83f4b5742d68e2af3a4e9f60630de8444e99582a Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周二, 20 5月 2025 11:53:35 +0800 Subject: [PATCH] 库存高级查询 --- Weben_CMS专用代码生成器/queryExtensions/CmsQueryExtensions/Utils/GetEnumDescriptionUtil.cs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/queryExtensions/CmsQueryExtensions/Utils/GetEnumDescriptionUtil.cs" "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/queryExtensions/CmsQueryExtensions/Utils/GetEnumDescriptionUtil.cs" index bcf3c5b..5facb9e 100644 --- "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/queryExtensions/CmsQueryExtensions/Utils/GetEnumDescriptionUtil.cs" +++ "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/queryExtensions/CmsQueryExtensions/Utils/GetEnumDescriptionUtil.cs" @@ -18,7 +18,7 @@ public static string GetEnumDescription(Enum enumValue) { string value = enumValue.ToString(); - if (string.IsNullOrWhiteSpace(value) || value == "0") return ""; + if (string.IsNullOrEmpty(value) || value == "0") return ""; FieldInfo field = enumValue.GetType().GetField(value); object[] objs = field.GetCustomAttributes(typeof(DescriptionAttribute), false); //鑾峰彇鎻忚堪灞炴�� if (objs == null || objs.Length == 0) //褰撴弿杩板睘鎬ф病鏈夋椂锛岀洿鎺ヨ繑鍥炲悕绉� -- Gitblit v1.9.3