|
|
@@ -11,6 +11,7 @@ using OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice;
|
|
|
using Dm.util;
|
|
|
using OASystem.API.OAMethodLib.DoubaoAPI;
|
|
|
using OASystem.API.OAMethodLib.QiYeWeChatAPI;
|
|
|
+using OASystem.Domain.Dtos.QiYeWeChat;
|
|
|
|
|
|
namespace OASystem.API.Controllers
|
|
|
{
|
|
|
@@ -1122,15 +1123,15 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
|
|
|
[HttpPost]
|
|
|
- public async Task<IActionResult> TestQiYeWeChat()
|
|
|
+ public async Task<IActionResult> TestQiYeWeChat(DateTime startDt, DateTime endDt, int cursor = 0, int limit = 10)
|
|
|
{
|
|
|
var jw = JsonView(false);
|
|
|
- DateTime now = DateTime.Now;
|
|
|
- DateTime startDt = now.AddMonths(-1);
|
|
|
- long starttime = (long)(startDt.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
|
|
|
- long endtime = (long)(now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
|
|
|
+ List<JournalFilter> filters = new List<JournalFilter>()
|
|
|
+ {
|
|
|
+ new JournalFilter() { key = JournalFilterKey.template_id, value = "C4Rby4W2jqwk9mfiN3fZbQZHaawzwNZgn8vdt4g8y" }
|
|
|
+ };
|
|
|
|
|
|
- var result = await _qiYeWeChatApiService.GetJournalRecordListAsync(starttime, endtime);
|
|
|
+ var result = await _qiYeWeChatApiService.GetJournalRecordListAsync(startDt, endDt, cursor, limit, filters);
|
|
|
jw.Code = 200;
|
|
|
jw.Msg = "SUCCESS!";
|
|
|
jw.Data = result;
|