ningshuxia
2022-11-30 618f76fd41527d4fec0eefd1d492a8c52da79032
Service/IStation.Service.Basic/property/general_property/GeneralProperty.cs
@@ -238,12 +238,21 @@
        }
        /// <summary>
        /// 根据 PropertyName 判断是否存在
        /// 判断 PropertyName 是否存在
        /// </summary>
        public bool IsExistPropertyName(string ObjectType, string PropertyName)
        {
            var all = GetByObjectType(ObjectType);
            return all.Exists(x => x.ObjectType == ObjectType && x.PropertyName == PropertyName);
            return all.Exists(x => x.PropertyName == PropertyName);
        }
        /// <summary>
        /// 判断 PropertyName 是否存在 排序特定ID
        /// </summary>
        public bool IsExistPropertyNameExceptID(string ObjectType, string PropertyName, long ExceptID)
        {
            var all = GetByObjectType(ObjectType);
            return all.Exists(x => x.PropertyName == PropertyName&&x.ID!= ExceptID);
        }
        #endregion