From 19f1fc7ef6b521f9821acc086f435735eef76f8c Mon Sep 17 00:00:00 2001 From: xxe Date: Wed, 12 Oct 2022 16:14:05 +0800 Subject: [PATCH] 1 --- HKLib/Dto/ReportDto.cs | 30 ++++++++++++++++++++++++++++++ HKLib/Interfaces/HKLibHelper.cs | 15 ++++++++++++++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 HKLib/Dto/ReportDto.cs diff --git a/HKLib/Dto/ReportDto.cs b/HKLib/Dto/ReportDto.cs new file mode 100644 index 0000000..60bb9eb --- /dev/null +++ b/HKLib/Dto/ReportDto.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace HKLib.Dto +{ + public class ReportDto + { + /// + /// 开始时间 + /// + public DateTime STime { get; set; } + /// + /// 结束时间 + /// + public DateTime ETime { get; set; } + /// + /// 姓名 + /// + public string Name { get; set; } + /// + /// 组织 + /// + public string Org { get; set; } + /// + /// 设备位置 + /// + public string Location { get; set; } + } +} diff --git a/HKLib/Interfaces/HKLibHelper.cs b/HKLib/Interfaces/HKLibHelper.cs index 8963c6d..a5683f2 100644 --- a/HKLib/Interfaces/HKLibHelper.cs +++ b/HKLib/Interfaces/HKLibHelper.cs @@ -49,7 +49,7 @@ namespace HKLib.Interfaces }).Build().RunStringFirst(); } /// - /// 变更卡状态 + /// 变更卡状态 销户 /// /// public static void CardStutasChange(CardStutasDto input) @@ -62,5 +62,18 @@ namespace HKLib.Interfaces }).Build().RunStringFirst(); ServiceQueryPush.QueryPush.PushMQ(input, "CardStutasChanged", MQEnum.Top); } + /// + /// 报表数据 + /// + /// + public static void Report(ReportDto input) + { + IHttpMultiClient.HttpMulti.AddNode(t => + { + t.NodePath = $"{Configer.SaasRoute}"; + t.ReqType = MultiType.POST; + t.JsonParam = input.ToJson(); + }).Build().RunStringFirst(); + } } }