2 次代碼提交 d7ac4ab35f ... eeca2185bf

作者 SHA1 備註 提交日期
  libin eeca2185bf Merge branch 'test' into lib/test 10 小時之前
  libin e533582b6c 通话记录修改 10 小時之前

+ 1 - 1
src/Hotline.Repository.SqlSugar/CallCenter/TrCallRecordRepository.cs

@@ -285,7 +285,7 @@ namespace Hotline.Repository.SqlSugar.CallCenter
                  .WhereIF(!string.IsNullOrEmpty(dto.SensitiveWord), d => SqlFunc.JsonArrayAny(d.Sensitive, dto.SensitiveWord))
                  .WhereIF(!string.IsNullOrEmpty(dto.SensitiveWord), d => SqlFunc.JsonArrayAny(d.Sensitive, dto.SensitiveWord))
                  .WhereIF(dto.IsAiAnswered == true, x => string.IsNullOrEmpty(x.UserId) == true && x.BeginIvrTime.HasValue && x.EndIvrTime.HasValue)
                  .WhereIF(dto.IsAiAnswered == true, x => string.IsNullOrEmpty(x.UserId) == true && x.BeginIvrTime.HasValue && x.EndIvrTime.HasValue)
                  .WhereIF(dto.PhoneTypes != null, x => x.PhoneTypes == dto.PhoneTypes)
                  .WhereIF(dto.PhoneTypes != null, x => x.PhoneTypes == dto.PhoneTypes)
-                 .WhereIF(dto.QuerySelf.HasValue && dto.QuerySelf == true, x => x.UserId == _sessionContext.UserId)
+                 .WhereIF(dto.QuerySelf == 1, x => x.UserId == _sessionContext.UserId)
                  .OrderByDescending(x => x.CreatedTime);
                  .OrderByDescending(x => x.CreatedTime);
         }
         }
 
 

+ 1 - 1
src/Hotline.Share/Dtos/TrCallCenter/TrTelDao.cs

@@ -581,7 +581,7 @@ namespace Hotline.Share.Dtos.TrCallCenter
         /// <summary>
         /// <summary>
         /// 是否自己的通话记录
         /// 是否自己的通话记录
         /// </summary>
         /// </summary>
-        public bool? QuerySelf { get; set; }
+        public int? QuerySelf { get; set; }
     }
     }