duheng
2024-12-04 ca1ccd0dd9f2d6936368f07d14a2b29b309fd151
Service/HStation.Service.Assets.Core/05-service/14-Bluntead/03-BluneteadCoefficient/AssetsBluntheadCoefficient.cs
@@ -80,7 +80,17 @@
           AssetsBluntheadCoefficientCacheHelper.Publish(key);
        }
        #endregion
        //移除所有缓存
        private static void RemoveAllCache()
        {
            var all = GetCache();
            all.Clear();
            AssetsBluntheadCoefficientCacheHelper.Trigger();
        }
        #endregion Cache
        #region Query
@@ -115,7 +125,9 @@
           return all.Where(x => Ids.Contains(x.ID)).ToList(); 
        }
        #endregion
        #endregion Query
        #region Insert
@@ -158,7 +170,7 @@
           return false;
        }
 
        #endregion
        #endregion Insert
        #region Update
@@ -204,8 +216,7 @@
           return bol;
        }
 
        #endregion
        #endregion Update
        #region Delete
@@ -224,8 +235,20 @@
           return bol;
        }
 
        #endregion
        /// <summary>
        /// 删除全部
        /// </summary>
        public bool DeleteAll()
        {
            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IAssetsBluntheadCoefficient>();
            var bol = dal.DeleteAll();
            if (bol)
            {
                RemoveAllCache();
            }
            return bol;
        }
        
        #endregion Delete
    }
}