using Furion.DependencyInjection; using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.Localization; using RoadFlow.Utility; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RoadFlow.Data { public class FlowReceive: RoadFlowRepository, IFlowReceive, ITransient { /// /// 查询一个流程一个步骤的上一次处理人 /// /// 流程id /// 步骤id /// 发送人 /// public string GetPrevMembers(string flowId, string stepId, string SenderId) { //SELECT Members FROM RF_FlowReceive WHERE FlowId = @FlowId AND StepId = @StepId AND SenderId = @SenderId ORDER BY SendTime DESC LIMIT 1 return GetListBy(x => x.FlowId == flowId && x.StepId == stepId && x.SenderId == SenderId) .OrderByDescending(x => x.SendTime).Take(1).ToList()[0].Members; } /// /// 批量添加 /// /// 实体类 /// public int AddRange(List flowReceives) { return AddRangeList(flowReceives); } } }