Ver Fonte

Merge branch 'feature/snapshot' into dev

qinchaoyue há 1 mês atrás
pai
commit
c6806d2c2d

+ 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)
         };
     }