李昊 4 éve
szülő
commit
4de4e7630d

+ 3 - 0
GxPress/Api/GxPress.Api/AppControllers/AppFlowController.Actions.cs

@@ -78,6 +78,9 @@ namespace GxPress.Api.AppControllers
         [AllowAnonymous]
         public async Task<DefaultResult> ActionsMeeting([FromBody] ActionRequest request)
         {
+            var flowTodo = await _flowTodoRepository.GetAsync(request.FlowId);
+            if (flowTodo != null)
+                request.FlowId = flowTodo.FlowId;
             //await _flowRepository.UpdateStateAsync(request.FlowId, nameof(FlowState.Meeting));
             //修改当前用户的审核状态
             await _flowTodoRepository.UpdateAsync(Q.Set(nameof(Entity.WorkFlow.FlowTodo.IsDone), true).Set(nameof(Entity.WorkFlow.FlowTodo.IsChecked), false).Set(nameof(Entity.WorkFlow.FlowTodo.DoneType), 1).Where(nameof(Entity.WorkFlow.FlowTodo.FlowId), request.FlowId).Where(nameof(Entity.WorkFlow.FlowTodo.Type), nameof(TodoTypeConst.ApproverCheck)).Where(nameof(Entity.WorkFlow.FlowTodo.UserId), _loginContext.AccountId));