public string HastenSave() { string hastentaskid = Request.Querys("hastentaskid"); string hastengroupid = Request.Querys("hastengroupid"); if (!hastengroupid.IsGuid(out Guid groupId) || !hastentaskid.IsGuid(out Guid taskId)) { return("Id错误!"); } string Users = Request.Forms("Users"); string Model = Request.Forms("Model"); string Contents = Request.Forms("Contents"); Business.FlowTask flowTask = new Business.FlowTask(); //得到可以催办的人员 var groupTasks = flowTask.GetListByGroupId(groupId); var hastenTasks = groupTasks.FindAll(p => p.PrevId == taskId && p.Status.In(0, 1)); List <Model.FlowTask> hastenTasks1 = new List <Model.FlowTask>(); foreach (var task in hastenTasks) { if (task.Status.In(0, 1) && Users.ContainsIgnoreCase(task.ReceiveId.ToString())) { hastenTasks1.Add(task); } } flowTask.SendMessage(hastenTasks1, Current.User, Model, Contents); return("催办成功!"); }