From cde56aae50adc11ff8db84e424d873843c566bfd Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期一, 24 二月 2025 23:40:41 +0800 Subject: [PATCH] 优化WCS移库逻辑 --- 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs" index b35fc98..5f57b15 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs" @@ -7,6 +7,7 @@ using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; +using WIDESEA_Core.Enums; namespace WIDESEA_Core.BaseRepository { @@ -69,6 +70,10 @@ bool DeleteDataById(object id); Task<bool> DeleteDataByIdAsync(object id); + + bool DeleteAndMoveIntoHty(TEntity entity, OperateType operateType); + + bool DeleteAndMoveIntoHty(List<TEntity> entities, OperateType operateType); /// <summary> /// 閫氳繃涓婚敭鏁版嵁鍒犻櫎澶氭潯鏁版嵁 @@ -359,6 +364,14 @@ Expression<Func<T, T2, bool>> whereExpressionT1, Expression<Func<TResult, bool>> whereExpression); + List<TResult> QueryTabs<T, T2, TResult>( + Expression<Func<T, T2, bool>> joinExpression, + Expression<Func<T, T2, TResult>> selectExpression, + Expression<Func<T, bool>> whereExpressionT1, + Expression<Func<T2, bool>> whereExpressionT2, + Expression<Func<TResult, bool>> whereExpression); + + Task<List<TResult>> QueryTabsAsync<T, T2, TResult>( Expression<Func<T, T2, object[]>> joinExpression, Expression<Func<T, T2, TResult>> selectExpression, -- Gitblit v1.9.3