#TRS-ZS-58 收盘操作:删除从衡泰获取数据等等功能
This commit is contained in:
@@ -369,27 +369,9 @@ namespace YLErp.Modules.TradeModule.DealModule
|
||||
swapEventService.AddSwapEventDate(openDate.Value, td.id, (int)SwapEventTypeEnum.确认交易, "", 0, true, history);
|
||||
if (addlog)
|
||||
{
|
||||
var pushLogService = new PushLogService(UserInfo);
|
||||
var swapInsertEnum = SwapPushDataEnum.收益互换交易新增;
|
||||
var posiInsertEnum = SwapPushDataEnum.互换资产交易新增;
|
||||
var marginInsertEnum = SwapPushDataEnum.预付金交易新增;
|
||||
pushLogService.AddLog(td.id, swapInsertEnum, td.TradeNumber);
|
||||
if (posiPositions.Any())
|
||||
{
|
||||
foreach (var position in posiPositions)
|
||||
{
|
||||
pushLogService.AddLog(position.id, posiInsertEnum, position.PosiNumber);
|
||||
}
|
||||
|
||||
}
|
||||
if (td.swap_positions.Any())
|
||||
{
|
||||
foreach (var position in td.swap_positions)
|
||||
{
|
||||
pushLogService.AddLog(position.id, marginInsertEnum, position.PosiNumber);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user