From 06eff2094e17b8ed3452e44a6d77b729a7621919 Mon Sep 17 00:00:00 2001 From: qin <a@163.com> Date: 星期四, 06 三月 2025 14:08:28 +0800 Subject: [PATCH] 智能盒子迁移.net core --- BLL/HStation.BLL.TransferFile.Core/04-bll/01-user/TransferFileUser.cs | 127 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 127 insertions(+), 0 deletions(-) diff --git a/BLL/HStation.BLL.TransferFile.Core/04-bll/01-user/TransferFileUser.cs b/BLL/HStation.BLL.TransferFile.Core/04-bll/01-user/TransferFileUser.cs index 31d9939..257327a 100644 --- a/BLL/HStation.BLL.TransferFile.Core/04-bll/01-user/TransferFileUser.cs +++ b/BLL/HStation.BLL.TransferFile.Core/04-bll/01-user/TransferFileUser.cs @@ -9,9 +9,136 @@ { private readonly HStation.CAL.ITransferFileUser _cal = CALCreateHelper.CreateCAL<HStation.CAL.ITransferFileUser>(); + /// <summary> + /// 鑾峰彇鎵�鏈� + /// </summary> + public async Task<List<TransferFileUserVmo>> GetAll() + { + var dtoList = await _cal.GetAll(); + return Dto2Vmos(dtoList); + } + /// <summary> + /// 閫氳繃 ID 鑾峰彇 + /// </summary> + public async Task<TransferFileUserVmo> GetByID(long ID) + { + var dto = await _cal.GetByID(ID); + return Dto2Vmo(dto); + } + /// <summary> + /// 閫氳繃 Ids 鑾峰彇 + /// </summary> + public async Task<List<TransferFileUserVmo>> GetByIds(List<long> Ids) + { + var dto = await _cal.GetByIds(Ids); + return Dto2Vmos(dto); + } + /// <summary> + /// 閫氳繃 Name 鑾峰彇 + /// </summary> + public async Task<TransferFileUserVmo> GetByName(string Name) + { + var dto = await _cal.GetByName(Name); + return Dto2Vmo(dto); + } + #region Insert + + /// <summary> + /// 鎻掑叆涓�鏉� + /// </summary> + public async Task<long> Insert(TransferFileUserVmo input) + { + var dto = Vmo2AddDto(input); + var id = await _cal.Insert(dto); + return id; + } + + #endregion + + #region Update + + /// <summary> + /// 鏇存柊涓�鏉� + /// </summary> + public async Task<bool> Update(TransferFileUserVmo input) + { + var dto = Vmo2UpdateDto(input); + return await _cal.Update(dto); + } + + /// <summary> + /// 鏇存柊鎺掑簭鐮� + /// </summary> + public async Task<bool> UpdateSortCode(long ID, int SortCode) + { + return await _cal.UpdateSortCode(ID, SortCode); + } + + /// <summary> + /// 鎵归噺鏇存柊鎺掑簭鐮� + /// </summary> + public async virtual Task<bool> UpdateSorter(List<Yw.Vmo.Sorter> Sorters) + { + var dtoList = Sorters.ToDtoList(); + var bol = await _cal.UpdateSorter(dtoList); + return bol; + } + + /// <summary> + /// 婵�娲� + /// </summary> + public async Task<bool> Active(string Name) + { + var input = new ActiveTransferFileUserInput() { Name = Name }; + return await _cal.Active(input); + } + + /// <summary> + /// 澶辨晥 + /// </summary> + public async Task<bool> Invalid(string Name, DateTime InvalidTime) + { + var input = new InvalidTransferFileUserInput() { Name = Name, InvalidTime = InvalidTime }; + return await _cal.Invalid(input); + } + + #endregion + + #region Exist + + /// <summary> + /// 鍒ゆ柇 Name 鏄惁瀛樺湪 + /// </summary> + public async Task<bool> IsExistName(string Name) + { + return await _cal.IsExistName(Name); + } + + /// <summary> + /// 鍒ゆ柇 Name 鏄惁瀛樺湪 ExceptID + /// </summary> + public async Task<bool> IsExistNameExceptID(string Name, long ExceptID) + { + var input = new NameExceptInput() { Name = Name, ExceptID = ExceptID }; + return await _cal.IsExistNameExceptID(input); + } + + #endregion + + #region Delete + + /// <summary> + /// 閫氳繃 ID 鍒犻櫎 + /// </summary> + public async Task<bool> DeleteByID(long input) + { + return await _cal.DeleteByID(input); + } } + + #endregion } \ No newline at end of file -- Gitblit v1.9.3