Sfoglia il codice sorgente

Merge branch 'test' of http://110.188.24.182:10023/Fengwo/hotline into test

tangjiang 1 mese fa
parent
commit
a390b53384
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  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();
     }