浏览代码

Merge branch 'release_20250519tj' of Fengwo/hotline into release

还原自贡历史工单查询
tangjiang 4 天之前
父节点
当前提交
711cd0e23d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Hotline.Api/Controllers/OrderController.cs

+ 2 - 1
src/Hotline.Api/Controllers/OrderController.cs

@@ -4561,7 +4561,8 @@ public class OrderController : BaseController
             .Includes(d => d.OrderScreens)
             .Includes(d => d.OrderTerminates)
             .Where(d => d.Contact == dto.PhoneNo)
-            .WhereIF(_sessionContext.OrgIsCenter == false, d => d.IsSecret == false)
+              .WhereIF(_sessionContext.OrgIsCenter == false && (_appOptions.Value.IsLuZhou == true || _appOptions.Value.IsYiBin == true),
+            d => d.IsSecret == false)
             .WhereIF(!string.IsNullOrEmpty(dto.OrderId) && _appOptions.Value.IsLuZhou == false, d => d.Id != dto.OrderId)
             .WhereIF(!string.IsNullOrEmpty(dto.Keyword), d => d.Title.Contains(dto.Keyword!) || d.No.Contains(dto.Keyword!))
             .Select(d => new OrderHistoryOutDto