From 3b99d55ef95803ca5b601acc202b4b2baa9ec622 Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周三, 14 5月 2025 11:21:59 +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