Quellcode durchsuchen

Merge branch 'feature/snapshot' into test

qinchaoyue vor 1 Monat
Ursprung
Commit
42da249729
1 geänderte Dateien mit 9 neuen und 0 gelöschten Zeilen
  1. 9 0
      src/Hotline.Api/Controllers/OrderController.cs

+ 9 - 0
src/Hotline.Api/Controllers/OrderController.cs

@@ -4453,6 +4453,15 @@ public class OrderController : BaseController
             }
         }
 
+        if (_systemSettingCacheManager.Snapshot)
+        {
+            await _orderSnapshotRepository.Queryable()
+                .Where(m => m.Id == id)
+                .Select(m => new { m.IndustryId, m.IndustryName })
+                .FirstAsync(HttpContext.RequestAborted)
+                .Then(m => { dto.IndustryName = m.IndustryName; dto.IndustryId = m.IndustryId; });
+        }
+
         return _sessionContext.OrgIsCenter ? dto : dto.DataMask();
     }