From 1fc0b4ed96d4c4b1ff7142926239998de32b2ada Mon Sep 17 00:00:00 2001 From: ningshuxia <ningshuxia0927@outlook.com> Date: 星期一, 06 二月 2023 23:03:12 +0800 Subject: [PATCH] BLL Product --- DAL/Local/IStation.DAL.LocalFile.Logic/elec_price/ElecPrice.cs | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/DAL/Local/IStation.DAL.LocalFile.Logic/elec_price/ElecPrice.cs b/DAL/Local/IStation.DAL.LocalFile.Logic/elec_price/ElecPrice.cs index 705dd06..5b14212 100644 --- a/DAL/Local/IStation.DAL.LocalFile.Logic/elec_price/ElecPrice.cs +++ b/DAL/Local/IStation.DAL.LocalFile.Logic/elec_price/ElecPrice.cs @@ -35,8 +35,8 @@ return default; var path = GetFolderPath(projectId); var all = FileIdHelper<Entity.ElecPrice>.QueryAll(path); - var entitys = all?.ToList(); - return entitys; + var entities = all?.ToList(); + return entities; } /// <summary> @@ -49,8 +49,8 @@ if (id < 0) return default; var all = QueryAll(projectId); - var entitys = all?.ToList(); - return entitys?.Find(t => t.Id == id); + var entities = all?.ToList(); + return entities?.Find(t => t.Id == id); } /// <summary> @@ -63,8 +63,8 @@ if (ids == null || ids.Count() < 1) return default; var all = QueryAll(projectId); - var entitys = all?.Where(x => ids.Contains(x.Id)).ToList(); - return entitys; + var entities = all?.Where(x => ids.Contains(x.Id)).ToList(); + return entities; } #endregion @@ -107,22 +107,22 @@ if (rhs == null) return default; var path = GetFolderPath(projectId); - var entity = FileIdHelper<Entity.ElecPrice>.InsertR(path, rhs); - return entity; + var entities = FileIdHelper<Entity.ElecPrice>.InsertR(path, rhs); + return entities; } /// <summary> /// 鎵归噺鎻掑叆骞惰繑鍥� /// </summary> - public List<Entity.ElecPrice> InsertRs(long projectId, IEnumerable<Entity.ElecPrice> list) + public List<long> InsertsR(long projectId, IEnumerable<Entity.ElecPrice> list) { if (projectId < 0) return default; if (list == null || list.Count() < 1) return default; var path = GetFolderPath(projectId); - var entitys = FileIdHelper<Entity.ElecPrice>.InsertRs(path, list); - return entitys; + var entities = FileIdHelper<Entity.ElecPrice>.InsertRs(path, list); + return entities?.Select(x => x.Id).ToList(); } #endregion -- Gitblit v1.9.3