加签记录到流程历史中

This commit is contained in:
wintel 2025-02-25 23:54:53 +08:00
parent 1369b08f70
commit 6fc4300521

View File

@ -7,7 +7,6 @@ using OpenAuth.App.Interface;
using OpenAuth.App.Request;
using OpenAuth.App.Response;
using OpenAuth.Repository.Domain;
using Quartz.Listener;
using SqlSugar;
@ -51,6 +50,15 @@ namespace OpenAuth.App
}
Repository.InsertRange(objs);
SugarClient.Insertable(new FlowInstanceOperationHistory
{
InstanceId = obj.InstanceId,
CreateUserId = loginContext.User.Id,
CreateUserName = loginContext.User.Name,
CreateDate = DateTime.Now,
Content = $"【加签】流程加签给:{string.Join(",", objs.Select(u => u.ApproverName))}"
}).ExecuteCommand();
}
public void Update(AddApproverReq application)