#TRS-ZS-58 收盘操作:删除从衡泰获取数据等等功能
This commit is contained in:
@@ -528,7 +528,7 @@ namespace YLErp.Modules.SwapModule
|
||||
decimal allPosiNotionalValue = 0;
|
||||
decimal longNotionalValue = realPositions.Where(s => s.PositionType == (int)PositionTypeFlag.Long).Sum(s => s.PosiNotionalValue);//剩余多头名义本金规模
|
||||
decimal shortNotionalValue = realPositions.Where(s => s.PositionType == (int)PositionTypeFlag.Short).Sum(s => s.PosiNotionalValue);//剩余空头名义本金规模
|
||||
PushLogService pushService = new PushLogService(UserInfo);
|
||||
|
||||
foreach (var eventGroup in eventQuery.GroupBy(g => g.PositionId))//持仓标的腿合成持仓
|
||||
{
|
||||
var eventList = eventGroup.ToList();
|
||||
@@ -603,18 +603,6 @@ namespace YLErp.Modules.SwapModule
|
||||
dividendIn = dividendIn + x.DividendIn;
|
||||
|
||||
x.DataState = (int)SwapFlowDateStateEnum.完成;
|
||||
if (ratio > 0)
|
||||
{
|
||||
if (fposition == null)
|
||||
{
|
||||
pushService.AddLog(position.id, swapInsertEnum, position.PosiNumber);
|
||||
}
|
||||
pushService.AddLog(position.id, swapPosiEnum, position.PosiNumber + "-01");
|
||||
}
|
||||
else
|
||||
{
|
||||
pushService.AddLog(x.id, SwapPushDataEnum.互换资产平仓, position.PosiNumber);
|
||||
}
|
||||
});
|
||||
tdCloseQty += closeQty;
|
||||
if (eventFlow.EventType == 1)//最后一条是开仓
|
||||
|
||||
Reference in New Issue
Block a user