From 7d410c1f0d4e36f8281ce2277f355c9abf1c231b Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周五, 16 5月 2025 16:19:36 +0800 Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/HIA24016N_PipeLineDemo --- PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application.Contracts/Services/ICallMaterialOrderRecordAppService.cs | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 42 insertions(+), 3 deletions(-) diff --git a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application.Contracts/Services/ICallMaterialOrderRecordAppService.cs b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application.Contracts/Services/ICallMaterialOrderRecordAppService.cs index 0dc6429..52fe8b8 100644 --- a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application.Contracts/Services/ICallMaterialOrderRecordAppService.cs +++ b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application.Contracts/Services/ICallMaterialOrderRecordAppService.cs @@ -1,5 +1,8 @@ using CMS.Plugin.PipeLineLems.Application.Contracts.Dtos.CallMaterialOrderRecord; using Volo.Abp.Application.Services; +using CmsQueryExtensions.Entitys; +using System.Linq.Expressions; +using CMS.Plugin.PipeLineLems.Domain.CallMaterialOrderRecord; namespace CMS.Plugin.PipeLineLems.Application.Contracts.Services; @@ -13,14 +16,31 @@ /// </summary> /// <param name="ids"></param> /// <returns></returns> - Task<List<CallMaterialOrderRecordDto>> CloneAsync(IEnumerable<Guid> ids); + Task<List<CallMaterialOrderRecordDto>> CloneAsync(IEnumerable<Guid> ids, MyCurrentUser myCurrentUser); /// <summary> /// 鍒犻櫎鍙枡璁板綍琛� /// </summary> /// <param name="ids"></param> /// <returns></returns> - Task DeleteManyAsync(IEnumerable<Guid> ids); + Task DeleteManyAsync(IEnumerable<Guid> ids, MyCurrentUser myCurrentUser); + + /// <summary> + /// 鐗╃悊鍒犻櫎鍙枡璁板綍琛� + /// </summary> + /// <param name="id">涓婚敭ID</param> + /// <param name="cancellationToken"></param> + /// <returns></returns> + Task DeletePermanentlyAsync(Guid id, MyCurrentUser myCurrentUser, CancellationToken cancellationToken = default); + + + /// <summary> + /// 鎵归噺鐗╃悊鍒犻櫎鍙枡璁板綍琛紙鐩存帴鍒犻櫎锛屼笉杞垹闄わ級 + /// </summary> + /// <param name="ids">瑕佸垹闄ょ殑涓婚敭ID鍒楄〃</param> + /// <param name="cancellationToken"></param> + /// <returns></returns> + Task BatchDeletePermanentlyAsync(IEnumerable<Guid> ids, MyCurrentUser myCurrentUser, CancellationToken cancellationToken = default); /// <summary> /// 璋冩暣鎺掑簭鍙枡璁板綍琛� @@ -35,7 +55,7 @@ /// </summary> /// <param name="input"></param> /// <returns></returns> - Task ImportAsync(CallMaterialOrderRecordsImportModel input); + Task ImportAsync(CallMaterialOrderRecordsImportModel input, MyCurrentUser myCurrentUser); /// <summary> /// 瀵煎嚭鍙枡璁板綍琛� @@ -43,4 +63,23 @@ /// <param name="input"></param> /// <returns></returns> Task<(Dictionary<string, object> Sheets, string FileName)> ExportAsync(GetCallMaterialOrderRecordInput input); + + /// <summary> + /// 鏍规嵁鏉′欢鑾峰彇鍙枡璁板綍琛ㄥ垪琛� + /// </summary> + /// <param name="whereConditions"></param> + /// <param name="cancellationToken"></param> + /// <returns></returns> + Task<List<CallMaterialOrderRecord>> GetListByFilterAsync(Expression<Func<CallMaterialOrderRecord, bool>> whereConditions, CancellationToken cancellationToken = default); + + + /// <summary> + /// 鏍规嵁鏉′欢鑾峰彇鍗曚釜鍙枡璁板綍琛� + /// </summary> + /// <param name="whereConditions"></param> + /// <param name="isMultipleThrowException">鏄惁鏌ヨ鍑哄鏉″氨鎶ラ敊</param> + /// <param name="cancellationToken"></param> + /// <returns></returns> + /// <exception cref="UserFriendlyException"></exception> + Task<CallMaterialOrderRecord> GetSingleByFilterAsync(Expression<Func<CallMaterialOrderRecord, bool>> whereConditions, bool is鈥婱ultipleThrowException = false, CancellationToken cancellationToken = default); } -- Gitblit v1.9.3