互换平仓审批流程逻辑
This commit is contained in:
@@ -126,12 +126,16 @@ namespace YLErp.Modules.TradeModule.DealModule
|
||||
}
|
||||
else
|
||||
{
|
||||
// 不需要审批:直接完成行权
|
||||
// 不需要审批:设 ProcessOrderId=审批通过,再调 UpdateTradeProcessLog(pass) 执行审批通过流程
|
||||
td.ProcessOrderId = ProcessTradeLog.审批通过;
|
||||
td.ProcessStatus = ProcessTradeStatus.通过审批.ToString();
|
||||
td.ProcessOptDate = DateTime.Now;
|
||||
DbContext.SaveChanges();
|
||||
new TradeUnwindService(this).UnwindTrade(td, null, true, true);
|
||||
new TradeOpenService(this).UpdateTradeProcessLog(new TradeOpenReqModel
|
||||
{
|
||||
tradeId = td.id,
|
||||
status = "pass",
|
||||
comments = "触发条件未满足,自动跳过审批",
|
||||
notNeedOperationHistory = false
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user