李昊 4 年之前
父节点
当前提交
a8f8805e2f
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      GxPress/Service/GxPress.Service.Implement/Flow/FlowService.Get.cs

+ 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)
         {
             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)
                 flowId = flowTodeDto.FlowId;
             else