Yw.Application.DMA.Core/Properties/PublishProfiles/FolderProfile.pubxml.user | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Yw.Application.DMA.Core/Yw.Application.DMA.Core.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Yw.Service.DMA.Core/5-service/3-dma_site_binding/DmaSiteBinding.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Yw.Service.DMA.Core/Properties/PublishProfiles/FolderProfile.pubxml.user | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Yw.Service.DMA.Core/Yw.Service.DMA.Core.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Yw.Application.DMA.Core/Properties/PublishProfiles/FolderProfile.pubxml.user
@@ -4,6 +4,6 @@ --> <Project> <PropertyGroup> <History>True|2023-12-14T01:22:56.3156463Z;True|2023-12-05T17:05:07.9898436+08:00;True|2023-12-05T17:04:51.8319435+08:00;True|2023-07-13T12:10:11.2591498+08:00;True|2023-05-25T18:02:16.3580168+08:00;True|2023-05-25T15:44:32.4909866+08:00;</History> <History>True|2023-12-14T03:25:21.0608059Z;True|2023-12-14T09:22:56.3156463+08:00;True|2023-12-05T17:05:07.9898436+08:00;True|2023-12-05T17:04:51.8319435+08:00;True|2023-07-13T12:10:11.2591498+08:00;True|2023-05-25T18:02:16.3580168+08:00;True|2023-05-25T15:44:32.4909866+08:00;</History> </PropertyGroup> </Project> Yw.Application.DMA.Core/Yw.Application.DMA.Core.csproj
@@ -7,7 +7,7 @@ <RootNamespace>Yw.Application</RootNamespace> <GenerateDocumentationFile>True</GenerateDocumentationFile> <GeneratePackageOnBuild>True</GeneratePackageOnBuild> <Version>1.0.1</Version> <Version>1.0.2</Version> </PropertyGroup> <ItemGroup> @@ -30,7 +30,7 @@ <ItemGroup> <PackageReference Include="Yw.Application.Core" Version="1.2.9" /> <PackageReference Include="Yw.Service.DMA.Core" Version="1.0.1" /> <PackageReference Include="Yw.Service.DMA.Core" Version="1.0.2" /> </ItemGroup> <ItemGroup> Yw.Service.DMA.Core/5-service/3-dma_site_binding/DmaSiteBinding.cs
@@ -205,6 +205,47 @@ return list; } /// <summary> /// 通过 MeterID 获取 /// </summary> public List<Model.DmaSiteBinding> GetByMeterID(long MeterID) { var all = GetAll(); return all.Where(x => x.MeterID == MeterID).OrderByDescending(x => x.BindingTime).ToList(); } /// <summary> /// 通过 MeterID 获取有效绑定 /// </summary> public Model.DmaSiteBinding GetValidByMeterID(long MeterID) { var all = GetByMeterID(MeterID); var model = all?.Find(x => !x.UnBindingTime.HasValue); return model; } /// <summary> /// 通过 MeterIds 获取 /// </summary> public List<Model.DmaSiteBinding> GetByMeterIds(List<long> MeterIds) { if (MeterIds == null || MeterIds.Count < 1) { return default; } var all = GetAll(); return all.Where(x => MeterIds.Contains(x.MeterID)).OrderByDescending(x => x.BindingTime).ToList(); } /// <summary> /// 通过 MeterIds 获取有效绑定 /// </summary> public List<Model.DmaSiteBinding> GetValidByMeterIds(List<long> MeterIds) { var list = GetByMeterIds(MeterIds); list = list?.Where(x => !x.UnBindingTime.HasValue).OrderByDescending(x => x.BindingTime).ToList(); return list; } #endregion @@ -313,6 +354,24 @@ return all.Exists(x => x.SiteID == SiteID && !x.UnBindingTime.HasValue); } /// <summary> /// 通过 MeterID /// </summary> public bool IsExsitByMeterID(long MeterID) { var all = GetAll(); return all.Exists(x => x.MeterID == MeterID); } /// <summary> /// 通过 MeterID 判断是否存在有效绑定 /// </summary> public bool IsExistValidByMeterID(long MeterID) { var all = GetAll(); return all.Exists(x => x.MeterID == MeterID && !x.UnBindingTime.HasValue); } #endregion #region Delete Yw.Service.DMA.Core/Properties/PublishProfiles/FolderProfile.pubxml.user
@@ -4,6 +4,6 @@ --> <Project> <PropertyGroup> <History>True|2023-12-14T01:18:59.7684854Z;True|2023-12-05T17:01:08.6045358+08:00;True|2023-12-05T17:00:59.6449800+08:00;True|2023-07-13T11:54:33.7989040+08:00;True|2023-07-13T11:54:23.3967174+08:00;True|2023-07-06T09:49:52.7407983+08:00;True|2023-05-25T15:37:23.5406830+08:00;False|2023-05-25T15:36:09.3589239+08:00;</History> <History>True|2023-12-14T03:24:08.6483638Z;True|2023-12-14T09:18:59.7684854+08:00;True|2023-12-05T17:01:08.6045358+08:00;True|2023-12-05T17:00:59.6449800+08:00;True|2023-07-13T11:54:33.7989040+08:00;True|2023-07-13T11:54:23.3967174+08:00;True|2023-07-06T09:49:52.7407983+08:00;True|2023-05-25T15:37:23.5406830+08:00;False|2023-05-25T15:36:09.3589239+08:00;</History> </PropertyGroup> </Project> Yw.Service.DMA.Core/Yw.Service.DMA.Core.csproj
@@ -7,7 +7,7 @@ <RootNamespace>Yw</RootNamespace> <GenerateDocumentationFile>True</GenerateDocumentationFile> <GeneratePackageOnBuild>True</GeneratePackageOnBuild> <Version>1.0.1</Version> <Version>1.0.2</Version> <Description>引用升级</Description> </PropertyGroup>