|
|
|
@ -173,16 +173,15 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
{
|
|
|
|
|
await OnUpdateStatusAsync(callback, app);
|
|
|
|
|
|
|
|
|
|
//驳回申请则逻辑删除关联工作流
|
|
|
|
|
if (callback.FlowStatus == FlowStatusEnum.Reject)
|
|
|
|
|
{
|
|
|
|
|
await Db.Updateable(new FlowInstance
|
|
|
|
|
{
|
|
|
|
|
Id = callback.InstanceId,
|
|
|
|
|
Deleted = true,
|
|
|
|
|
DeleteBy = 0,
|
|
|
|
|
DeleteTime = DateTime.Now
|
|
|
|
|
}).UpdateColumns(x => new { x.Deleted, x.DeleteBy, x.DeleteTime }).ExecuteCommandAsync();
|
|
|
|
|
//await Db.Updateable(new FlowInstance
|
|
|
|
|
//{
|
|
|
|
|
// Id = callback.InstanceId,
|
|
|
|
|
// Deleted = true,
|
|
|
|
|
// DeleteBy = 0,
|
|
|
|
|
// DeleteTime = DateTime.Now
|
|
|
|
|
//}).UpdateColumns(x => new { x.Deleted, x.DeleteBy, x.DeleteTime }).ExecuteCommandAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await TenantDb.Ado.CommitTranAsync();
|
|
|
|
|