public List <FieldDto> GetFields(int taskId) { var authInfo = _authInfoProvider.GetCurrent(); var userId = authInfo?.User?.Id; var task = _taskProvider.GetTask(taskId); if (task.Assignee != userId.Value.ToString()) { throw new AppCoreException($"id:为{userId.Value}的用户不是任务:{task.NodeName}的委托人"); } return(_taskProvider.GetFieldsByTask(taskId)); }