bug 修复

This commit is contained in:
吴方海
2025-04-09 17:25:46 +08:00
parent fef18bace3
commit 3b0ecae72d
2 changed files with 1 additions and 58 deletions
@@ -1327,8 +1327,7 @@ namespace YLErp.BLL.Eod
var clientPositions = positions.Where(x => clientTradeIds.Contains(x.SwapTradeId)).ToList();
var marginList = clientPositions.Where(x =>ConsTrade.InterestMarginModels.Contains(x.InterestMode)).Sum(s=>s.InterestPrincipalFix * (s.InterestDirection == 1 ? -1 : 1));
balance.SwapMargin =Convert.ToDouble(marginList);
var floatPositions= positions.Where(x => x.PosiQuantity > 0);
balance.PositionCount= tradeIds.Count();
balance.PositionCount= clientTradeIds.Count();
balance.PositionNotionalPrincipal = Convert.ToDouble(positions.Sum(s=>s.PosiNotionalValue));//实时
}
var eodSwapQuery = DbContext.eod_swap.Where(x => clientIds.Contains(x.ClientId) && x.ValueDate >= lastSettletDate && x.ValueDate <= startDate).AsEnumerable().GroupBy(x => x.SwapTradeId)
@@ -38,62 +38,6 @@ namespace YLErp.Model
/// 授信额度
/// </summary>
public double Credit { get; set; }
/// <summary>
/// 期初结存
/// </summary>
public double LastDayRemainFund { get; set; }
/// <summary>
/// 出金入金
/// </summary>
public double NetFund { get; set; }
/// <summary>
/// 互换成交收支
/// </summary>
public double OptionPremiumSwap { get; set; }
/// <summary>
/// 互换了结收支
/// </summary>
public double SwapBalance { get; set; }
/// <summary>
/// 其他收支
/// </summary>
public double OtherFund { get; set; }
/// <summary>
/// 期末结存
/// </summary>
public double AmountFund { get; set; }
/// <summary>
/// 质押市值
/// </summary>
public double GuaranteesTotalAmount { get; set; }
/// <summary>
/// 预付金占用
/// </summary>
public double MinusPayableMarginTotal { get; set; }
/// <summary>
/// 应付了结交易款
/// </summary>
public double ClosedTradePayableFundTotal { get; set; }
/// <summary>
/// 应付存续交易款
/// </summary>
public double PositionTradePayableFundTotal { get; set; }
/// <summary>
/// 追保金额
/// </summary>
public double MarginByPayableMarginTotal { get; set; }
/// <summary>
/// 应付资金总额
/// </summary>
public double PayableFundTotal { get; set; }
/// <summary>
/// 可取资金
/// </summary>
public double DesirableFundTotal { get; set; }
/// <summary>
/// 实现盈亏
/// </summary>
public double WinLoss { get; set; }
/// <summary>
/// 实际可用资金