Преглед изворни кода

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

tangjiang пре 1 месец
родитељ
комит
a390b53384
1 измењених фајлова са 9 додато и 0 уклоњено
  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();
     }