#TRS-ZS-79 成交转簿记:先进先出,部分平仓

This commit is contained in:
汤旺
2024-06-04 14:25:13 +08:00
parent df65cd0add
commit 60244b6cd9
5 changed files with 25 additions and 55 deletions
@@ -33,7 +33,7 @@ namespace YLErp.Modules.SwapModule
public class SwapTradeAutoService : YLBaseService
{
protected static IYcLogger Log = LogFactory.GetLogger(typeof(SwapTradeAutoService).FullName);
private static string LongShortStructType = "定义文件型债券收益互换";
private static string LongShortStructType = "普通债券收益互换";
public SwapTradeAutoService(OptUserInfo optUser) : base(optUser)
{
@@ -445,7 +445,7 @@ namespace YLErp.Modules.SwapModule
{
return;
}
var swaptrades = DbContext.trade.Where(t => t.StructureType == "定义文件型债券收益互换"
var swaptrades = DbContext.trade.Where(t => t.TradeType == "收益互换"
&& t.TradeDate <= valueDate
&& t.ValidState != ConsGlobal.InValid
&& !ConsTrade.TradeCompleteStatus.Contains(t.TradeStatus)).ToList();