李昊 4 years ago
parent
commit
a8f8805e2f

+ 4 - 1
GxPress/Service/GxPress.Service.Implement/Flow/FlowService.Get.cs

@@ -80,7 +80,10 @@ namespace GxPress.Service.Implement
         public async Task<FlowResult> GetFlowResult(int todoId, int userId = 0)
         public async Task<FlowResult> GetFlowResult(int todoId, int userId = 0)
         {
         {
             var flowId = 0;
             var flowId = 0;
-            var flowTodeDto = await _flowTodoRepository.GetAsync(todoId);
+            var query = Q.NewQuery();
+            query.Where(nameof(Entity.WorkFlow.FlowTodo.Id), todoId);
+            query.Where(nameof(Entity.WorkFlow.FlowTodo.UserId), userId);
+            var flowTodeDto = await _flowTodoRepository.GetAsync(query);
             if (flowTodeDto != null)
             if (flowTodeDto != null)
                 flowId = flowTodeDto.FlowId;
                 flowId = flowTodeDto.FlowId;
             else
             else