|
|
@@ -294,8 +294,8 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers |
|
|
|
|
|
|
|
public ActionResult GetFirstTaskByProcessId(string processId) |
|
|
|
{ |
|
|
|
var taskId= nWFProcessIBLL.GetFirstTaskByProcessId(processId); |
|
|
|
return Success(new {taskId}); |
|
|
|
var taskId = nWFProcessIBLL.GetFirstTaskByProcessId(processId); |
|
|
|
return Success(new { taskId }); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 获取我的流程信息列表 |
|
|
@@ -860,5 +860,37 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers |
|
|
|
return Success("添加成功"); |
|
|
|
} |
|
|
|
#endregion |
|
|
|
|
|
|
|
[HttpGet] |
|
|
|
public ActionResult GetNextUser(string F_TaskId) |
|
|
|
{ |
|
|
|
List<string> usernamelist = new List<string>(); |
|
|
|
List<string> nextlist = nWFTaskIBLL.GetTaskUserList(F_TaskId).Select(m => m.F_UserId).ToList(); |
|
|
|
foreach (var uid in nextlist) |
|
|
|
{ |
|
|
|
usernamelist.Add(userIbll.GetEntityByUserId(uid)?.F_RealName); |
|
|
|
} |
|
|
|
return SuccessString(string.Join(",", usernamelist)); |
|
|
|
} |
|
|
|
|
|
|
|
[HttpGet] |
|
|
|
public ActionResult GetNextUserMonitor(string F_ProcessId) |
|
|
|
{ |
|
|
|
var tasklist=nWFTaskIBLL.GetUnFinishTaskList(F_ProcessId).FirstOrDefault(); |
|
|
|
if (tasklist!=null&&!string.IsNullOrEmpty(tasklist.F_Id)) |
|
|
|
{ |
|
|
|
List<string> usernamelist = new List<string>(); |
|
|
|
List<string> nextlist = nWFTaskIBLL.GetTaskUserList(tasklist.F_Id).Select(m => m.F_UserId).ToList(); |
|
|
|
foreach (var uid in nextlist) |
|
|
|
{ |
|
|
|
usernamelist.Add(userIbll.GetEntityByUserId(uid)?.F_RealName); |
|
|
|
} |
|
|
|
return SuccessString(string.Join(",", usernamelist)); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
return SuccessString(""); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |