yuanrf 4 months ago
parent
commit
11bab65633
1 changed files with 2 additions and 2 deletions
  1. 2 2
      OASystem/OASystem.Api/Controllers/PersonnelModuleController.cs

+ 2 - 2
OASystem/OASystem.Api/Controllers/PersonnelModuleController.cs

@@ -934,7 +934,7 @@ namespace OASystem.API.Controllers
         /// <returns></returns>
         [HttpPost]
         [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
-        public async Task<IActionResult> Test(string startDt, string endDt)
+        public async Task<IActionResult> Test(string startDt, string endDt, int code)
         {
             UserIdListView userIdListView = await _qiYeWeChatApiService.GetUserIdListAsync();
             if (userIdListView.errcode != 0)
@@ -946,7 +946,7 @@ namespace OASystem.API.Controllers
             List<string> qyWhchatIdList = new List<string>();
             qyWhchatIdList = userIdListView.dept_user.Select(it => it.userid).ToList();
 
-            var data = await _qiYeWeChatApiService.GetCheckinDataAsync(qyWhchatIdList, 2, Convert.ToDateTime(startDt), Convert.ToDateTime(endDt));
+            var data = await _qiYeWeChatApiService.GetCheckinDataAsync(qyWhchatIdList, code, Convert.ToDateTime(startDt), Convert.ToDateTime(endDt));
             return Ok(JsonView(true, "操作成功!", data.checkindata));
         }