yuanrf 3 月之前
父節點
當前提交
a4894010ec
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      OASystem/OASystem.Api/Controllers/PersonnelModuleController.cs

+ 1 - 0
OASystem/OASystem.Api/Controllers/PersonnelModuleController.cs

@@ -2271,6 +2271,7 @@ OPTION (MAXRECURSION 0); -- 允许无限递归      ";
 
             RefAsync<int> total = 0;//REF和OUT不支持异步,想要真的异步这是最优解
             var entities = await _sqlSugar.Queryable<Per_AssessmentSetting>()
+                                 .Where(x=>x.IsDel == 0)
                                  .WhereIF(!string.IsNullOrEmpty(dto.SearchValue), e => e.Name.Contains(dto.SearchValue))       
                                  .ToPageListAsync(dto.pageIndex, dto.pageSize, total);