Explorar o código

Merge branch 'feature/snapshot' into dev

qinchaoyue hai 1 mes
pai
achega
c6806d2c2d
Modificáronse 1 ficheiros con 12 adicións e 1 borrados
  1. 12 1
      src/Hotline.Api/Controllers/Snapshot/BiSnapshotController.cs

+ 12 - 1
src/Hotline.Api/Controllers/Snapshot/BiSnapshotController.cs

@@ -275,9 +275,20 @@ public class BiSnapshotController : BaseController
     [HttpGet("re_transact-statistics")]
     public async Task<ReTransactStatisticsOutDto> GetReTransactStatisticsAsync([FromQuery] ReTransactStatisticsInDto dto)
     {
+        var headers = _systemDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.InstaShotSpecialReason).Adapt<IList<SystemDicDataOutDto>>();
+        headers.Add(new SystemDicDataOutDto 
+        {
+            DicDataName = "OrgName",
+            DicDataValue = "OrgName",
+        });
+        headers.Add(new SystemDicDataOutDto
+        { 
+            DicDataValue = "OrgCode",
+            DicDataName = "OrgCode"
+        });
         return new ReTransactStatisticsOutDto
         {
-            Headers = _systemDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.InstaShotSpecialReason).Adapt<IList<SystemDicDataOutDto>>(),
+            Headers = headers,
             Data = _biSnapshotApplication.GetReTransactStatistics(dto)
         };
     }