|
@@ -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
|