代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/Utilities/EntityProperties.cs
@@ -228,10 +228,13 @@ { foreach (PropertyInfo property in properties) { SugarColumn sugarColumn = property.GetCustomAttribute<SugarColumn>(); SugarColumn? sugarColumn = property.GetCustomAttribute<SugarColumn>(); if (sugarColumn != null) { if (sugarColumn.IsPrimaryKey) return property.Name; } } return null; }