增加接口重新计算eod_trade_position

This commit is contained in:
吴方海
2025-08-13 17:15:35 +08:00
parent e57f31c4e9
commit ce636c99f4
2 changed files with 194 additions and 3 deletions
@@ -56,9 +56,9 @@ namespace YLErp.Modules.EodModule.SettlementModule
t.TradeType
};
var etList = etQuery.ToArray();
var etList = etQuery.ToList();
List<TradeMeta> structProductTradeMetaList = null;
if (etList != null && etList.Length > 0)
if (etList != null && etList.Count() > 0)
{
var structProductTradeIds = etList.Where(p => "结构化产品".Equals(p.TradeType)).Select(p => p.id).Distinct().ToList();
if (structProductTradeIds != null && structProductTradeIds.Count > 0)