yuanrf 3 months ago
parent
commit
a4894010ec
1 changed files with 1 additions and 0 deletions
  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);